Display an image processed in LAB channel
Show older comments
I'm dealing with processing blood vessels image in LAB channels, first i Convert the image to LAB color space, then i applied Contrast Limited Adaptive Histogram Equalization (CLAHE) to L channel, finally i converted the enhanced LAB image back to RGB color space.
% Load an image
originalImage = imread('7roi.png');
% Convert the image to LAB color space
labImage = rgb2lab(originalImage);
labImage = im2double(labImage);
% Apply Contrast Limited Adaptive Histogram Equalization (CLAHE) to L channel
clabImage = labImage;
clabImage(:,:,1) = adapthisteq(labImage(:,:,1));
% Convert the enhanced LAB image back to RGB color space
enhancedRGBImage = lab2rgb(clabImage);
% Convert enhanced image back to the original data type
enhancedRGBImage = im2uint8(enhancedRGBImage);
figure
imshow(enhancedRGBImage);
Here is the original and the result image, is it normal or i have some mistake in my algorithm, please help, thank you so much.


Accepted Answer
More Answers (1)
Image Analyst
on 29 Aug 2023
0 votes
The code looks right. The problem is that CLAHE is often not a good algorithm because it's non-linear. Try imadjust instead.
1 Comment
Quoc Anh Vu
on 30 Aug 2023
Categories
Find more on Contrast Adjustment in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!