refinery
RAW file processor
|
Scale an Image to fill its data-type. More...
#include <refinery/filters.h>
Public Member Functions | |
template<typename T > | |
void | filter (T &image) |
Multiplies image's colors according to its CameraData. |
Scale an Image to fill its data-type.
This is intended for use with RAW GrayImages. The Image's CameraData contains information on how much each color should be scaled. This filter reads that and multiplies each pixel according to what color its sensor is.
In other words, the pixel values that come from the camera, which are sometimes 12- or 14-bit, need to be scaled to 16-bit. The reason the values don't come pre-scaled is that each color needs a different multiplier.