hello evryone , i m starting using matlab and can't understand the diffrence between image and imagesc functions.

 Respuesta aceptada

Chad Greene
Chad Greene el 15 de Dic. de 2015

0 votos

The sc suffix simply means color-scaled. Type this into your command line and see:
open imagesc
The imagesc function calls image and specifies 'CDataMapping','scaled'.

5 comentarios

laksantini anas
laksantini anas el 16 de Dic. de 2015
thanks Chad Greene, but can u clarify please what are these parameters?
Chad Greene
Chad Greene el 16 de Dic. de 2015
By default the image function assumes the gridded data you put into it is an image with values associated with how data are stored in image formats. But most real-life data measurements do not perfectly lie in the image data range 0 to 255, so imagesc scales the colormap to match the data. For example, try plotting the sample peaks data with image versus imagesc:
Z = peaks(500);
subplot(121)
image(Z)
subplot(122)
imagesc(Z)
laksantini anas
laksantini anas el 17 de Dic. de 2015
thank you so much Mr Chad Greene for your answers and the time you are giving to me. if it's possible can you tell me how the scale is working on the image.
Chad Greene
Chad Greene el 17 de Dic. de 2015
Glad to help, but that's about as much as I know. You've reached the end of my knowledge!
laksantini anas
laksantini anas el 20 de Dic. de 2015
thanks a lot you have already help me.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Dic. de 2015

Comentada:

el 20 de Dic. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by