refinery
RAW file processor
Public Member Functions

refinery::ScaleColorsFilter Class Reference

Scale an Image to fill its data-type. More...

#include <refinery/filters.h>

List of all members.

Public Member Functions

template<typename T >
void filter (T &image)
 Multiplies image's colors according to its CameraData.

Detailed Description

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.

Examples:

util/raw2ppm.cc.

Definition at line 19 of file filters.h.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations Enumerator