Tuesday 11 September 2007

GIMP plugin

Content-aware image resizing algorithm implemented as GIMP plugin

Late last month, a research report was published by Shai Avidan and Ariel Shamir with a detailed explanation of a method for content-aware image resizing that uses seam carving.
This week, several software developers have been able to use the information in the report to create open source implementations of the algorithm. One implementation, developed by GNOME contributor Nicolas Trangez, was created with Python. "This transformation is done in about 2 seconds (mainly because of some calculations in pure Python. For most calculations I use the Python Imaging Library and SciPy/NumPy, which are mainly C modules and much faster). As you can see the implementation still needs lots of love," writes Trangez in a blog entry. "The algorithm itself is surprisingly 'simple' and easy to understand, great job by the researchers!" The source code for his implementation is available in a Git repository.
Another implementation, which is provided as a GIMP plugin, was created by Carlo Baldassi. The GIMP plugin is currently available for download from the GIMP plugin registry web site.


หลายๆ คนติดใจกับข่าวเมื่อการย่อและขยายภาพไม่จำเป็นต้องคงอัตราส่วนเสมอไป และเรียกร้องให้ Adobe ซื้อฟีเจอร์นี้ไปใช้ แต่ที่ไหนได้ GIMP มาแรงแซงทางโค้ง พัฒนาฟีเจอร์นี้เสร็จไปเรียบร้อย ที่ไม่ธรรมดาคือมีคนทำถึง 2 ทีมเสียด้วย
ของทีมแรกพัฒนาด้วย Python และผู้เขียนบอกว่าอัลกอริทึมที่ทีมนักวิจัยเขียนอธิบายนั้นเข้าใจได้ง่ายมาก ส่วนทีมที่สองมาในรูปปลั๊กอินของ GIMP 2.2 ใช้ชื่อว่า Liquid Rescale มีคนทำเป็นแพกเกจของ Gutsy Gibbon และเวอร์ชันวินโดวส์ให้แล้ว ใครสนใจก็ลองกันได้
นี่เป็นตัวอย่างความเจ๋งของการพัฒนาแบบโอเพนซอร์ส ใครคิดอะไรเด็ดๆ ออกก็ลงมือทำได้เลย ไม่ต้องรอบริษัทเจ้าของซอฟต์แวร์ที่กว่าจะออกเวอร์ชันหน้าก็อีกนาน

No comments:

Analytics and Statistic

Blog Archive