i am beginer in opencv how i need to use flood fill method.thanks for help
i am using following code it will throws exception
Note:hear source is mat object
CODE:
Imgproc.floodFill(source, source, new Point(10,10), new Scalar(255, 255, 255));
Exception:
OpenCV Error: Assertion failed (mask.rows == size.height+2 && mask.cols == size.width+2) in int cv::floodFill(cv::InputOutputArray, cv::InputOutputArray, cv::Point, cv::Scalar, cv::Rect, cv::Scalar, cv::Scalar, int), file /builds/master_pack-android/opencv/modules/imgproc/src/floodfill.cpp, line 549 06-17 18:58:54.988: E/org.opencv.imgproc(16031): imgproc::floodFill_11() caught cv::Exception: /builds/master_pack-android/opencv/modules/imgproc/src/floodfill.cpp:549: error: (-215) mask.rows == size.height+2 && mask.cols == size.width+2 in function int cv::floodFill(cv::InputOutputArray, cv::InputOutputArray, cv::Point, cv::Scalar, cv::Rect, cv::Scalar, cv::Scalar, int)