txt: seems to be the oddball for the AB components.
It looks to me like txt is unbiased and fx: and pixel: are 50% biased. Is this intentional?
Code: Select all
convert -size 1x1 xc:red -set colorspace sRGB -colorspace LAB -format "%[fx:mean.r] %[fx:mean.g] %[fx:mean.b]\n" info:
Code: Select all
convert -size 1x1 xc:red -set colorspace sRGB -colorspace LAB -format "%[fx:u.r] %[fx:u.g] %[fx:u.b]\n" info:
Code: Select all
convert -size 1x1 xc:red -set colorspace sRGB -colorspace LAB -format "%[pixel:u.p{0,0}]\n" info:
Code: Select all
convert -size 1x1 xc:red -set colorspace sRGB -colorspace LAB txt:
0,0: (53.2311%,31.4168%,26.36%) #8845506D437B cielab(53.2311%,31.4168%,26.36%)
convert -version
Version: ImageMagick 6.8.9-6 Q16 x86_64 2014-07-28 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib