Filtering

From ARToolworks support library

Jump to: navigation, search

Main Page > osgART > osgART HowTo > Filtering

Jitter in the tracking can be mitigated using a transformation filter. The filter smooths out the transformation using an exponential moving average to remove noise. The translation and rotation components can both be filtered independently.

Bear in mind that the stronger the smoothing, the more virtual objects will appear to float after the marker, rather than appearing to be rigidly fixed to it.

osgART::TransformFilterCallback* tfc = new osgART::TransformFilterCallback();
marker->setFilterCallback(tfc);
tfc->enableTranslationalSmoothing(true);
tfc->enableRotationalSmoothing(true);
Views
Personal tools