LUV2RGB_CVIP
luv2rgb_cvip() - Converts L*u*v* Color value to Red-Green-Blue Color value.
Contents
SYNTAX
OutputImage = luv2rgb_cvip(InputImage, type)
Input parameters include:
- InputImage - L*u*v* color value Image
- type - output image preference (0,1)
(0 = Forward non normalized output)
(1 = gives normalized output)
Output parameter includes:
- outputImage - Resultant output image.
DESCRIPTION
This function converts the input image from the L*u*v* color space to the RGB color space. The L*u*v* color space is perceptually uniform.
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
Jain, Anil K., Fundamentals of Digital Image Processing,Prentice-Hall, ISBN 0-13-336165-9, 1989.
EXAMPLE
% Read image X = imread('Car.bmp'); % Call function S1 = rgb2luv_cvip(X,0); S2 = luv2rgb_cvip(S1,0); % Display input image figure;imshow(X);title('Input image'); % Display output images figure;imshow(remap_cvip(S1),[]);title('Output image'); figure;imshow(remap_cvip(S2),[]);title('Output image');
CREDITS
Author: Deependra Mishra, March 2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website