The relation between R’G’B’ (gamma encoded values)
and Lab is highly nonlinear, therefore mean values
cannot be transformed easily.
One exception: a gray image has C’=R’=G’=B’.
In this case and for G=2.2, C’ is almost a linear
function of L* or vice versa.
This is shown here on top of p.8, the black and the
green curves:
<
http://www.fho-emden.de/~hoffmann/a3gencolortest.pdf>
Then we can use L*=C’/2.55 for L*=0..100 and C’=0..255
as an approximation with max. error 5% or so.
Perhaps the OP’s problem can be solved by applying
a very strong Gaussian blur which results in a uniformly colored area. Then one can read the Lab values.
Gaussian blur doesn’t clip, therefore the measurement
should be rather accurate.
Best regards –Gernot Hoffmann