Closed GoogleCodeExporter closed 9 years ago
And what does corner_count[0] gives?
Original comment by samuel.a...@gmail.com
on 9 Dec 2011 at 3:06
corner_count[0] gives 131.
Original comment by vanina1...@gmail.com
on 9 Dec 2011 at 3:10
Plus corners.position(i) gives very large values for coordinates:
run:
(1129644032, 1140719616)
(1145634816, 1139736576)
(1145618432, 1139474432)
(1145716736, 1140490240)
(1131479040, 1140555776)
(1145880576, 1140457472)
(1129906176, 1140621312)
(1146404864, 1138458624)...
Original comment by vanina1...@gmail.com
on 9 Dec 2011 at 3:45
And what if you reset corners to corners.position(0) before passing it to
cvGoodFeaturesToTrack()?
Original comment by samuel.a...@gmail.com
on 9 Dec 2011 at 4:01
no change in the generated values.
Original comment by vanina1...@gmail.com
on 9 Dec 2011 at 4:07
Your code above plus the following works just fine here:
System.out.println("No. of corners detected:" + corner_count[0]);
corners.capacity(corner_count[0]);
for (int i = 0; i < corner_count[0]; i++) {
System.out.println(corners.position(i));
}
If you still have problems, let me know, otherwise please post your future
questions on the mailing list if possible, thank you
Original comment by samuel.a...@gmail.com
on 9 Dec 2011 at 4:40
I'm sorry the values I was posting was those of the CvPoint I created for
each position(i), and I hadn't carried out the conversion well.
It's all good now.
:) Thank you.
Original comment by vanina1...@gmail.com
on 9 Dec 2011 at 4:56
Original issue reported on code.google.com by
vanina1...@gmail.com
on 9 Dec 2011 at 2:59