blob: 6291739c95fac6c80eea0d07a1204d0268994627 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
function[dstImg] = watershed(srcImg)
srcMat = mattolist(srcImg)
out = opencv_watershed(srcMat)
channels = size(out)
for i = 1 : channels
dstImg(:,:,i) = out(i)
end
endfunction
|