필터 지우기
필터 지우기

color quantization gives map of 55 ,instead of 64 colors?

조회 수: 1 (최근 30일)
hassan mahmood
hassan mahmood 2014년 11월 19일
댓글: hassan mahmood 2014년 11월 19일
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?

답변 (1개)

Image Analyst
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 CenterFile Exchange에서 Red에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by