Option

Flag that controls the resulting image. This value tells the method what process to complete before returning. Possible values are:

Value

Meaning

CONTOUR_THIN

[0] return after the thinning algorithm

CONTOUR_LINK_BLACKWHITE

[1] return after contour linking, using only black and white

CONTOUR_LINK_GRAY

[2] return after contour linking, using 256 grayscale

CONTOUR_LINK_COLOR

[3] return after contour linking, using colors

CONTOUR_APPROX_COLOR

[4] return after line segment approximation, using colors