Skip to main content
. 2021 Jul 7;21(14):4654. doi: 10.3390/s21144654
Algorithm 1: Histogram modification in L*a*b* space
   InputIRGB—image in RGB space
1 convert IRGB into ILab;
2 divide ILab into separate channels;
3 leave a and b channels without any changes;
4 transform L channel to the [0 1] range;
5 perform certain histogram operation on L channel;
6 transform back L channel to the [0 100] range;
7 combine ILab from separate channels;
8 convert ILab into IRGB;
9 return IRGB—modified image in RGB space;