This mex file will rotate UINT8 images just like imrotate(image,angle,'crop'), but ten times faster.
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.
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!
thanks a lot.
How can I compile the cpp-file?
Please give me a quick info.
Many thanks in advance!
Amazing! Speeded up my optimization drastically... thank you!
Works great!! Indeed, a non-cropping version would be useful.
You might want to considder making your demo self-contained, that is you include the circuit.tif into the zip file.
Man! You rule!It was exactly what i needed!
Now i will boost the performance of my code.!
Indeed very fast and results identical to matlabs imrotate(...'crop').
A non-cropping version would be very helpful!
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.