Code covered by the BSD License  

Highlights from
Fill corners of rotated image

4.66667

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

Fill corners of rotated image

by

 

12 Jun 2002 (Updated )

Rotate image without making black edges.

| Watch this File

File Information
Description

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
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  
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

Bug removed. Thanks Mathew!

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

Great

Updates
31 Oct 2008

Degrees are now converted to radians before image processing.

19 Nov 2014

Published as Matlab toolbox (.mltbx file).

Contact us