ASSEMBLE_BANDS_CVIP

assemble_bands_cvip() - Assemble the red band, green band and blue band of an RGB image.

Contents

SYNTAX

RGB = assemble_bands_cvip(X,Y,Z)

Input parameters include:

Output parameters include:

DESCRIPTION

This function assembles the elements in array X, array Y and array Z forming a 3-d array RGB. It adds the monochrome image planes to create a multispectral image. Input band arrays must be of same size in order to assemble them into one 3-band 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 Extract band function function

 R = extract_band_cvip(X,1);

 G = extract_band_cvip(X,2);

 B = extract_band_cvip(X,3);

% Calling Assemble band function

 RGB = assemble_bands_cvip(R,G,B);

% Display Input Image

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

% Display Output Image

 figure;imshow(RGB,[]);title('Output Image');

CREDITS

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