0

I've transformed an image from RGB to cieLAB and then extracted a channel. How can I automatically adjust the tonal range of the a channel like in Adobe Photoshop?

A = imread('image.jpg');
CT = makecform('srgb2lab');
lab = applycform(A,CT);
a = lab(:,:,2);
%????? --> how to automatically adjust the tonal range of a channel?

Auto Level Adjustment in Photoshop:

Auto Level Adjustment in Photoshop

Community
  • 1
  • 1
MatejZ
  • 1
  • By example: a=imadjust(a); – Alex Alex May 26 '20 at 06:41
  • I tried with imadjust(a), but the histogram of image has changed and it is not similar to Photoshop histogram. LINK to histogram: https://ibb.co/sRYZgQy – MatejZ May 26 '20 at 14:56
  • Please, share PNG-image before and after processing in Photoshop. – Alex Alex May 26 '20 at 15:18
  • Image before(left) and after(right) auto level adjustment (LINK: https://ibb.co/BNrX8J0 ). I transformed left image from RGB to cieLAB and then did auto level adjustment on a channel. After that, i excluded b channel from the image so that only L and adjusted b channel remained. Right image is the result. How can that be implemented in Matlab? Thank u!! – MatejZ May 26 '20 at 15:45
  • https://ibb.co/J37xfCk -> here is histogram of a channel after auto level adjustment – MatejZ May 26 '20 at 15:50
  • @AlexAlex have you figured out? thank your for your answer! – MatejZ Jun 03 '20 at 08:32

0 Answers0