Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

image rotation

Status
Not open for further replies.

jurij

Computer
Joined
Apr 14, 2005
Messages
1
Location
SI
I'm triing to rotate an image around a certain point in image, that is not necessarily a center point. What would be the best (simplest/fastest solution).

I wanted to use imrotate, but it seems it rotates only around a center point. I tried to modify it, but I had no luck :]

I also tried to write my own image rotation function. It worked but it was slooooooow :].

Thank you!

 
cant you just translate the equations to make the rotation point the origin in the new frame? :)
 
Can't you copy the image into a larger array with the offset desired, rotate and crop to size?

TTFN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top