I tried to use your code in my project but, I've got some error massages: myMousePosition = e.GetPosition(DepthImage) Private void Mouse_Click(object sender, e) In the window called Distance I execude this code public partial class Distance : Window So I guess I need to pass the location of my image to the new window. To the new window, but visual studio told me that the image DepthImage is unknown in the Distance.xaml. The first thing I did, after adding a new window to my project, was to copy the code for the point selection from my main window Private void CmdDistance_Click(object senderr, RoutedEventArgs e) MySensor.DepthFrameReady += this.SensorDepthFrameReady (DepthImageFormat.Resolution640x480Fps30) Void måhooser_KinectChanged(object sender, KinectChangedEventArgs e) The new window should open and the user should be able to select a point in the DepthImage image in the main window, but the coordinates should be presented in the new window Distance. So when the user clicks the button Distance in the main window My problem now is that I want to show the coordinates in a new window. If the user select a point in the image, named DepthImage, by clicking a label presents the x and y coordinates of the point relativ In my program I present two streams of a kinect camera.
0 Comments
Leave a Reply. |