Candy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | Friends | List of all members
HVR::OpenNIDepthCamera Class Reference

The OpenNI depth camera connects a depth camera using the OpenNI API to provide depth image data. More...

Inheritance diagram for HVR::OpenNIDepthCamera:
Inheritance graph
[legend]

Classes

struct  Collector
 

Public Member Functions

 OpenNIDepthCamera (H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< H3D::SFVec2f > _fieldOfView=0, H3D::Inst< ViewSize > _viewSize=0, H3D::Inst< H3D::SFBool > _updateBackground=0, H3D::Inst< H3D::SFFloat > _maximumBackgroundDistance=0, H3D::Inst< H3D::SFFloat > _backgroundDepthMargin=0, H3D::Inst< H3D::SFInt32 > _backgroundPixelMargin=0, H3D::Inst< SFImage > _depthData=0, H3D::Inst< SFPositionImage > _positionData=0, H3D::Inst< SFBackgroundImage > _depthDataBackground=0, H3D::Inst< SFPaintTexture > _debugTexture=0, H3D::Inst< H3D::SFInt32 > _deviceId=0, H3D::Inst< H3D::SFString > _deviceUri=0, H3D::Inst< H3D::SFInt32 > _minimumFrameWidth=0, H3D::Inst< H3D::SFInt32 > _minimumFrameHeight=0, H3D::Inst< H3D::SFInt32 > _minimumFrameFrequency=0, H3D::Inst< Collector > _collector=0)
 
void initialize ()
 
- Public Member Functions inherited from HVR::DepthCamera
 DepthCamera (H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< H3D::SFVec2f > _fieldOfView=0, H3D::Inst< ViewSize > _viewSize=0, H3D::Inst< H3D::SFBool > _updateBackground=0, H3D::Inst< H3D::SFFloat > _maximumBackgroundDistance=0, H3D::Inst< H3D::SFFloat > _backgroundDepthMargin=0, H3D::Inst< H3D::SFInt32 > _backgroundPixelMargin=0, H3D::Inst< SFImage > _depthData=0, H3D::Inst< SFPositionImage > _positionData=0, H3D::Inst< SFBackgroundImage > _depthDataBackground=0, H3D::Inst< SFPaintTexture > _debugTexture=0)
 
virtual std::string defaultXMLContainerField ()
 
H3D::Vec3f pixel2DtoLine (float x, float y)
 Convert a pixel coordinate on the Kinect image into a 3D line representing that pixels direction from the Kinects point of view. More...
 
H3D::Vec3f pixel2Dto3D (float x, float y, float d)
 Convert a pixel coordinate on the Kinect image and depth value into a 3D position from the Kinects point of view. More...
 
H3D::Vec3f pixel2Dto3D (H3D::Vec3f p)
 Convert a pixel coordinate on the Kinect image (x,y,depth) into a 3D position from the Kinects point of view. More...
 
H3D::Vec3f point2DtoLine (float x, float y)
 Convert a point on the Kinect image into a 3D line representing that pixels direction from the Kinects point of view. More...
 
H3D::Vec3f point2Dto3D (float x, float y, float d)
 Convert a point on the Kinect image into a 3D position from the Kinects point of view. More...
 
H3D::Vec3f point2Dto3D (H3D::Vec3f p)
 Convert a point on the Kinect image into a 3D position from the Kinects point of view. More...
 
const std::vector< Shape > & getShapes ()
 
H3D::Vec2f getExtremes ()
 Returns a 2D vector containing the largest and smallest value of the depth in x and y, respectively. More...
 
const ExtremesMapgetExtremesMap ()
 Returns a map of extremes. More...
 

Public Attributes

std::auto_ptr< H3D::SFInt32deviceId
  (initialize only) The device to read data from. More...
 
std::auto_ptr< H3D::SFStringdeviceUri
  (initialize only) The device to read data from. More...
 
std::auto_ptr< H3D::SFInt32minimumFrameWidth
  (initialize only) The minimum frame width. More...
 
std::auto_ptr< H3D::SFInt32minimumFrameHeight
  (initialize only) The minimum frame height. More...
 
std::auto_ptr< H3D::SFInt32minimumFrameFrequency
  (initialize only) The minimum frame frequency, i e FPS. More...
 
- Public Attributes inherited from HVR::DepthCamera
struct HVR_API Shape
 
struct HVR_API ExtremesMap
 
std::auto_ptr< H3D::SFVec2ffieldOfView
  (input/output) This camera field of view is used when converting coordinates between 2D and 3D. More...
 
std::auto_ptr< ViewSizeviewSize
  (output only) This field holds the width and height of the view at the distance of one length unit. More...
 
std::auto_ptr< H3D::SFBoolupdateBackground
  (input/output) The background image (depthDataBackground) will be updated if this field is set to true. More...
 
std::auto_ptr< H3D::SFFloatmaximumBackgroundDistance
  (input/output) This is the largest distance that the background image may contain. More...
 
std::auto_ptr< H3D::SFFloatbackgroundDepthMargin
  (input/output) This is a margin removed from the depth when specifying the background, in meters. More...
 
std::auto_ptr< H3D::SFInt32backgroundPixelMargin
  (input/output) This is the margin around object when specifying the background, in pixels. More...
 
std::auto_ptr< SFImagedepthData
  (input/output) This is the depth data from the depth camera, in meters. More...
 
std::auto_ptr< SFPositionImagepositionData
  (output only) This is the 3D pixel position data from the depth camera, in meters and camera coordinates. More...
 
std::auto_ptr< SFBackgroundImagedepthDataBackground
  (output only) The depth camera holds a background image to more easily remove uninteresting data. More...
 
std::auto_ptr< SFPaintTexturedebugTexture
  (input/output) When specified, debug data are drawn to this texture. More...
 

Static Public Attributes

static H3D::H3DNodeDatabase database
 
- Static Public Attributes inherited from HVR::DepthCamera
static H3D::H3DNodeDatabase database
 

Protected Attributes

std::auto_ptr< Collectorcollector
 
- Protected Attributes inherited from HVR::DepthCamera
struct HVR_API ViewSize
 
struct HVR_API SFBackgroundImage
 
struct HVR_API SFPositionImage
 

Friends

struct Collector
 

Additional Inherited Members

- Public Types inherited from HVR::DepthCamera
typedef
H3D::H3DImageObject::SFImage 
SFImage
 
typedef H3D::TypedSFNode
< Candy::PaintTexture
SFPaintTexture
 
typedef std::vector< H3D::Vec3f > contour_t
 
typedef std::vector< contour_t > contours_t
 
- Protected Member Functions inherited from HVR::DepthCamera
void update_debug_texture ()
 

Detailed Description

The OpenNI depth camera connects a depth camera using the OpenNI API to provide depth image data.

Member Data Documentation

std::auto_ptr< H3D::SFInt32 > HVR::OpenNIDepthCamera::deviceId

(initialize only) The device to read data from.

std::auto_ptr< H3D::SFString > HVR::OpenNIDepthCamera::deviceUri

(initialize only) The device to read data from.

std::auto_ptr< H3D::SFInt32 > HVR::OpenNIDepthCamera::minimumFrameFrequency

(initialize only) The minimum frame frequency, i e FPS.

The first frame format that fulfills all resolution and frequency requirements will be used.

std::auto_ptr< H3D::SFInt32 > HVR::OpenNIDepthCamera::minimumFrameHeight

(initialize only) The minimum frame height.

The first frame format that fulfills all resolution and frequency requirements will be used.

std::auto_ptr< H3D::SFInt32 > HVR::OpenNIDepthCamera::minimumFrameWidth

(initialize only) The minimum frame width.

The first frame format that fulfills all resolution and frequency requirements will be used.