View License

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

» Watch video

Highlights from
Fill corners of rotated image

4.7 | 6 ratings Rate this file 16 Downloads (last 30 days) File Size: 3.33 KB File ID: #1825 Version: 1.5
image thumbnail

Fill corners of rotated image


Vlad Atanasiu (view profile)


12 Jun 2002 (Updated )

Rotate image without making black edges.

| Watch this File

File Information

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.

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.1 (R12.1)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
25 Aug 2013 hend

hend (view profile)

02 Dec 2011 amir yavari

great job tnx

13 May 2011 Mohsen Jamali

thanks a lot

11 Feb 2009 Husam Aldahiyat

31 Oct 2008 Vlad Atanasiu

Vlad Atanasiu (view profile)

Bug removed. Thanks Mathew!

Comment only
27 Oct 2008 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!

12 Nov 2003 Elwyn Jenkins


31 Oct 2008 1.4

Degrees are now converted to radians before image processing.

19 Nov 2014 1.5

Published as Matlab toolbox (.mltbx file).

Contact us