ImageJ watershed and distance map
Posted by
panovr on
Apr 03, 2014; 8:37am
URL: http://imagej.273.s1.nabble.com/ImageJ-watershed-and-distance-map-tp5007188.html
Hi,
I have read a interesting article about using watershed to do
segmentation by Steve of Mathworks:
http://blogs.mathworks.com/steve/2013/11/19/watershed-transform-question-from-tech-support/ I want to use ImageJ to perform the same task on the same image in the
article.
I use the watershed plugin of ImageJ, and the operations is like
http://rsb.info.nih.gov/ij/plugins/watershed.html describes: "invert image
(Edit/Invert), calculate the distance transform (Process/Binary/Distance
Map), invert result, apply Watershed."
However, after calculating the distance transform, the result image is
not a BINARY image, so I can't apply the watershed filter. Am I operate
wrong? Any suggestions?
And, Matlab's watershed commands:
L = watershed(A);
Lrgb = label2rgb(L);
L is a label matrix identifying the watershed regions of the image A. Can
I get this representation by ImageJ?
Also, Matlab command "label2rgb" can color regions in different colors,
how can I accomplish this in ImageJ?
Thanks!
--
Yili Zhao
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html