Skip to the content.

index

watershed.py

description

Image segmented by watershed algorithm

preparation

Download sample photo.
Execute following command:

$ wget https://docs.opencv.org/3.1.0/water_coins.jpg

usage

$ python watershed.py water_coins.jpg

original image

image

processed image

segmented image

image

mask image

image

References