Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
.Net Assemblies/WSDL Import Utility for Delphi 6.0.4.0
Devart Excel Add-in for Zendesk 1.7
Excel Add-in for Marketo 1.7
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Top Code
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
Report About imtranslate 1.0
- required fields

Please enter text on the image
  



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.

Help:
function Iout = imtranslate(I, translation, F, method, same_size)
%SCd 12/21/2009
%Affine translates a 2D or 3D image
%
%Input Arguments:
% -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)
%
%Output Arguments:
% -Iout = translated image
%
-----
Screen Shot was done using:

>>I = imread('cameraman.tif');
>>I2 = imtranslate(I,[3 -8.7]);

Back