Boost logo

Boost :

From: Lubomir Bourdev (lbourdev_at_[hidden])
Date: 2006-12-10 14:57:00

One more thing. If you read the image just so you can color convert it
and save it as PNG, it is better to color convert upon read.

That way you avoid dealing with runtime images altogether. Your code
will be slightly faster, will compile faster, will have a smaller
footprint (both executable and runtime memory) and will handle
potentially more image formats:

gray8_image_t gray8_img;
jpeg_read_and_convert_image("test.jpg", gray8_img);
png_write_view("test_out.png", const_view(gray8_img));


Boost list run by bdawes at, gregod at, cpdaniel at, john at