原帖http://ihome.ust.hk/~fuhb/cgi-bin/index.php?entry=entry061114-141001
如果你沒有一個用的稱手的映像庫,你可能會在CImg,Devil,FreeImage等映像庫之間徘徊,不知道哪個庫更加適合自己。最近由Adobe開發的Generic Image Library (簡稱GIL)剛剛通過boost的認證,被boost接受成為其一部分。這個對於經常使用stl的編程人員來說無疑是一個好訊息。下面是GIL的設計目標:
* Generality: Abstracts image representations from algorithms on images. It allows for writing code once and have it work for any image type.
* Performance: Speed has been instrumental to the design of the library. The generic algorithms provided in the library are comparable in speed to hand-coding the algorithm for a specific image type.
* Flexibility: Compile-type parameter resolution results in faster code, but severely limits code flexibility. The library allows for any image parameter to be specified at run time (for a minor performance cost comparable to a virtual call overhead).
* Extensibility: GIL is concept-based and allows virtually every component - channels, color spaces, pixels, pixel iterators, locators, views, images and algorithms - to be replaced.
* Compatibility: The library is designed as an STL and Boost complement. Generic STL algorithms can be used for pixel manipulation, and they are especially optimized. The library works natively on existing raw pixel data.
在Adobe Open Source的官方網站有對GIL的詳細介紹(http://opensource.adobe.com/gil),包括Source code,Tutorial,Design Guide,還有一個55的視頻介紹。