Kinect / tutorial

Tutorial on the v2 Kinect platform. Walk thru the whole thing at http://kinect.github.io/tutorial
MIT License
175 stars 63 forks source link

Depth Data #16

Open jss8649 opened 9 years ago

jss8649 commented 9 years ago

Hi I'm a student at the Rochester Institute of Technology and I found your labs very useful. In regards to your fourth lab do you know of a way to take the depth data constructed in this lab and print it off into a text file? This would benefit my purposes greatly and I would appreciate any help you could offer. My email is: jss8649@rit.edu. Thank you for your time.

ChimeraScorn commented 9 years ago

In https://github.com/Kinect/tutorial/blob/master/Kinect2Sample.Lab4/Kinect2Sample/MainPage.xaml.cs you have access to the array of depth data, element by element in: ConvertDepthDataToPixels. You can simply output them to a file in whatever format you wish at the same time….

From: jss8649 [mailto:notifications@github.com] Sent: Thursday, November 12, 2015 11:38 AM To: Kinect/tutorial tutorial@noreply.github.com Subject: [tutorial] Depth Data (#16)

Hi I'm a student at the Rochester Institute of Technology and I found your labs very useful. In regards to your fourth lab do you know of a way to take the depth data constructed in this lab and print it off into a text file? This would benefit my purposes greatly and I would appreciate any help you could offer. My email is: jss8649@rit.edumailto:jss8649@rit.edu. Thank you for your time.

— Reply to this email directly or view it on GitHubhttps://github.com/Kinect/tutorial/issues/16.

jss8649 commented 9 years ago

I don't mean to sound dense but what would be the way to output the elements into a file? This is my first time using C# and frankly I don't have a clue how to do what you have stated. I appreciate your hast of response.

On Thursday, November 12, 2015, Chris White notifications@github.com wrote:

In https://github.com/Kinect/tutorial/blob/master/Kinect2Sample.Lab4/Kinect2Sample/MainPage.xaml.cs you have access to the array of depth data, element by element in: ConvertDepthDataToPixels. You can simply output them to a file in whatever format you wish at the same time….

From: jss8649 [mailto:notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');] Sent: Thursday, November 12, 2015 11:38 AM To: Kinect/tutorial <tutorial@noreply.github.com javascript:_e(%7B%7D,'cvml','tutorial@noreply.github.com');> Subject: [tutorial] Depth Data (#16)

Hi I'm a student at the Rochester Institute of Technology and I found your labs very useful. In regards to your fourth lab do you know of a way to take the depth data constructed in this lab and print it off into a text file? This would benefit my purposes greatly and I would appreciate any help you could offer. My email is: jss8649@rit.edu javascript:_e(%7B%7D,'cvml','jss8649@rit.edu');<mailto:jss8649@rit.edu javascript:_e(%7B%7D,'cvml','jss8649@rit.edu');>. Thank you for your time.

— Reply to this email directly or view it on GitHub< https://github.com/Kinect/tutorial/issues/16>.

— Reply to this email directly or view it on GitHub https://github.com/Kinect/tutorial/issues/16#issuecomment-156216766.

ChimeraScorn commented 9 years ago

https://www.bing.com/search?q=writing+to+a+file+in+c%23&form=EDGENT&qs=PF&cvid=c6d03f459dbb4b03bbbe5bd724f27162&pq=writing%20to%20a%20file%20in%20c%23

yields

https://msdn.microsoft.com/en-us/library/8bh11f1k.aspx

Congrats on getting started with programming! I’ve found the most useful programming tool in the world is actually a search engine. -C

From: jss8649 [mailto:notifications@github.com] Sent: Thursday, November 12, 2015 12:00 PM To: Kinect/tutorial tutorial@noreply.github.com Cc: Chris White Chris.White@microsoft.com Subject: Re: [tutorial] Depth Data (#16)

I don't mean to sound dense but what would be the way to output the elements into a file? This is my first time using C# and frankly I don't have a clue how to do what you have stated. I appreciate your hast of response.

On Thursday, November 12, 2015, Chris White notifications@github.com<mailto:notifications@github.com> wrote:

In https://github.com/Kinect/tutorial/blob/master/Kinect2Sample.Lab4/Kinect2Sample/MainPage.xaml.cs you have access to the array of depth data, element by element in: ConvertDepthDataToPixels. You can simply output them to a file in whatever format you wish at the same time….

From: jss8649 [mailto:notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');mailto:notifications@github.com%0b%3e%20%3cjavascript:_e(%7B%7D,'cvml','notifications@github.com');%3e] Sent: Thursday, November 12, 2015 11:38 AM To: Kinect/tutorial <tutorial@noreply.github.com mailto:tutorial@noreply.github.com%0b> javascript:_e(%7B%7D,'cvml','tutorial@noreply.github.com');> Subject: [tutorial] Depth Data (#16)

Hi I'm a student at the Rochester Institute of Technology and I found your labs very useful. In regards to your fourth lab do you know of a way to take the depth data constructed in this lab and print it off into a text file? This would benefit my purposes greatly and I would appreciate any help you could offer. My email is: jss8649@rit.edumailto:jss8649@rit.edu javascript:_e(%7B%7D,'cvml','jss8649@rit.edu');<mailto:jss8649@rit.edu mailto:jss8649@rit.edu%0b> javascript:_e(%7B%7D,'cvml','jss8649@rit.edu');>. Thank you for your time.

— Reply to this email directly or view it on GitHub< https://github.com/Kinect/tutorial/issues/16>.

— Reply to this email directly or view it on GitHub https://github.com/Kinect/tutorial/issues/16#issuecomment-156216766.

— Reply to this email directly or view it on GitHubhttps://github.com/Kinect/tutorial/issues/16#issuecomment-156218164.

jss8649 commented 9 years ago

image

Shown in the picture above is my code. Why am I getting an error with the word File?

ChimeraScorn commented 9 years ago

Down at the bottom of your screen there is a window called “Error List” which will explain what the issue is. Good luck. ☺

Unfortunately, we cannot do general programming support through this forum. If you have additional Kinect specific questions feel free to reach out, or use the Kinect developer forums. General programming questions can often be answered on Stack Overflow.

-C

From: jss8649 [mailto:notifications@github.com] Sent: Thursday, November 12, 2015 12:26 PM To: Kinect/tutorial tutorial@noreply.github.com Cc: Chris White Chris.White@microsoft.com Subject: Re: [tutorial] Depth Data (#16)

[image]https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fcloud.githubusercontent.com%2fassets%2f15822557%2f11130144%2f83bf45ba-8951-11e5-84b2-0e02801b53f5.png&data=01%7c01%7ccwhite%40exchange.microsoft.com%7c5b765401c7ea412fd4cf08d2eb9f6d92%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=Kh4TYOQsxfIGMGQEU8smFRO%2bWZFBM3d%2f8M93qugeX0A%3d

Shown in the picture above is my code. Why am I getting an error with the word File?

— Reply to this email directly or view it on GitHubhttps://github.com/Kinect/tutorial/issues/16#issuecomment-156224206.