ENLARGE_CVIP

enlarge_cvip() - Enlarges an image to a user-defined size.

Contents

SYNTAX

[outImage] = enlarge_cvip( inImage, row, col)

Input Parameters include :

Output Parameter includes:

DESCRIPTION

Enlarge allows the user to specify the number of rows and columns in the resultant image, corresponding to the height and width of the new image. The integers specified for row and column sizes must be equal to or greater than the input image sizes or an error results. Because the user may enter different values for height and width, enlarge may be used to geometrically distort the image in a rubber-sheet fashion.

REFERENCE

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

EXAMPLE

% Read image

 I = imread('cam.bmp');

% row and col user defined

 r = 300;

 c = 300;

% Call function byPerform enlargement of an image using user specified parametrs

 O1 = enlarge_cvip(I,r,c);

% Display input image

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

% Display output image

 figure;imshow(O1,[]);title('Output image with  user defined parameters');

CREDITS

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