|
refinery
RAW file processor
|
Gamma-correct an Image with a GammaCurve. More...
#include <refinery/filters.h>
Public Member Functions | |
| template<typename ImageType , typename GammaCurveType > | |
| void | filter (ImageType &image, const GammaCurveType &gammaCurve) |
Gamma-correct image using gammaCurve. | |
Gamma-correct an Image with a GammaCurve.
A suitable GammaCurve can be calculated automatically from a Histogram. For instance:
typedef Image<RGBPixel<unsigned short> > ImageType; ImageType image; // ... fill in image ... Histogram<ImageType, 3> histogram(image); GammaCurve<ImageType::ValueType> gammaCurve(histogram); GammaFilter gammaFilter; gammaFilter.filter(image, gammaCurve);
| void refinery::GammaFilter::filter | ( | ImageType & | image, |
| const GammaCurveType & | gammaCurve | ||
| ) |
Gamma-correct image using gammaCurve.
This ought to be a 1-param template but Swig can't resolve it.
| [in,out] | image | Image to gamma-correct. |
| [in] | gammaCurve | Gamma curve to apply. |
| ImageType | Image type (can be inferred). |
| GammaCurveType | Gamma-curve type (can be inferred). |
1.7.3