I tried this with LAB LCHab and HSL using latest imagemagick on arch linux.
original image: https://dl.dropboxusercontent.com/u/22023572/a3.png
Using -channel
Code: Select all
convert img.png -colorspace LAB -channel L -contrast-stretch 0 -colorspace sRGB img_lab_only_L_auto.png
Doing it "by hand"
Code: Select all
convert img.png -colorspace LAB -separate img_lab_channel_%d.png
convert img_lab_channel_0.png -contrast-stretch 0 img_lab_channel_0_stretched.png
convert img_lab_channel_0_stretched.png img_lab_channel_1.png img_lab_channel_2.png -set colorspace LAB -combine -colorspace sRGB img_lab_only_L.png
Any ideas?