rotate image using camup or cameraupvector

조회 수: 2 (최근 30일)
Gaurav Gupta
Gaurav Gupta 2011년 7월 10일
I want to rotate image using camup or setting cameraupvector of current axes but as I apply this transformation axes labels rotate but image disappear.Since I have other entities also on same axes therefore I cant apply imrotate. Any suggestions

답변 (3개)

Jan
Jan 2011년 7월 11일
Images displayed by IMAGE or IMSHOW cannot be rotated. They are displayed only in a pure 2D view with standard orientation.
You can create a PATCH, which contains the image as CData or FaceVertexCData. Or a SURFACE with the FaceColor property set to 'texturemap' and the image stored in the CData. Both objects can be rotated freely.
[EDITED]: See FEX: Image3
If you have the image processing toolbox, see WARP.
  댓글 수: 2
Gaurav Gupta
Gaurav Gupta 2011년 7월 18일
Can you please tell me how to create patch with setting cdata and all, It would be very helpful
Jan
Jan 2011년 7월 18일
@Gaurav: I've added a link to a nice FEX submission, which implements the display of images in 3D.

댓글을 달려면 로그인하십시오.


Sean de Wolski
Sean de Wolski 2011년 7월 18일
Use slice to plot your image. It can then be rotated at will.
doc slice

Walter Roberson
Walter Roberson 2011년 7월 18일

카테고리

Help CenterFile Exchange에서 Display Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by