LAB2RGB_CVIP
lab2rgb_cvip() - Converts L* a* b* Color value to RGB Color value
Contents
SYNTAX
OutputImage = lab2rgb_cvip(InputImage, type)
Input parameters include:
- InputImage - L* a* b* 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 L*a*b* color space to the RGB color space. The L*a*b* color space is uniform in terms of Human perception and hence is useful in many Human vision applications.
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 = rgb2lab_cvip(X,0); S2 = lab2rgb_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