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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -