atyazdi at ucdavis.edu
Tue Aug 10 23:35:07 CEST 2010
Yes, my question is regarding PIL. And basically I need to reload an image
given a new histogram. The new histogram has still the same amount of
overall pixels however I have only switched a couple of picks. Another thing
I have tried was using a function that could be given to the "point" module
but problem with that was that I didnt want to apply the function to every
single count in the histogram. I only need to change two or three picks
Is this something that could be done with PIL modules at all?
Thank you and sorry for the confusion,
On Mon, Aug 9, 2010 at 4:27 PM, Anahita Yazdi <atyazdi at ucdavis.edu> wrote:
> I was just wondering how would I be able to get some extra help regarding
> editing an image's histogram using python's module? I have modified a
> histogram of an image however I dont know how to apply the new histogram to
> the image and basically reload the image based on its new modified histogram
> instead of its own histogram? In the other words how should I make changes
> on an image's histogram in a way that the image recognizes the new histogram
> and gets changed? I need to somehow introduce a LUT for the image and use
> ".point(table)" function to reload the image however I am not sure how to
> make the right LUT from a modified histogram!
> Thanks for the help in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list