1 | initial version |
That constructor is the same as doing
Mat roi = mask(rectant);
Each iteration of that loop sets a new rectangle to CONTOUR_COLOR. Mask already exists at it's full size, and various sub-rectangles inside of it are being set to CONTOUR_COLOR.