change dynamic range or datatype of the samples of the image
More...
#include <lti_dynamicRangeFilter.h>
|
LT_STATUS | initialize (LTIImageStage *srcImage, const LTIPixel *srcDRMin=NULL, const LTIPixel *srcDRMax=NULL, LTIDataType dstDataType=LTI_DATATYPE_INVALID) |
| initializer More...
|
|
LT_STATUS | initialize (LTIImageStage *srcImage, LTIDataType dstDataType) |
| initializer (for compatibly with LTIDataTypeTransformer) More...
|
|
LT_STATUS | initialize (LTIImageStage *srcImage, const LTIPixel *srcMin, const LTIPixel *srcMax, const LTIPixel &dstMin, const LTIPixel &dstMax) |
| initializer More...
|
|
virtual lt_int64 | getEncodingCost (const LTIScene &scene) const |
|
virtual lt_uint32 | getModifications (const LTIScene &scene) const |
|
const LTIPixel & | getSrcMin () const |
|
const LTIPixel & | getSrcMax () const |
|
LT_STATUS | setSrcMinMax (const LTIPixel &srcMin, const LTIPixel &srcMax) |
|
LT_STATUS | setDstMinMax (const LTIPixel &srcMin, const LTIPixel &srcMax) |
|
void | setPixelFillMethod (LTIPixelFillMethod method, double fuzzyThreshold) |
|
LT_STATUS | reinit (void) |
|
|
static LTIDynamicRangeFilter * | create (void) |
|
static LT_STATUS | push (LTIImageStage *&pipeline, const LTIPixel &pixelProps, bool applyDynamicRange) |
|
static LT_STATUS | transformBuffer (const LTIPixel &srcMin, const LTIPixel &srcMax, const LTISceneBuffer &srcBuffer, const LTIPixel &dstMin, const LTIPixel &dstMax, LTISceneBuffer &dstBuffer, lt_uint32 numCols, lt_uint32 numRows) |
|
static LT_STATUS | transformPixel (const LTIPixel &srcMin, const LTIPixel &srcMax, const LTIPixel &srcPixel, const LTIPixel &dstMin, const LTIPixel &dstMax, LTIPixel &dstPixel) |
|
Adjusts the sample values to fit the given dynamic range and datatype.
Definition at line 33 of file lti_dynamicRangeFilter.h.
LTIDynamicRangeFilter::LTIDynamicRangeFilter |
( |
void |
| ) |
|
|
protected |
virtual LTIDynamicRangeFilter::~LTIDynamicRangeFilter |
( |
void |
| ) |
|
|
protectedvirtual |
LT_STATUS LTIDynamicRangeFilter::decodeEnd |
( |
void |
| ) |
|
|
protected |
virtual lt_int64 LTIDynamicRangeFilter::getEncodingCost |
( |
const LTIScene & |
scene | ) |
const |
|
virtual |
virtual lt_uint32 LTIDynamicRangeFilter::getModifications |
( |
const LTIScene & |
scene | ) |
const |
|
virtual |
const LTIPixel& LTIDynamicRangeFilter::getSrcMax |
( |
| ) |
const |
|
inline |
const LTIPixel& LTIDynamicRangeFilter::getSrcMin |
( |
| ) |
const |
|
inline |
Creates an image stage with the sample data adjusted from the given dynamic range values to the full dynamic range of the given datatype. If not specified, the target datatype will be that of the source image. If not specified, the filter will get the dynamic range from the source image (i.e., it will use whatever is in the image metadata).
- Note
- the filter will stretch dynamic range on a per-band basis
- Parameters
-
srcImage | the base image |
srcDRMin | the minimum dynamic range value of the source data |
srcDRMax | the maximum dynamic range value of the source data |
dstDataType | the datatype of the new image stage |
This initializer will cause the filter to do a straight datatype conversion of the source image. Advertised dynamic range in the source image will be translated to the appropriate value for the new datatype.
- Parameters
-
srcImage | the base image |
dstDataType | the datatype of the new image stage |
Adjusts the sample data of the source image by scaling it from the given source and destination dynamic range pixels. Samples falling outside of the given source range will be clipped to the range.
- Note
- the filter will stretch dynamic range on a per-band basis
- Parameters
-
srcImage | the base image |
srcMin | minimum of the dynamic range present in the source |
srcMax | maximum of the dynamic range present in the source |
dstMin | minimum bound of desired output dynamic range |
dstMax | maximum bound of desired output dynamic range |
LT_STATUS LTIDynamicRangeFilter::reinit |
( |
void |
| ) |
|
void LTIDynamicRangeFilter::setPixelFillMethod |
( |
LTIPixelFillMethod |
method, |
|
|
double |
fuzzyThreshold |
|
) |
| |
The documentation for this class was generated from the following file: