I am using Python Image Library to get a sort of brightness value for each pixel, based on its Euclidean Distance measured from white.
From what I can discern from PIL's documentation, Image.point()
manipulates each pixel according to a color table. But what I need is a way to reach each pixel's value in a way similar to this: pixel.r
pixel.g
pixel.b
in order to use them to fit the calculation to the distance formula.
I'm new to PIL, and its documentation is a bit fuzzy. Is Image.point()
up to a task like this? If not, where else might I look?