Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


uny gg
Posts:
45
Registered:
8/4/09


Re: image show
Posted:
Apr 28, 2010 12:44 PM


Oh.. ;)
I found a way to figure out. I have used a function called "imagesc".. It shows that one I would like to!! ;)
Have a great day!
"uny gg" <illinois.ks@gmail.com> wrote in message <hr9mup$j93$1@fred.mathworks.com>... > I did image clustering.. within image itself. > > I applied the following procedure until Step 4 in my images. > http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html > > Using this " imshow(pixel_labels,[]), title('image labeled by cluster index');" command, > I can see the bw image based on its clustered index. For example K = 3, there will be three index values. If K=6, there will be six index values. > > My question is that is there any way to see this image as a color picture. > I mean if K=3, currently, it shows that K=1, almost black, if K=2 then grey, if K=3 then white.. something like this. > > But is it possible to show for example, when K=1, red, if k=2, blue, if K=3 green, etc.. > > So, I would like to see as a color clustered index image instead of bw image. > I tried to do it by changing the value in [].. but, it doesn't work for me. > Anybody knows this? > > Thanks.



