Merge pull request #2672 from a-wi:findContours

pull/2877/merge
Roman Donchenko 11 years ago committed by OpenCV Buildbot
commit 1576e24c93
  1. 4
      modules/imgproc/src/contours.cpp

@ -1703,6 +1703,10 @@ cvFindContours( void* img, CvMemStorage* storage,
void cv::findContours( InputOutputArray _image, OutputArrayOfArrays _contours,
OutputArray _hierarchy, int mode, int method, Point offset )
{
// Sanity check: output must be of type vector<vector<Point>>
CV_Assert( _contours.kind() == _InputArray::STD_VECTOR_VECTOR &&
_contours.channels() == 2 && _contours.depth() == CV_32S );
Mat image = _image.getMat();
MemStorage storage(cvCreateMemStorage());
CvMat _cimage = image;

Loading…
Cancel
Save