Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Converting stereo_match.py sample to javascript

$
0
0
Hello there, I am using the Nodejs port of Opencv for a 3D reconstruction project. So im trying to convert the sample [stereo_match.py](https://github.com/Itseez/opencv/blob/master/samples/python/stereo_match.py) given in OpenCV source code to javascript. The problem is that, I am stuck at a step where the mask is found, and the out_points and out_colors are calculated. The code related to that is given below: mask = disp > disp.min()
out_points = points[mask]
out_colors = colors[mask]
Im just not able to understand what is going on when calculating the out_points and out_colors and how to convert the code or achieve the same functionality in javascript using node-opencv. Here is my code that I was able to do uptill now given here : [http://pastebin.com/0JELgFZg](http://pastebin.com/0JELgFZg)

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>