watershed | Built-in command |
Arguments:
- [priority_image],_is_high_connectivity={ 0 | 1 }
Description:
Compute the watershed transform of selected images.
Default values:
is_high_connectivity=1.
Example of use:
$ gmic 400,400 noise 0.2,2 eq 1 +distance 1 mul[-1] -1 label[-2] watershed[-2] [-1] mod[-2] 256 map[-2] 0 reverse

Command: 400,400 noise 0.2,2 eq 1 +distance 1 mul[-1] -1 label[-2] watershed[-2] [-1] mod[-2] 256 map[-2] 0 reverse

Command: 400,400 noise 0.2,2 eq 1 +distance 1 mul[-1] -1 label[-2] watershed[-2] [-1] mod[-2] 256 map[-2] 0 reverse