Patch for "Creating Bounding boxes and circles for contours" tutorial (Bugfix #2489)
Description
I am new to OpenCV and to this forum. This is a great tutorial with simplicity that makes it quick and easy to understand. However, the code would not compile on my Visual Studio 2010 without the following modifications:
The following line was modified:
minEnclosingCircle( contours_poly[i], center[i], radius[i] );
I had to cast the contours_poly to a Mat type as in the following:
minEnclosingCircle( (Mat)contours_poly[i], center[i], radius[i] );
After this modification it worked great.
Associated revisions
Merge pull request #2489 from vbystricky:iocl_pyrlk
History
Updated by Vadim Pisarevsky over 12 years ago
looks like some old (pre-InputArray/OutputArray) version of OpenCV is used, but the proposed modification is safe, so it could be applied.
- Target version set to 2.4.4
- Assignee set to Vsevolod Glumov
- Category set to documentation
Updated by Kirill Kornyakov over 12 years ago
Changed to Patch, since the fix is proposed.
BTW, currently all the sources from tutorials are built together with other samples. This should help us to faster identify issues with tutorials.
- Description changed from I am new to OpenCV and to this forum. This is a great tutorial with simplici... to I am new to OpenCV and to this forum. This is a great tutorial with simplici... More
- Tracker changed from Bug to Patch
- Subject changed from Tutorial: "Creating Bounding boxes and circles for contours" to Patch for "Creating Bounding boxes and circles for contours" tutorial
Updated by Kirill Kornyakov over 12 years ago
- Tracker changed from Patch to Bugfix
Updated by Vsevolod Glumov about 12 years ago
Fixed. Requires approval.
https://github.com/Itseez/opencv/pull/224
- Assignee changed from Vsevolod Glumov to Kirill Kornyakov
Updated by Andrey Kamaev about 12 years ago
- Status changed from Open to Done
- Pull request set to https://github.com/Itseez/opencv/pull/224
Updated by Andrey Kamaev about 12 years ago
- Target version changed from 2.4.4 to 2.4.3.2