Digital Image Processing
Using ready - made opencv library functions related to basic operations of morphological image processing (expansion, contraction, opening, close) make a program that will output the outline.
Note: It is not necessary to use all basic operations to extract contour.