Ask Your Question

Krt's profile - activity

2014-11-27 03:42:26 -0600 received badge  Critic (source)
2014-11-26 17:13:55 -0600 answered a question C++ code equivalent in java

Use this:

MatOfPoint2f idx = new MatOfPoint2f();
Core.findNonZero(mask, idx);
idx.convertTo(idx, CvType.CV_32FC2);
RotatedRect box = Imgproc.minAreaRect(idx);