TRANSLATE_CVIP

translate_cvip() - Translates or moves the entire image or a part of the image..

Contents

SYNTAX

outImage = translate_cvip(inImage, shiftOffset, grayFill)

Input Parameters include :

Output Parameter includes :

DESCRIPTION

The function translates the entire image or a part of the image. Translate can perform two different operations, horizontal and vertical translation of an image. Translation moves the image as a whole; it can either wrap the image around the 'edges' or fill vacated areas with a constant value.

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

% Read Image

 I = imread('butterfly.tif');

% Calling function with default parameters

 O1 = translate_cvip(I);   %O1 is of double class and the %range [0 255]

% Calling function with user defined parameters

 O2 = translate_cvip(I,[256 256],0);

% Display input image

 figure;imshow(I);title('Input Image');

% Display output image

 figure; imshow(O1/255);title('Output Image with default parameters');

 figure; imshow(O2/255);title('Output Image with user specified parameters');

CREDITS

Author: Norsang Lama, June 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website