first of all, it's amazing code, thanks a lot for offering such help.
I would appreciate your help telling me how can i use it on a segmented image instead of using "roipoly" function but it dosen't work at all...
really i am in need for like such program to identify colors present in the region of interest that i had already detected using segmentation program...
21 Apr 2013
An interactive environment for morphologically operating on images.
In R2009b, we allowed the use of a tilde to ignore unwanted function outputs:
[~,strelButtons,strelSliders] = StrelTool(strel1Parent);
If you're using an earlier version, you should 1) replace the tilde with a dummy variable (like "JUNK"); and 2) update your MATLAB!