2010-10-01から1日間の記事一覧

ネガ処理

OpenCVがRGBの並び順をユーザーがコンパイル時に選択できないと知って、Boost.GILに乗り換えました。 #include <boost/gil/gil_all.hpp> #include <boost/gil/extension/io/png_io.hpp> using namespace boost::gil; rgb8_pixel_t nega(rgb8_pixel_t x) { return rgb8_pixel_t( 255 - at_c<0>(x), 255 - at_c<1>(x), 255</boost/gil/extension/io/png_io.hpp></boost/gil/gil_all.hpp>…