Image Rotation

조회 수: 9 (최근 30일)
ahlem
ahlem 2012년 6월 7일
I want to rotate an image through the rotation matrix whose center of rotation is variable.

채택된 답변

Sean de Wolski
Sean de Wolski 2012년 6월 7일
doc maketform
doc imtransform
Or you could pad the image so that the center of rotation is the center, use imrotate and then unpad as necessary.

추가 답변 (1개)

ahlem
ahlem 2012년 6월 7일
imrotate actually enlarges the dimensions of the image that is why I want to multiply the rotation matrix "R = [cos (angle)-sin (angle), sin (angle) cos (angle)]" with the image I
  댓글 수: 2
Sean de Wolski
Sean de Wolski 2012년 6월 7일
IMROTATE _can_ do expand the dimensions, yes. It also has a 'crop' option that maintains the original dimensions.
ahlem
ahlem 2012년 6월 8일
Thank you sean .
Actually, my work is to implement generalized Radon whose projections are rectangles. I do the rotation of each rectangle then I go through the main image to find the peak.
that's why the Imrotate don't work with!!!

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

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by