Software Archive
Read-only legacy content
17061 Discussions

Smooth for several objects

jarikus
Beginner
246 Views

I want to use the Smooth for palms and fingers from HandModule: example:

// create the smoother objects
void initRealSenseHand()
{
PXCDataSmoothing* smoother = NULL;
g_session->CreateImpl<PXCDataSmoothing>(&smoother);
// Creating Quadratic smoother - available options are [Spring, Stabilizer, Weightd]
m_smoother = smoother->Create3DQuadratic(0.5f);
}

void updateInfoFromRealSense()
{
// when you collect the tracking data - you smooth it by:
if(hand->QueryTrackedJoint(PXCHandData::JointType::SOME_JOINT_NAME,jointData) == PXC_STATUS_NO_ERROR)
{
PXCPoint3DF32 point = {jointData.positionWorld.x,jointData.positionWorld.y,jointData.positionWorld.z};

m_smoother->AddSample(point);

point = m_smoother->GetSample();
} }

 

Question: I can use one smoother "m_smoother" for all parts (palms, fingers) or better create separate smoother for each part of hand? Sample:

PXCDataSmoothing::Smoother3D* m_smoother_palm_left
PXCDataSmoothing::Smoother3D* m_smoother_palm_right
.....

Thanks

0 Kudos
1 Reply
Xusheng_L_Intel
Employee
246 Views

You need not create different smoother if you use the same smooth algorithm for both hands.

0 Kudos
Reply