Rotate the colormap image: Axis labels missing after rotation!

5 visualizaciones (últimos 30 días)
aneps
aneps el 14 de Dic. de 2014
Comentada: aneps el 15 de Dic. de 2014
I have a colormap image as shown here.
I want to rotate it through 45 degrees. I used imrotate to perform this as follows:
ImageRot=imrotate(Image,45);
imshow(ImageRot,'colormap',jet)
set(gca,'Clim',[0,25])
After doing this, I am getting the image rotated but unfortunately without axis, labels and title... im just getting the image (following image).
How can I insert the axis labels and all or how to perform rotation keeping the axis labels and title?
  2 comentarios
Image Analyst
Image Analyst el 14 de Dic. de 2014
What is the point of the set() function? What if you just don't call that? At what point does the colorbar vanish?
aneps
aneps el 14 de Dic. de 2014
Editada: aneps el 14 de Dic. de 2014
set() is just to adjust the intensity scale of the colormap. I can remove it and change the intensity manually. But that doesn't solve the issue of missing axes labels etc...The colorbar and axes labels vanish when I use 'imshow'

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 14 de Dic. de 2014
After the call to imshow(), call colorbar().
  9 comentarios
aneps
aneps el 15 de Dic. de 2014
I tried, it is not working!.. giving the same thing again :(
aneps
aneps el 15 de Dic. de 2014
Thanks... I made it finally using 'flipud':
imshow(flipud(ImageRot),'XData',[0 40],'YData',[0 40])
set(gca, 'ydir', 'normal');

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by