Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Bella, to get a submat use Mat.submat method. You can save Mat with Highgui.imwrite.

P.S. OpenCV's JAVA API is pretty similar with C++ API: http://docs.opencv.org/java/. Also there is a tutorial "Template Matching" for quick reference.