© Copyright 2000-2015 Source Code Online. Free Source Code and Scripts Downloads.
|Report About imtranslate 1.0|
This function makes it easy to translate a 2d image or 3d volume. The shifts do not need to be integer values.
It was written so I could test image registration algorithms.
function Iout = imtranslate(I, translation, F, method, same_size)
%Affine translates a 2D or 3D image
% -I = 2D or 3D image
% -translation =
% -[row_shift col_shift] for 2D images
% -[row_shift col_shift pag_shift] for 3D images
% -F = values to pad the image with (optional, defaults to 0)
% -method = interpolation method (optional, defaults to 'linear')
% -same_size = 1 or 0, 1 if the output image is to be the same size as
% the input image (optional, defaults to 1)
% -Iout = translated image
Screen Shot was done using:
>>I = imread('cameraman.tif');
>>I2 = imtranslate(I,[3 -8.7]);
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.