Kinect SDK 2: CoordinateMapper not returning valid results -


i understand calling mapping function should simple on debugging following code colorspacepoint values -1.#inf0000. cameraspacepoint pass mapping method fine. have ideas why case? thanks.

    _sensor = kinectsensor::getdefault()      //do stuff      cameraspacepoint pos3d = body->joints->lookup(t->jointtype()).position; // works.     colorspacepoint pos = _sensor->coordinatemapper->mapcamerapointtocolorspace(pos3d); 

from comments of coordinatemapperbasics sample project:

//the sentinel value -inf, -inf, meaning no depth pixel corresponds color pixel.

so valid value color pixels corresponding depth pixel, should perform check make sure value isn't negative infinity.


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -