#include <XnVPointDenoiser.h>
List of all members.
Detailed Description
The XnVPointDenoiser holds its own XnVMultipleHands object. It receives notifications from earlier nodes, and sends on its own notifications with matching IDs. The local points are denoised.
Definition at line 21 of file XnVPointDenoiser.h.
Constructor & Destructor Documentation
XnVPointDenoiser::XnVPointDenoiser |
( |
XnFloat |
fDistanceThreshold = ms_fDefaultDistanceThreshold , |
|
|
const XnChar * |
strName = "XnVPointDenoiser" | |
|
) |
| | |
Constructor
- Parameters:
-
[in] | fDistanceThreshold | Distance (in x-y) to change between close and far ratios |
[in] | strName | Name of the control, for log purposes. |
XnVPointDenoiser::~XnVPointDenoiser |
( |
|
) |
|
Member Function Documentation
void XnVPointDenoiser::Clear |
( |
|
) |
[protected] |
XnFloat XnVPointDenoiser::Distance |
( |
XnPoint3D & |
pt1, |
|
|
XnPoint3D & |
pt2 | |
|
) |
| | const [protected] |
XnFloat XnVPointDenoiser::GetCloseRatio |
( |
|
) |
const |
XnFloat XnVPointDenoiser::GetDistanceThreshold |
( |
|
) |
const |
Get the current noise threshold
- Returns:
- Current noise threshold
XnFloat XnVPointDenoiser::GetFarRatio |
( |
|
) |
const |
LocalContext* XnVPointDenoiser::GetLocalContext |
( |
XnUInt32 |
nID |
) |
[protected] |
Handle a new point created
- Parameters:
-
[in] | pContext | The new hand created |
Reimplemented from XnVPointControl.
void XnVPointDenoiser::OnPointDestroy |
( |
XnUInt32 |
nID |
) |
[virtual] |
Handle an existing point destruction
- Parameters:
-
[in] | nID | The Id of the destroyed point |
Reimplemented from XnVPointControl.
Handle an existing point update
- Parameters:
-
[in] | pContext | the new details of an existing point |
Reimplemented from XnVPointControl.
void XnVPointDenoiser::OnPrimaryPointCreate |
( |
const XnVHandPointContext * |
pContext, |
|
|
const XnPoint3D & |
ptSessionStarter | |
|
) |
| | [virtual] |
Update the internal points' focus point
- Parameters:
-
[in] | pContext | The hand point that creates the session |
[in] | ptSessionStarter | The position in which the session has started |
Reimplemented from XnVPointControl.
void XnVPointDenoiser::SetCloseRatio |
( |
XnFloat |
fCloseRatio |
) |
|
Change the ratio for close points between the new point and the old ones.
- Parameters:
-
[in] | fCloseRatio | The new ratio for close points |
void XnVPointDenoiser::SetDistanceThreshold |
( |
XnFloat |
fDistanceThreshold |
) |
|
Change distance limit for far and close ratios
- Parameters:
-
| fDistanceThreshold | The new threshold |
void XnVPointDenoiser::SetFarRatio |
( |
XnFloat |
fFarRatio |
) |
|
Change the ratio for far points between the new point and the old ones.
- Parameters:
-
[in] | fFarRatio | The new ratio for far points |
void XnVPointDenoiser::Update |
( |
XnVMessage * |
pMessage |
) |
[virtual] |
Handle the current state
- Parameters:
-
| pMessage | The current state |
Reimplemented from XnVPointFilter.
void XnVPointDenoiser::UpdatePointDenoise |
( |
XnPoint3D & |
ptToChange, |
|
|
const XnPoint3D & |
ptDontChange | |
|
) |
| | [protected] |
XnVPointDenoiser::XN_DECLARE_DEFAULT_HASH_DECL |
( |
XNV_NITE_API |
, |
|
|
XnUInt32 |
, |
|
|
LocalContext * |
, |
|
|
XnVIntLocalHash |
| |
|
) |
| | [protected] |
Member Data Documentation
The documentation for this class was generated from the following file: