Ask Your Question

zhang13404's profile - activity

2013-04-01 20:57:44 -0500 commented answer Part of picture

i want to cut out part of the pictures according to the rect.Could you tell me opencv4android offer this way?

2013-04-01 20:56:31 -0500 commented question Part of picture

oh,sorry. i want to cut out part of the pictures according to the rect.Could you tell me opencv4android offer this way?

2013-03-28 03:39:23 -0500 received badge  Student (source)
2013-03-28 02:05:44 -0500 asked a question Part of picture

Through Imgproc.boundingRect I won a rect object, now how I interception based on rect part of the picture?

2013-03-20 22:07:32 -0500 received badge  Scholar (source)
2013-03-20 21:35:18 -0500 commented answer about MatOfPoint2f

Oh! I get it. I overlooked after findContours() i have List<MatOfPoint>. thank you very much~!

2013-03-20 21:13:34 -0500 commented answer about MatOfPoint2f

at first,thank you for you answer~ yes, you are right. in fact, I have done a similar deal with, such as canny, but after using canny, i have still Mat types, still need to convert Mat to MatOfPoint2f, what should i do?

2013-03-20 05:56:55 -0500 received badge  Editor (source)
2013-03-19 22:51:54 -0500 asked a question about MatOfPoint2f

opencv4android 2.4.4

befort i use Imgproc.approxPolyDP, I want to convert Mat to MatOfPoint2f;

Mat initialImg = Highgui.imread("/sdcard/card.jpg", 0);
MatOfPoint2f matOfPoint2f=new MatOfPoint2f(initialImg);

then I got the error:

03-20 10:35:57.825: E/AndroidRuntime(25073): java.lang.IllegalArgumentException: Incomatible Mat The error line is:

MatOfPoint2f matOfPoint2f=new MatOfPoint2f(initialImg);