OpenCV  4.1.0
Open Source Computer Vision
Image Segmentation with Distance Transform and Watershed Algorithm

Prev Tutorial: Point Polygon Test

Next Tutorial: Out-of-focus Deblur Filter

Goal

In this tutorial you will learn how to:

Theory

Code

[block] [block] [block]

Explanation / Result

[block] [block] [block]
source.jpeg
[block] [block] [block]
black_bg.jpeg
[block] [block] [block]
laplace.jpeg
sharp.jpeg
[block] [block] [block]
bin.jpeg
[block] [block] [block]
dist_transf.jpeg
[block] [block] [block]
peaks.jpeg
[block] [block] [block]
markers.jpeg
[block] [block] [block]
final.jpeg