Images are a fundamental construct in any project that involves graphics, image processing, and video and yet the variability in pixel data representations (color space, bit depth, channel ordering, planar/interleaved, alignment policy) makes it hard to write imaging-related code that is both generic and efficient. Generic Image Library (GIL) is a C++ generic library which allows for writing gener