PIL (Python图像处理库) 1.1.7 发布

fmms 12年前
     PythonWare公司提供了免费的图像处理工具包 PIL(Python Image Library),该软件包提供了基本的图像处理功能,如:改变图像大小,旋转图像,图像格式转换,色场空间转换,图像增强,直方图处理,插值和滤波等等。虽然在这个软件包上要实现类似MATLAB中的复杂的图像处理算法并不太适合,但是Python的快速开发能力以及面向对象等等诸多特点使得它非常适合用来进行原型开发。    <div id="p_fullcontent" class="detail">     <p>在PIL中,任何一副图像都是用一个Image对象表示,而这个类由和它同名的模块导出,因此,要加载一副图像,最简单的形式是这样的:</p>     <p>import Image<br /> img = Image.open(“dip.jpg”)</p>     <p>注意:第一行的Image是模块名;第二行的img是一个Image对象; Image类是在Image模块中定义的。关于Image模块和Image类,切记不要混淆了。现在,我们就可以对img进行各种操作了,所有对img的 操作最终都会反映到到dip.img图像上。</p>    </div> 项目地址:    <a href="/misc/goto?guid=4958184668454326579" target="_blank">http://www.pythonware.com/products/pil/<br /> </a>    <br /> PIL 1.1.7 发布了,该版本改进了对 PNG 压缩的处理,支持隔行扫描的PNG文件,改进了对各种 TGA 的支持,修复了一些错误等等。    <br />    <h3>Downloads</h3>    <p>The following downloads are currently available:</p>    <p id="pil117"><b>PIL 1.1.7</b></p>    <ul>     <li><a href="/misc/goto?guid=4958192667356047511"><b>Python Imaging Library 1.1.7 Source Kit</b></a> (all platforms) (November 15, 2009)</li>     <li><a href="/misc/goto?guid=4958192668102459036"><b>Python Imaging Library 1.1.7 for Python 2.4</b></a> (Windows only)</li>     <li><a href="/misc/goto?guid=4958192668849585719"><b>Python Imaging Library 1.1.7 for Python 2.5</b></a> (Windows only)</li>     <li><a href="/misc/goto?guid=4958192669586597712"><b>Python Imaging Library 1.1.7 for Python 2.6</b></a> (Windows only)</li>     <li><a href="/misc/goto?guid=4958192670333356487"><b>Python Imaging Library 1.1.7 for Python 2.7</b></a> (Windows only)</li>    </ul>    <br />