Code covered by the BSD License  

Highlights from
Fill corners of rotated image

4.6

4.6 | 5 ratings Rate this file 13 Downloads (last 30 days) File Size: 3.33 KB File ID: #1825
image thumbnail

Fill corners of rotated image

by Vlad Atanasiu

 

12 Jun 2002 (Updated 31 Oct 2008)

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 release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
12 Nov 2003 Elwyn Jenkins

Great

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!

31 Oct 2008 Vlad Atanasiu

Bug removed. Thanks Mathew!

11 Feb 2009 Husam Aldahiyat  
13 May 2011 Mohsen Jamali

thanks a lot

02 Dec 2011 amir yavari

great job tnx

Please login to add a comment or rating.
Updates
31 Oct 2008

Degrees are now converted to radians before image processing.

Tag Activity for this File
Tag Applied By Date/Time
geometric transformation Vlad Atanasiu 22 Oct 2008 06:45:17
image registration Vlad Atanasiu 22 Oct 2008 06:45:17
image analysis Vlad Atanasiu 22 Oct 2008 06:45:17
region of interest Vlad Atanasiu 22 Oct 2008 06:45:17
rotate Vlad Atanasiu 22 Oct 2008 06:45:17
image Cristina McIntire 10 Nov 2008 13:09:30
analysis Cristina McIntire 10 Nov 2008 13:09:33

Contact us at files@mathworks.com