RGB2CCT_CVIP

rgb2cct_cvip() - Converts Red-Green-Blue Color value to CCT, Cylindrical Coordinate Color value.

Contents

SYNTAX

OutputImage = rgb2cct_cvip(InputImage, type)

Input parameters include:

                 (0 = Forward non normalized output)
                 (1 = gives normalized output)

Output parameter includes:

DESCRIPTION

This function converths the input image from the RGB color space to the Cylindrical coordinate transform color space. The CCT color space does not decouple the color and brightness information completely and so it is easier to align the Z-axis along one color band. This is helpful in applications where one of the RGB colors hold primary importance. The function aligns the Z-axis along the Blue color band.

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 = rgb2cct_cvip(X,0); % forward transform image

 S2 = rgb2cct_cvip(X,1); % forward transform, normalized

% Display input image

 figure;imshow(X);title('Input image');

% Display output images

 figure;imshow((S1/255),[]);title('Output image1');

 figure;imshow((S2),[]);title('Output image2');

CREDITS

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