Image Rotation

3 Ansichten (letzte 30 Tage)
ahlem
ahlem am 7 Jun. 2012
I want to rotate an image through the rotation matrix whose center of rotation is variable.

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 7 Jun. 2012
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.

Weitere Antworten (1)

ahlem
ahlem am 7 Jun. 2012
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 Kommentare
Sean de Wolski
Sean de Wolski am 7 Jun. 2012
IMROTATE _can_ do expand the dimensions, yes. It also has a 'crop' option that maintains the original dimensions.
ahlem
ahlem am 8 Jun. 2012
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!!!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by