C# Class WorkingWithDepthData.MainWindow

MainWindow
Inheritance: System.Windows.Window, System.Windows.Markup.IComponentConnector
Mostrar archivo Open project: GamesCrafters/GamesmanRobot

Public Properties

Property Type Description
pixels1 byte[]
pixels2 byte[]
pixels3 byte[]
pixels4 byte[]
pixels5 byte[]

Public Methods

Method Description
CalculateIntensityFromDepth ( int distance ) : byte
MainWindow ( ) : System
kinectSensorChooser1_KinectSensorChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
newSensor_AllFramesReady ( object sender, AllFramesReadyEventArgs e ) : void

Private Methods

Method Description
CreateImage ( byte imageData, int decodePixelWidth, int decodePixelHeight ) : ImageSource
GenerateColoredBytes ( DepthImageFrame depthFrame ) : byte[]
GetEncodedImageData ( ImageSource image, string preferredFormat ) : byte[]
InitializeComponent ( ) : void
OldResizeImage ( byte imageBytes, byte imageTarget, int width, int height ) : void
SaveImageToJPG ( Image ImageToSave, string Location ) : void
SaveImageToPNG ( Image ImageToSave, string Location ) : void
StopKinect ( KinectSensor sensor ) : void
System ( int connectionId, object target ) : void
Window_Closing ( object sender, System e ) : void
Window_Loaded ( object sender, RoutedEventArgs e ) : void
calculateboardchar ( int x, int y ) : char
calculateboardstring ( ) : string
image1_ImageFailed ( object sender, System.Windows.ExceptionRoutedEventArgs e ) : void
imageMerge ( byte image1, int width1, int height1, byte image2, int width2, int height2 ) : byte[]
kinectSensorChooser1_Loaded ( object sender, RoutedEventArgs e ) : void

Method Details

CalculateIntensityFromDepth() public static method

public static CalculateIntensityFromDepth ( int distance ) : byte
distance int
return byte

MainWindow() public method

public MainWindow ( ) : System
return System

kinectSensorChooser1_KinectSensorChanged() public method

public kinectSensorChooser1_KinectSensorChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
sender object
e System.Windows.DependencyPropertyChangedEventArgs
return void

newSensor_AllFramesReady() public method

public newSensor_AllFramesReady ( object sender, AllFramesReadyEventArgs e ) : void
sender object
e AllFramesReadyEventArgs
return void

Property Details

pixels1 public_oe static_oe property

public static byte[] pixels1
return byte[]

pixels2 public_oe static_oe property

public static byte[] pixels2
return byte[]

pixels3 public_oe static_oe property

public static byte[] pixels3
return byte[]

pixels4 public_oe static_oe property

public static byte[] pixels4
return byte[]

pixels5 public_oe static_oe property

public static byte[] pixels5
return byte[]