conver bmp image to color image

1 visualización (últimos 30 días)
fereshte
fereshte el 28 de Jun. de 2014
Comentada: fereshte el 28 de Jun. de 2014
hi.i have a color image and use the crop function to select part of it.but Output image isnt color.why? how get a color image after cropping?
im=imread('5 2R.bmp');
croppedImage = imcrop(im,[0.5 80.5 45 38]);
imshow(croppedImage);

Respuesta aceptada

Image Analyst
Image Analyst el 28 de Jun. de 2014
Is im an indexed image? What does this say
[im, colorMap] = imread('5 2R.bmp');
whos colorMap
[rows, columns, numberOfColorChannels] = size(im)
  3 comentarios
Image Analyst
Image Analyst el 28 de Jun. de 2014
Editada: Image Analyst el 28 de Jun. de 2014
Please take my suggestion so I can diagnose your problem. What does the command window say when you run the commands I asked you to run? In the meantime, try
rgbImage = ind2rgb(im, colorMap);
fereshte
fereshte el 28 de Jun. de 2014
thanks a lot.great

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Red en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by