C# Class Emgu.CV.KinectCapture

Kinect Camera capture
Inheritance: Capture
Show file Open project: fajoy/RTSPExample Class Usage Examples

Public Methods

Method Description
GetColorPoints ( Byte>.Image mask ) : Emgu.CV.Structure.ColorPoint[]

Get an enumerator of the colored points from Kinect. This function can only be called after the Grab() function.

GetMaxDisparity ( double minDistance ) : double

Given the minimum distance in mm, return the maximum valid disparity value.

GetOpenNIContext ( ) : IntPtr

Get the unmanaged OpenNI Context from the capture.

This function required the opencv_highgui module patched by EMGU CV, otherwise it will throw entry point not found exception.

KinectCapture ( ImageGeneratorOutputMode outputMode ) : System

Create the Kinect Camera capture object

RetrieveBgrFrame ( ) : Byte>.Image

Retrieve Bgr frame from Kinect

RetrieveDepthMap ( ) : int>.Image

Retrieve the depth map from Kinect (in mm)

RetrieveDisparityMap ( ) : Byte>.Image

Retrieve disparity map (in pixels) from Kinect

RetrieveDisparityMap32f ( ) : float>.Image

Retrieve disparity map (in pixels) from Kinect

RetrieveGrayFrame ( ) : Byte>.Image

Retrieve Gray frame from Kinect

RetrievePointCloudMap ( ) : MCvPoint3D32f[]

Retrieve all the points (x, y, z position in meters) from Kinect, row by row.

RetrieveValidDepthMap ( ) : Byte>.Image

Retrieve the valid depth map from Kinect

Method Details

GetColorPoints() public method

Get an enumerator of the colored points from Kinect. This function can only be called after the Grab() function.
public GetColorPoints ( Byte>.Image mask ) : Emgu.CV.Structure.ColorPoint[]
mask Byte>.Image The mask that controls which points should be returned. You can use the result from RetrieveValidDepthMap() function. Use null if you want all points to be returned
return Emgu.CV.Structure.ColorPoint[]

GetMaxDisparity() public method

Given the minimum distance in mm, return the maximum valid disparity value.
public GetMaxDisparity ( double minDistance ) : double
minDistance double The minimum distance that an object is away from the camera
return double

GetOpenNIContext() public method

Get the unmanaged OpenNI Context from the capture.
This function required the opencv_highgui module patched by EMGU CV, otherwise it will throw entry point not found exception.
public GetOpenNIContext ( ) : IntPtr
return System.IntPtr

KinectCapture() public method

Create the Kinect Camera capture object
public KinectCapture ( ImageGeneratorOutputMode outputMode ) : System
outputMode ImageGeneratorOutputMode The output mode
return System

RetrieveBgrFrame() public method

Retrieve Bgr frame from Kinect
public RetrieveBgrFrame ( ) : Byte>.Image
return Byte>.Image

RetrieveDepthMap() public method

Retrieve the depth map from Kinect (in mm)
public RetrieveDepthMap ( ) : int>.Image
return int>.Image

RetrieveDisparityMap() public method

Retrieve disparity map (in pixels) from Kinect
public RetrieveDisparityMap ( ) : Byte>.Image
return Byte>.Image

RetrieveDisparityMap32f() public method

Retrieve disparity map (in pixels) from Kinect
public RetrieveDisparityMap32f ( ) : float>.Image
return float>.Image

RetrieveGrayFrame() public method

Retrieve Gray frame from Kinect
public RetrieveGrayFrame ( ) : Byte>.Image
return Byte>.Image

RetrievePointCloudMap() public method

Retrieve all the points (x, y, z position in meters) from Kinect, row by row.
public RetrievePointCloudMap ( ) : MCvPoint3D32f[]
return MCvPoint3D32f[]

RetrieveValidDepthMap() public method

Retrieve the valid depth map from Kinect
public RetrieveValidDepthMap ( ) : Byte>.Image
return Byte>.Image