Info
此问题已关闭。 请重新打开它进行编辑或回答。
different colours for images
2 次查看(过去 30 天)
显示 更早的评论
I have an image in which i need different colours for each regions
for example my original image is
i need as
please help
0 个评论
回答(2 个)
Walter Roberson
2012-5-14
Convert the RGB image to indexed. Change the colormap.
3 个评论
Image Analyst
2012-5-15
That's because your image has already been pseudocolored. What you did will work but essentially is just random colors. You need the original multispectral images - a set of monochrome images taken at each wavelength. Then see my color classification demos in my File Exchange. But even that won't do it because there is more than just color classification going on, as you can see from a careful inspection of the image. Why don't you replicate the method used in the paper?
Image Analyst
2012-5-14
You need to do color classification on the image. Look in each spectral band and do whatever you need to do to get a classified image. This could be gray level segmentation, texture segmentation, or some higher level conceptual classification (trees, buildings, etc.). Once you have a gray level image where each number represents a class (e.g. 0=water, 1=forest, 2=road, 3=buildings), then you can apply a colormap to make it more visually distinct. Go here for articles on classification: http://iris.usc.edu/Vision-Notes/bibliography/contentscartog.html#Cartography,%20Aerial%20Images,%20Remote%20Sensing,%20Buildings,%20Roads,%20Terrain,%20ATR
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!