No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Fast imrotate

4.9 | 8 ratings Rate this file 13 Downloads (last 30 days) File Size: 5.24 KB File ID: #17788 Version: 1.0

Fast imrotate



28 Nov 2007 (Updated )

A fast version of imrotate

| Watch this File

File Information

This mex file will rotate UINT8 images just like imrotate(image,angle,'crop'), but ten times faster.

MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (11)
22 Mar 2012 Robert

Robert (view profile)

I tried to compile the C code on 32-bit Windows with the LCC compiler that comes with R2011b. I got "illegal statement termination" and "undeclared identifier" errors on several lines of the code.

C:\MATLAB\R2011B\BIN\MEX.PL: Error: Compile of 'fast_rotate.cpp' failed.

Any suggestions?

Comment only
13 Mar 2012 Muhammad Mhajna

thank you for sharing the code!
i got (almost) the same results but the matlab built-in function is a bit faster.
(0.282 compared to 0.351 secs)
Any way, thank you for letting me know the 'crop' option in the matlab function because it's really boost the performance since i use the function >1700 times in my code!

13 May 2011 Mohsen Jamali

thanks a lot.

12 May 2011 Martin

Martin (view profile)

How can I compile the cpp-file?
Please give me a quick info.

Many thanks in advance!

27 Sep 2010 sethb Benton

17 Jun 2010 David Jessop

Fantastic code

16 Jun 2010 Håkan MacLean

Amazing! Speeded up my optimization drastically... thank you!

07 Jan 2010 Michael

Works great!! Indeed, a non-cropping version would be useful.

11 Aug 2009 Daniel Armyr

Daniel Armyr (view profile)

You might want to considder making your demo self-contained, that is you include the circuit.tif into the zip file.

Comment only
03 Oct 2008 Gio Kordie

Man! You rule!It was exactly what i needed!
Now i will boost the performance of my code.!

Comment only
29 May 2008 Dennis Olly

Indeed very fast and results identical to matlabs imrotate(...'crop').
A non-cropping version would be very helpful!

Contact us