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 there. <div>
Is this something that could be done with PIL modules at all?</div><div>Thank you and sorry for the confusion,</div><div>Anahita<br><br><div class="gmail_quote">On Mon, Aug 9, 2010 at 4:27 PM, Anahita Yazdi <span dir="ltr"><<a href="mailto:atyazdi@ucdavis.edu">atyazdi@ucdavis.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div>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!</div>

<div>Thanks for the help in advance,</div><div>Anahita</div>
</blockquote></div><br></div>