SHRINK_CVIP

shrink_cvip() - Shrinks an image by a given factor.

Contents

SYNTAX

outImage = shrink_cvip( inImage, factor)

Input Parameters include:

Output Parameter includes :

DESCRIPTION

This function reduces the size of the input image by a given factor. The reductions will be performed by same factor in both horizontal and vertical directions. The scaling factor must be in between 0.1 and 1.0.

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 = shrink_cvip(I);

% Calling function with user specified parameters

 O2 = shrink_cvip(I,0.7);

% Display input image

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

% Display Output image

 figure; imshow(hist_stretch_cvip(O1,0,1,0,0));title('Output Image with default parameters');

 figure; imshow(hist_stretch_cvip(O2,0,1,0,0));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