The Principle and Implementation of Watershed Algorithm

Reprinted from: https://blog.csdn.net/u012554092/article/details/77844076

Algorithm steps: 
1. Construct an image gradient image. 
2. Generate n initial water injection regions (prior knowledge or local gradient minimum) through certain rules. 
3. Add water to the water injection area. When the two water injection areas are about to merge, record the boundary at this time. 
4. The algorithm ends when the edge of the image is completely divided into n independent regions.

Schematic diagram of the algorithm process:

write picture description here

Reference blog: 
OpenCV learning (7) watershed algorithm

OpenCV—the principle and application of the watershed algorithm in image segmentation OpenCV—the principle and application of the watershed algorithm in image segmentation

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission. https://blog.csdn.net/u012554092/article/details/77844076

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325702617&siteId=291194637