image rotation with equations?
1 次查看(过去 30 天)
显示 更早的评论
xrot = x*cos(θ) − y*sin(θ)
yrot = x*sin(θ) + y*cos(θ)
hold for images as well. can i rotate image with them?
0 个评论
采纳的回答
Walter Roberson
2013-11-27
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 个评论
更多回答(1 个)
Matt J
2013-11-27
You could, when you incorporate them into imtransform(). But it would be easier just to use imrotate().
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!