Greetings,<br><br>I&#39;m reading in a 16-bit monochrome image using PIL on windows and can&#39;t seem to work with the resulting image object. <br><br>I&#39;ve confirmed the image data is good..I can open and view it with ImageJ and the dimensions are correct.<br>
<br>I&#39;m using PIL 1.1.6 as part of the Enthought Python distribution...I&#39;m stumped. I&#39;ve appended relevant code I&#39;m trying with my interpreter below:<br><br>I&#39;m hoping perhaps someone can help...I need to take 16-bit monochrome 
images (*.tiff in this case) and get them into 8-bit space...thanks in advance for any insight into what I can do to solve this. <br><br>print im.mode,im.size<br>I;16 (832, 656)<br><br>print im.getextrema()<br>None # this doesn&#39;t seem right....can PIL 1.1.6 apply this method to 16-bit unsigned int image objects?<br>
<br>lut=[]<br>len(lut)<br>0<br>for i in range (65536):<br>    lut.append(int(i/256))<br>    <br>len(lut)<br>65536<br><br>im3=im.point(lut,&#39;L&#39;)<br>Traceback (most recent call last):<br>  File &quot;&lt;input&gt;&quot;, line 1, in &lt;module&gt;<br>
  File &quot;C:\Python26\lib\site-packages\PIL\Image.py&quot;, line 1109, in point<br>    return self._new(self.im.point(lut, mode))<br>ValueError: wrong number of lut entries<br>