image rotation with equations?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muneef
le 27 Nov 2013
Réponse apportée : Walter Roberson
le 27 Nov 2013
xrot = x*cos(θ) − y*sin(θ)
yrot = x*sin(θ) + y*cos(θ)
hold for images as well. can i rotate image with them?
0 commentaires
Réponse acceptée
Walter Roberson
le 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()
0 commentaires
Plus de réponses (1)
Matt J
le 27 Nov 2013
You could, when you incorporate them into imtransform(). But it would be easier just to use imrotate().
0 commentaires
Voir également
Catégories
En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!