From a385fff3bf27865c51481ca006caf4064ed87aa8 Mon Sep 17 00:00:00 2001 From: Vladislav Sovrasov Date: Thu, 26 Oct 2017 13:51:57 +0300 Subject: [PATCH] imgproc: clarify usage of the mask in floodfill --- modules/imgproc/include/opencv2/imgproc.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/imgproc/include/opencv2/imgproc.hpp b/modules/imgproc/include/opencv2/imgproc.hpp index 7dafcc004d..23cf7250d1 100644 --- a/modules/imgproc/include/opencv2/imgproc.hpp +++ b/modules/imgproc/include/opencv2/imgproc.hpp @@ -3571,7 +3571,8 @@ taller than image. Since this is both an input and output parameter, you must ta of initializing it. Flood-filling cannot go across non-zero pixels in the input mask. For example, an edge detector output can be used as a mask to stop filling at edges. On output, pixels in the mask corresponding to filled pixels in the image are set to 1 or to the a value specified in flags -as described below. It is therefore possible to use the same mask in multiple calls to the function +as described below. Additionally, the function fills the border of the mask with ones to simplify +internal processing. It is therefore possible to use the same mask in multiple calls to the function to make sure the filled areas do not overlap. @param seedPoint Starting point. @param newVal New value of the repainted domain pixels.