Azzera filtri
Azzera filtri

image rotation with equations?

4 visualizzazioni (ultimi 30 giorni)
Muneef
Muneef il 27 Nov 2013
Risposto: Walter Roberson il 27 Nov 2013
xrot = x*cos(θ) y*sin(θ)
yrot = x*sin(θ) + y*cos(θ)
hold for images as well. can i rotate image with them?

Risposta accettata

Walter Roberson
Walter Roberson il 27 Nov 2013
Yes, but you will encounter the same limitations as with imrotate(), that you will need to end up with a rectangular grid that the rotated image takes up part of. image() and imagesc() and imshow() can only deal with horizontally and vertically aligned matrices.
You should have a look at hgtransform()

Più risposte (1)

Matt J
Matt J il 27 Nov 2013
You could, when you incorporate them into imtransform(). But it would be easier just to use imrotate().

Categorie

Scopri di più su Images in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by