Example #1
0
void XnVPointDenoiser::Update(XnVMessage* pMessage)
{
	XnVPointControl::Update(pMessage); // build m_DenoisedHands in CBs

	GenerateReplaced(pMessage, m_DenoisedHands);
	m_DenoisedHands.ClearLists();
} // XnVPointDenoiser::Update
	// Received a new message
	void Update(XnVMessage* pMessage)
	{
		// Deal with point message (calls Update(const XnVMultipleHands&)). This will fill the local copy.
		XnVPointControl::Update(pMessage);

		// Replace the points part of the message with the local copy.
		GenerateReplaced(pMessage, m_LocalCopy);

		// If there are no active entries (which means - no points), a new point will be looked for next time.
		if (m_LocalCopy.ActiveEntries() == 0)
		{
			m_nNewPrimary = 0;
		}
	}