Image Rotation

3 次查看(过去 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