#include <mlLUTFRescale.h>

Public Member Functions | |
| LUTFRescale (void) | |
| Constructor. | |
| virtual void | setInputLUT (const LUTFunction *inLUT) |
| Set input LUT, set relative flag to true if input LUT is relative. | |
Transform parameters | |
| virtual void | setRelative (bool relative) |
| Set/reset relative flag, can only be set if input LUT is absolute. | |
| virtual bool | getAutoSourceRange (void) const |
| Get auto source index range flag. | |
| virtual void | setAutoSourceRange (bool autoSourceRange) |
| Set auto source index range flag. | |
| virtual double | getSourceMin (void) const |
| Get minimum source index. | |
| virtual double | getSourceMax (void) const |
| Get maximum source index. | |
| virtual void | setSourceRange (double sourceMin, double sourceMax) |
| Set source index range. | |
| virtual double | getTargetMin (void) const |
| Get minimum target index. | |
| virtual double | getTargetMax (void) const |
| Get maximum target index. | |
| virtual void | setTargetRange (double targetMin, double targetMax) |
| Set target index range. | |
LUT properties | |
| virtual bool | isValid (void) const |
| Return true if the LUT function is valid. | |
| virtual LUTVisualType | getVisualType (void) const |
| Get LUT visual type. | |
| virtual int | getNativeMinIndex (void) const |
| Get native minimum index. | |
| virtual int | getNativeMaxIndex (void) const |
| Get native maximum index. | |
| virtual int | getHeight (void) const |
| Get native LUT height (= number of rows, numbering starts at 0). | |
| virtual int | getDepth (void) const |
| Get native LUT depth (= number of layers, numbering starts at 0). | |
| virtual double | getNativeMinValue (void) const |
| Get native minimum LUT value. | |
| virtual double | getNativeMaxValue (void) const |
| Get native maximum LUT value. | |
Protected Member Functions | |
| ML_CLASS_HEADER (LUTFRescale) | |
Index rescale transformations | |
| virtual double | transformForward (double index) const |
| Apply rescaling to index. | |
| virtual double | transformInverse (double index) const |
| Apply inverse rescaling to index. | |
LUT implementation | |
| virtual bool | renderLUTNative (LUTDataBase *lutData, LUTIteratorBase *lutIterator) const |
| Render the lookup table into lutData using lutIterator to access and increment the LUT pointers. | |
| virtual bool | renderLUTRescaled (LUTDataBase *lutData, LUTIteratorBase *lutIterator, double minIndex, double maxIndex) const |
| Render rescaled LUT into lutData using lutIterator to access and increment the LUT pointers. | |
Protected Attributes | |
| const LUTFunction * | _inLUT |
| Input LUT. | |
| bool | _autoSourceRange |
| Source index range is determined from input LUT. | |
| double | _sourceMin |
| Source index range. | |
| double | _sourceMax |
| double | _targetMin |
| Target index range. | |
| double | _targetMax |
Definition at line 32 of file mlLUTFRescale.h.
| ml::LUTFRescale::LUTFRescale | ( | void | ) |
Constructor.
| virtual bool ml::LUTFRescale::getAutoSourceRange | ( | void | ) | const [inline, virtual] |
| virtual int ml::LUTFRescale::getDepth | ( | void | ) | const [virtual] |
Get native LUT depth (= number of layers, numbering starts at 0).
Reimplemented from ml::LUTFunction.
| virtual int ml::LUTFRescale::getHeight | ( | void | ) | const [virtual] |
Get native LUT height (= number of rows, numbering starts at 0).
Reimplemented from ml::LUTFunction.
| virtual int ml::LUTFRescale::getNativeMaxIndex | ( | void | ) | const [virtual] |
| virtual double ml::LUTFRescale::getNativeMaxValue | ( | void | ) | const [virtual] |
| virtual int ml::LUTFRescale::getNativeMinIndex | ( | void | ) | const [virtual] |
| virtual double ml::LUTFRescale::getNativeMinValue | ( | void | ) | const [virtual] |
| virtual double ml::LUTFRescale::getSourceMax | ( | void | ) | const [virtual] |
Get maximum source index.
| virtual double ml::LUTFRescale::getSourceMin | ( | void | ) | const [virtual] |
Get minimum source index.
| virtual double ml::LUTFRescale::getTargetMax | ( | void | ) | const [inline, virtual] |
| virtual double ml::LUTFRescale::getTargetMin | ( | void | ) | const [inline, virtual] |
| virtual LUTVisualType ml::LUTFRescale::getVisualType | ( | void | ) | const [virtual] |
| virtual bool ml::LUTFRescale::isValid | ( | void | ) | const [virtual] |
| ml::LUTFRescale::ML_CLASS_HEADER | ( | LUTFRescale | ) | [protected] |
| virtual bool ml::LUTFRescale::renderLUTNative | ( | LUTDataBase * | lutData, | |
| LUTIteratorBase * | lutIterator | |||
| ) | const [protected, virtual] |
Render the lookup table into lutData using lutIterator to access and increment the LUT pointers.
Both lutData and lutIterator should be type-cast to a derived, type specific class pointer, according to lutData->getDataType(). Return true if successful.
Implements ml::LUTFunction.
| virtual bool ml::LUTFRescale::renderLUTRescaled | ( | LUTDataBase * | lutData, | |
| LUTIteratorBase * | lutIterator, | |||
| double | minIndex, | |||
| double | maxIndex | |||
| ) | const [protected, virtual] |
Render rescaled LUT into lutData using lutIterator to access and increment the LUT pointers.
Both lutData and lutIterator should be type-cast to a derived, type specific class pointer, according to lutData->getDataType(). The LUT is rendered for range minIndex .. maxIndex, but resampled to the index range specified in lutData. Return true if successful.
Reimplemented from ml::LUTFunction.
| virtual void ml::LUTFRescale::setAutoSourceRange | ( | bool | autoSourceRange | ) | [inline, virtual] |
Set auto source index range flag.
Definition at line 55 of file mlLUTFRescale.h.
References ml::LUTFunction::changed().
| virtual void ml::LUTFRescale::setInputLUT | ( | const LUTFunction * | inLUT | ) | [virtual] |
Set input LUT, set relative flag to true if input LUT is relative.
| virtual void ml::LUTFRescale::setRelative | ( | bool | relative | ) | [virtual] |
Set/reset relative flag, can only be set if input LUT is absolute.
A relative LUT can not be converted to an absolute LUT.
Reimplemented from ml::LUTFunction.
| virtual void ml::LUTFRescale::setSourceRange | ( | double | sourceMin, | |
| double | sourceMax | |||
| ) | [virtual] |
Set source index range.
| virtual void ml::LUTFRescale::setTargetRange | ( | double | targetMin, | |
| double | targetMax | |||
| ) | [virtual] |
Set target index range.
| virtual double ml::LUTFRescale::transformForward | ( | double | index | ) | const [protected, virtual] |
Apply rescaling to index.
| virtual double ml::LUTFRescale::transformInverse | ( | double | index | ) | const [protected, virtual] |
Apply inverse rescaling to index.
bool ml::LUTFRescale::_autoSourceRange [protected] |
const LUTFunction* ml::LUTFRescale::_inLUT [protected] |
double ml::LUTFRescale::_sourceMax [protected] |
Definition at line 149 of file mlLUTFRescale.h.
double ml::LUTFRescale::_sourceMin [protected] |
double ml::LUTFRescale::_targetMax [protected] |
Definition at line 152 of file mlLUTFRescale.h.
double ml::LUTFRescale::_targetMin [protected] |
1.5.8