|
|
| File Information |
| Description |
% rotate_image - rotates an image given inside a matrix by the amount of "degree" counter-clockwise
% using linear interpolation of the output grid points from the back-rotated input points
% in this way, the output image will never have a "blank" point
%
% Format: [out_image_m,out_ref_points_m] = rotate_image( degree, in_image_m, in_ref_points_m )
%
% Input: degree - rotation degree in dergees, counter-clockwise
% in_image_m - input image, given inside a matrix (gray level image only)
% in_ref_points_m - points on the image wich their output coordinates will be given
% after the rotation. given format of this matrix is:
% [ x1,x2,...,xn;y1,y2,...,yn]
%
% Output: out_image_m - the output image
% out_ref_points_m - the position of the input handle points after the rotation.
% this element is given in "in_ref_points_m" exists
% format of the matrix is the same as of "in_ref_points_m"
%
% NOTE: By definition of rotation, in order to perserve all the image inside the
% rotated image space, the output image will be a matrix with a bigger size.
%
Call the function with no parameters, to activate the demo |
| Acknowledgements |
This submission has inspired the following:
Automatic Image Registration
|
| 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 (21) |
| 26 Dec 2004 |
Meenal Bagla
|
|
|
| 11 Feb 2005 |
amit mishra
|
|
|
| 21 Dec 2005 |
K S
|
|
|
| 23 Dec 2005 |
Francisco Lopes
|
|
|
| 17 May 2006 |
Alice Huang
|
|
|
| 12 Jul 2006 |
PBO .
|
|
|
| 20 Nov 2006 |
Sachin Gupta
|
|
|
| 23 Nov 2006 |
Avinash .
|
|
|
| 12 Dec 2006 |
sulakshana borsune
|
|
|
| 08 Mar 2007 |
Tim Peace
|
|
|
| 06 Jun 2007 |
aa jam
|
|
|
| 08 Aug 2007 |
Sudhir Gupta
|
|
|
| 05 Sep 2007 |
Simon Robinson
|
|
|
| 23 Apr 2008 |
Shamem Ahmed
|
|
|
| 15 May 2008 |
Ben hardy
|
|
|
| 15 May 2008 |
David Moyles
|
|
|
| 15 May 2008 |
Simone Scolding
|
|
|
| 01 Jul 2008 |
Steve Sharples
|
|
|
| 10 Jul 2008 |
Amanda Lin
|
|
|
| 14 Aug 2008 |
vaira prakash
|
|
|
| 04 Sep 2009 |
Pearl
|
|
|
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com