C# Class GreenScreenControl.GreenScreenControl

Interaktionslogik für GreenScreenControl.xaml
Mostrar archivo Open project: rechc/KinectMiniApps

Public Methods

Method Description
Antialiasing ( System.Windows.Media.DrawingContext drawingContext ) : void
GreenScreenControl ( ) : System
RenderImageData ( DepthImagePixel depthPixels, byte colorPixels ) : void
Start ( Microsoft.Kinect.KinectSensor sensor, bool antialiasing ) : void

Protected Methods

Method Description
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

Private Methods

Method Description
AddBorderPixels ( int greenScreenIndex ) : void

Adds border pixels around the border of Pixels marked as OpaquePoint

Antialiasing ( ) : void

Starts the antialiasing

BottomSearch ( int index, int site ) : int

Returns the most bottom pixel still having an opaquepoint neighbor

HidePixels ( ) : void

Method only needed for intern tests. Needed to show only the border of a person

LeftSearch ( int index, int site ) : int

Returns the most left pixel still having a opaquepoint neighbor

RightSearch ( int index, int site ) : int

Returns the most right pixel still having an opaquepoint neighbor

TopSearch ( int index, int site ) : int

Returns the most top pixel still having an opaquepoint neighbor

Method Details

Antialiasing() public method

public Antialiasing ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
return void

GreenScreenControl() public method

public GreenScreenControl ( ) : System
return System

OnRender() protected method

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
return void

RenderImageData() public method

public RenderImageData ( DepthImagePixel depthPixels, byte colorPixels ) : void
depthPixels DepthImagePixel
colorPixels byte
return void

Start() public method

public Start ( Microsoft.Kinect.KinectSensor sensor, bool antialiasing ) : void
sensor Microsoft.Kinect.KinectSensor
antialiasing bool
return void