IPCT_CVIP
ipct_cvip() - Performs inverse priciple component transform.
Contents
SYNTAX
OutputImage = ipct_cvip(InputImage, EigenVector)
Input parameters include:
- InputImage - PCT Image
- EigenVector - EigenVector, 3x3 matrix, generated while performing PCT operation.
Output Parameter includes:
- OutputImage - Resultant output image.
DESCRIPTION
This function converts the principle component tranform image back to an RGB image. The function uses the Eigen vectors, generated while performing the PCT on an image, to convert the PCT components to iPCT components for all the bands in the image. The Eigen vector has to be given as an input to the function by the user.
REFERENCE
1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read image X = imread('Car.bmp'); % Call function [S1, E ,e] = pct_cvip(X); S2 = ipct_cvip(S1,E); % Display input image figure;imshow(X);title('Input image'); % Display output images figure;imshow(remap_cvip(S1),[]);title('Output image after pct'); figure;imshow(remap_cvip(S2),[]);title('Output image afer inverse pct');
CREDITS
Author: Deependra Mishra, March 2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website