Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What are you doing here?

Imgproc.cvtColor(markerImg, tempMat, CvType.CV_32SC1, 0);

The third parameter should be something like Imgproc.COLOR_* The 4th should be the number of channels (shouldn't be zero) but you can omit it if you got the 3rd right.

Check cvtColor documentation here:

http://docs.opencv.org/java/org/opencv/imgproc/Imgproc.html

What are you doing here?

Imgproc.cvtColor(markerImg, tempMat, CvType.CV_32SC1, 0);

The third parameter should be something like Imgproc.COLOR_* Imgproc.COLOR_*
The 4th should be the number of channels (shouldn't be zero) but you can omit it if you got the 3rd right.

Check cvtColor documentation here:

http://docs.opencv.org/java/org/opencv/imgproc/Imgproc.html