make_palette_view
Creates a read-only image_view that uses a palette as a dereferencing function. The original image view must be convertible to offsets into the palette.
For example:
rgb8_pixel_t palette[256]; palette[0] = rgb8_pixel_t(255, 255, 255); //white palette[1] = rgb8_pixel_t(255, 0, 0 ); //red palette[2] = rgb8_pixel_t(0, 255, 0 ); //green typedef result_of::make_palette_view<gray8_view_t, rgb8_pixel_t const*>::type palette_view_type; palette_view_type result = i3dea::make_palette_view(test, &palette[0]);