EXTRACT_BAND_CVIP

extract_band_cvip() - Extract different bands from the input image.

Contents

SYNTAX

R = extract_band_cvip(a,bands)

Input Parameter include :

Output Parameters Include :

DESCRIPTION

The function extracts the three different bands from an input 3-band image. The band extracted depends on the band number given as an input by the user to the function. The extracted bands from a 2D array representing a single band image of the same size as the input image.

REFERENCE

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

EXAMPLE

% Read image

 X = imread('car.bmp');

% Calling function

 R = extract_band_cvip(X,1);

 G = extract_band_cvip(X,2);

 B = extract_band_cvip(X,3);

% Display input image

 figure;imshow(X,[]);title('Input image');

% Display output image

 figure;imshow( R ,[]);title('Red band image');

 figure;imshow(G,[]);title('Green band image');

 figure;imshow(B,[]);title('Blue band image');

CREDITS

Author: Deependra Mishra, March 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website