The basic methods of image segmentation are considered - the algorithms of Canni, Harris and FAST, algorithms for contour analysis. These methods are implemented using the C ++ programming language and the OpenCV graphics library. The testing of algorithms on sputum analysis images stained using the Tsily-Nielsen method was performed.
Keywords: Ziehl-Nielsen method, angle detector, boundary detector, contour analysis, Harris, FAST, Canni, OpenCV.