File Exchange

image thumbnail

Fill corners of rotated image

version 1.5 (3.33 KB) by Vlad Atanasiu
Rotate image without making black edges.

3 Downloads

Updated 19 Nov 2014

View License

ROIROTATE was designed to avoid the 'black corners' typical of MATLAB's imrotate function, which are apearing from its behaviour of padding by zeros of the space outside the image borders prior to the rotation. This is possible if the image to be rotated is part of a bigger image, because there is enough information to fill the corners.

Comments and Ratings (7)

hend

amir yavari

great job tnx

thanks a lot

Bug removed. Thanks Mathew!

Matthew

Great, but there is one small but important bug! When calculating the padding, it doesn't convert from degrees to radians, which means that occasionally it will not pad the images enough. Just make sure you edit the padX and padY variables and it will work beautifully!

Elwyn Jenkins

Great

Updates

1.5

Published as Matlab toolbox (.mltbx file).

1.4.0.0

Degrees are now converted to radians before image processing.

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux