Principle
Any gray image can be regarded as a topological plane, the region with high gray value can be regarded as a mountain peak, and the region with low gray value can be regarded as a valley.
When we pour different colors of water into every valley, the water in different valleys will meet and converge with the water level rises. In order to prevent the water in different valleys from converging, we need to build dams where the water converges.keep pouring water and building dykes until all the mountains are flooded. The dam we built is the segmentation of the image.
OpenCV Watershed algorithm
最新推荐文章于 2025-05-30 08:52:56 发布
