MeVisLabToolboxReference
|
Concatenate LUTs in row or layer direction. More...
#include <mlLUTFConcat.h>
Public Member Functions | |
LUTFConcat (void) | |
Constructor. | |
Input LUTs | |
virtual void | addInputLut (const LUTFunction *lutFunction) |
Add input LUT function. | |
virtual void | clearInputLuts (void) |
Clear list of input LUT functions. | |
virtual const LUTFunction * | getInputLut (int i) const |
Get i-th input LUT function. | |
LUT properties | |
virtual bool | isValid (void) const |
Return true if the LUT function is valid. | |
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. | |
LUT rendering | |
These methods are called by LUT users to obtain a rendering of the LUT function. | |
virtual bool | render (LUTDataBase *lutData) const |
Render LUT in (previously initialized) LUTData object. | |
virtual bool | renderRescaled (LUTDataBase *lutData, double minIndex, double maxIndex) const |
Render rescaled LUT in (previously initialized) LUTData object. | |
Protected Member Functions | |
ML_CLASS_HEADER (LUTFConcat) | |
LUT implementation | |
virtual bool | renderLUTNative (LUTDataBase *, LUTIteratorBase *) const |
Dummy implementation of inherited pure virtual method, not used. | |
virtual bool | renderLUT (LUTDataBase *lutData, double minIndex, double maxIndex, bool rescaled) const |
Perform LUT rendering by redirecting to input LUT functions, implemented for both native and rescaled rendering. | |
Protected Attributes | |
std::vector< const LUTFunction * > | _inLUTs |
Input LUTs. | |
CatMode | _catMode |
Direction of concatenation (row or layer) | |
Transform parameters | |
enum | CatMode { CAT_ROWS = 0, CAT_LAYERS, NUM_CAT_MODES } |
Direction of concatenation. More... | |
virtual void | setCatMode (CatMode catMode) |
Set direction of concatenation. | |
virtual CatMode | getCatMode (void) const |
Concatenate LUTs in row or layer direction.
Definition at line 30 of file mlLUTFConcat.h.
Direction of concatenation.
CAT_ROWS |
Concatenate in row direction. |
CAT_LAYERS |
Concatenate in layer direction. |
NUM_CAT_MODES |
Number of concatenation directions. |
Definition at line 57 of file mlLUTFConcat.h.
ml::LUTFConcat::LUTFConcat | ( | void | ) |
Constructor.
virtual void ml::LUTFConcat::addInputLut | ( | const LUTFunction * | lutFunction | ) | [virtual] |
Add input LUT function.
virtual void ml::LUTFConcat::clearInputLuts | ( | void | ) | [virtual] |
Clear list of input LUT functions.
virtual CatMode ml::LUTFConcat::getCatMode | ( | void | ) | const [inline, virtual] |
Definition at line 66 of file mlLUTFConcat.h.
virtual int ml::LUTFConcat::getDepth | ( | void | ) | const [virtual] |
Get native LUT depth (= number of layers, numbering starts at 0)
Reimplemented from ml::LUTFunction.
virtual int ml::LUTFConcat::getHeight | ( | void | ) | const [virtual] |
Get native LUT height (= number of rows, numbering starts at 0)
Reimplemented from ml::LUTFunction.
virtual const LUTFunction* ml::LUTFConcat::getInputLut | ( | int | i | ) | const [virtual] |
Get i-th input LUT function.
virtual int ml::LUTFConcat::getNativeMaxIndex | ( | void | ) | const [virtual] |
Get native maximum index.
Reimplemented from ml::LUTFunction.
virtual double ml::LUTFConcat::getNativeMaxValue | ( | void | ) | const [virtual] |
Get native maximum LUT value.
Reimplemented from ml::LUTFunction.
virtual int ml::LUTFConcat::getNativeMinIndex | ( | void | ) | const [virtual] |
Get native minimum index.
Reimplemented from ml::LUTFunction.
virtual double ml::LUTFConcat::getNativeMinValue | ( | void | ) | const [virtual] |
Get native minimum LUT value.
Reimplemented from ml::LUTFunction.
virtual bool ml::LUTFConcat::isValid | ( | void | ) | const [virtual] |
Return true if the LUT function is valid.
Reimplemented from ml::LUTFunction.
ml::LUTFConcat::ML_CLASS_HEADER | ( | LUTFConcat | ) | [protected] |
virtual bool ml::LUTFConcat::render | ( | LUTDataBase * | lutData | ) | const [virtual] |
Render LUT in (previously initialized) LUTData object.
Return true if successful.
Overloaded here to redirect rendering to input LUT functions
Reimplemented from ml::LUTFunction.
virtual bool ml::LUTFConcat::renderLUT | ( | LUTDataBase * | lutData, |
double | minIndex, | ||
double | maxIndex, | ||
bool | rescaled | ||
) | const [protected, virtual] |
Perform LUT rendering by redirecting to input LUT functions, implemented for both native and rescaled rendering.
virtual bool ml::LUTFConcat::renderLUTNative | ( | LUTDataBase * | , |
LUTIteratorBase * | |||
) | const [inline, protected, virtual] |
Dummy implementation of inherited pure virtual method, not used.
Implements ml::LUTFunction.
Definition at line 126 of file mlLUTFConcat.h.
virtual bool ml::LUTFConcat::renderRescaled | ( | LUTDataBase * | lutData, |
double | minIndex, | ||
double | maxIndex | ||
) | const [virtual] |
Render rescaled LUT in (previously initialized) LUTData object.
LUT is rendered for range minIndex .. maxIndex, but resampled to the index range specified in lutData. Return true if successful
Overloaded here to redirect rendering to input LUT functions
Reimplemented from ml::LUTFunction.
virtual void ml::LUTFConcat::setCatMode | ( | CatMode | catMode | ) | [virtual] |
Set direction of concatenation.
CatMode ml::LUTFConcat::_catMode [protected] |
Direction of concatenation (row or layer)
Definition at line 140 of file mlLUTFConcat.h.
std::vector<const LUTFunction*> ml::LUTFConcat::_inLUTs [protected] |
Input LUTs.
Definition at line 137 of file mlLUTFConcat.h.