color quantization gives map of 55 ,instead of 64 colors?
1 回表示 (過去 30 日間)
古いコメントを表示
my program is croping specific area from image and convert to lower color map
rgb2ind(image, 64, 'nodither');
this works fine ,but with the image of 13x11x3 it gives 55 colormap?
1-is it normal?
2- my program further reshape the modified colormap on the assumption that colormap is 64 , but i got the error "To RESHAPE the number of elements must not change."
So what should i do now? can i not get 64 map on such small image? or it doenst depend on size?
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 11 月 19 日
You may not have 64 unique colors. Maybe your image has only 55 unique colors in it. Attach your RGB image so we can check it.
参考
カテゴリ
Help Center および File Exchange で Red についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!