SCT2RGB_CVIP
sct2rgb_cvip() - Converts SCT Color value to RGB Color value.
Contents
SYNTAX
OutputImage = sct2rgb_cvip(InputImage, type)
Input parameters include:
- InputImage - SCT color value Image.
- type - output image preference (0,1)
(0 = Forward non normalized output)
(1 = gives normalized output)
Output parameter includes:
- OutputImage - Resultant RGB image.
DESCRIPTION
This function converts the input image from the Spherical coordinate transform color space to the RGB color space.
To view the 8-bit image of type double,divide by 255. To view the 16-bit image of type double,divide by 65535.
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 = rgb2sct_cvip(X,0); S2 = sct2rgb_cvip(S1,0); % Display input image figure;imshow(X);title('Input image'); % Display output images figure;imshow(remap_cvip(S1),[]);title('Output image1'); figure;imshow(remap_cvip(S2,[]));title('Output image2');
CREDITS
Author: Deependra Mishra, March 2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website