ENLARGE_CVIP
enlarge_cvip() - Enlarges an image to a user-defined size.
Contents
SYNTAX
[outImage] = enlarge_cvip( inImage, row, col)
Input Parameters include :
- inImage - 1-band input image of MxN size or 3-band input image of MxNx3 size.The input image can be of uint8 or uint16 or double class.
- row - Row has to be greater than the no. of rows in the original image.
- col - Col has to be larger than the no. of columns in the original image.
Output Parameter includes:
- outImage - enlarged image.
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