Structured Light Module Missing "decode" function

asked 2019-11-29 20:57:32 -0600

blorgggg gravatar image

In the java version (and hence the ported OpenCV for Unity version I am using), I noticed that there is a missing function (which seems quite important!) between the normal Structured Light documentation in the regular C++ api

https://docs.opencv.org/4.1.2/d9/dbb/...

and the Java version

https://docs.opencv.org/4.1.2/javadoc...

I am trying to do the structured light tutorials, but it hinges on this function being available https://docs.opencv.org/master/dc/da9...

Do i somehow use getprojpixels instead? anybody have any clue how to do this, or how to decode the images with Java?

edit retag flag offensive close merge delete

Comments

1

getprojpixels only returns the projectors pixel position wrt the camera, not any disparity

indeed, the python / java bindings are incomplete, but maybe we (you?) can fix it. did you build from src, and would you want to do some experiments to get it done ?

berak gravatar imageberak ( 2019-11-30 01:25:28 -0600 )edit

python bindings have it, btw.

berak gravatar imageberak ( 2019-11-30 01:52:06 -0600 )edit

Dang!!!!!!!!! Thanks for helping validate that i was not losing my mind! Unfortunately i did not compile it myself, i am using a port of a port (OpenCVforUnity https://assetstore.unity.com/packages... ) to try to make structured light scanning possible going directly into unity. But doesn't look like im going to do that anytime soon :(

blorgggg gravatar imageblorgggg ( 2019-12-02 01:02:44 -0600 )edit

hmm, for sure we can't help with unity, but maybe you can use the SinusoidalPattern instead ?

berak gravatar imageberak ( 2019-12-02 02:19:35 -0600 )edit