LUT transform to rescale a LUT's index range and to convert an absolute to a relative LUT.
More...
|
| LUTFRescale (void) |
| Constructor. More...
|
|
virtual void | setInputLUT (const LUTFunction *inLUT) |
| Set input LUT, set relative flag to true if input LUT is relative. More...
|
|
|
void | setRelative (bool relative) override |
| Set/reset relative flag, can only be set if input LUT is absolute. More...
|
|
virtual bool | getAutoSourceRange (void) const |
| Get auto source index range flag. More...
|
|
virtual void | setAutoSourceRange (bool autoSourceRange) |
| Set auto source index range flag. More...
|
|
virtual double | getSourceMin (void) const |
| Get minimum source index. More...
|
|
virtual double | getSourceMax (void) const |
| Get maximum source index. More...
|
|
virtual void | setSourceRange (double sourceMin, double sourceMax) |
| Set source index range. More...
|
|
virtual double | getTargetMin (void) const |
| Get minimum target index. More...
|
|
virtual double | getTargetMax (void) const |
| Get maximum target index. More...
|
|
virtual void | setTargetRange (double targetMin, double targetMax) |
| Set target index range. More...
|
|
|
bool | isValid (void) const override |
| Return true if the LUT function is valid. More...
|
|
LUTVisualType | getVisualType (void) const override |
| Get LUT visual type. More...
|
|
double | getNativeMinIndex (void) const override |
| Get native minimum index. More...
|
|
double | getNativeMaxIndex (void) const override |
| Get native maximum index. More...
|
|
int | getHeight (void) const override |
| Get native LUT height (= number of rows, numbering starts at 0) More...
|
|
int | getDepth (void) const override |
| Get native LUT depth (= number of layers, numbering starts at 0) More...
|
|
double | getNativeMinValue (void) const override |
| Get native minimum LUT value. More...
|
|
double | getNativeMaxValue (void) const override |
| Get native maximum LUT value. More...
|
|
| LUTFunction (LUTVisualType vt, bool relative) |
| Constructor. More...
|
|
void | changed (void) |
| Assign a new LUT ID. More...
|
|
void | overwriteUniqueId (unsigned int newId) |
| Overwrites the unique id. NOTE: use this only if you really know what you are doing! More...
|
|
virtual bool | isRelative (void) const |
| Is LUT relative? More...
|
|
virtual LUTDimensionality | getDimensionality (void) const |
| Get dimensionality (1, 2, or 3), usually depending on height and depth. More...
|
|
unsigned int | getId (void) const |
| Get current LUT ID. More...
|
|
virtual bool | render (LUTDataBase *lutData) const |
| Render LUT in (previously initialized) LUTData object. More...
|
|
virtual bool | renderRescaled (LUTDataBase *lutData, double minIndex, double maxIndex) const |
| Render rescaled LUT in (previously initialized) LUTData object. More...
|
|
| Base () |
| Constructor. More...
|
|
virtual | ~Base () |
| Destructor. More...
|
|
virtual Base * | deepCopy () const |
| Set addStateToTree version number that can be accessed via getAddStateVersion() More...
|
|
bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
| Check if this object's type is equal to or derived from one of the types given in the argument. More...
|
|
virtual bool | isRefCountedBase () const |
| Returns if the instance is derived from RefCountedBase. More...
|
|
virtual std::string | detailString () const |
| Return a string describing this object. More...
|
|
virtual bool | implementsPersistence (PersistenceInterface) const |
| Override this method to declare which persistence interfaces are implemented by your derived class. More...
|
|
virtual std::string | persistentState () const |
| Returns a string describing the object's internal state. More...
|
|
virtual void | setPersistentState (const std::string &state) |
| Restores the object's internal state from a string that had been previously generated using persistentState() . More...
|
|
virtual void | addStateToTree (TreeNode *) const |
| Attaches the object state as children of the given parent node. More...
|
|
virtual void | readStateFromTree (TreeNode *) |
| Reads the object state from the children of the given parent node. More...
|
|
virtual void | writeTo (AbstractPersistenceOutputStream *) const |
| Write the objects state to the data stream object. More...
|
|
virtual void | readFrom (AbstractPersistenceInputStream *, int) |
| Read the objects state from the data stream object. More...
|
|
|
| ML_CLASS_HEADER (LUTFRescale) |
|
|
virtual double | transformForward (double index) const |
| Apply rescaling to index. More...
|
|
virtual double | transformInverse (double index) const |
| Apply inverse rescaling to index. More...
|
|
|
bool | renderLUTNative (LUTDataBase *lutData, LUTIteratorBase *lutIterator) const override |
| Render the lookup table into lutData using lutIterator to access and increment the LUT pointers. More...
|
|
bool | renderLUTRescaled (LUTDataBase *lutData, LUTIteratorBase *lutIterator, double minIndex, double maxIndex) const override |
| Render rescaled LUT into lutData using lutIterator to access and increment the LUT pointers. More...
|
|
template<typename T > |
bool | renderT (LUTData< T > *lutData, bool rescaled, double minIndex, double maxIndex) const |
| Perform type-specific, native or rescaled (rescaled = true, rescale to range minIndex ... More...
|
|
template<typename T > |
bool | interpolateLUT (LUTData< T > *lutData, LUTIterator< T > *lutIterator, double minIndex, double maxIndex) const |
| Perform type-specific rescaled LUT rendering by. More...
|
|
| ML_ABSTRACT_CLASS_HEADER (LUTFunction) |
|
virtual LUTVisualType | getRenderType (LUTDataBase *) const |
| Get visual type used for rendering. More...
|
|
virtual char * | getPersistentState () const |
| Returns a C string describing the object's internal state. More...
|
|
virtual void | setPersistentState (const char *) |
| Restores the object's internal state from a string that had been previously generated using getPersistentState() . More...
|
|
virtual void | clearPersistentState (char *) const |
| Disposes a string previously allocated by getPersistentState() . More...
|
|
LUT transform to rescale a LUT's index range and to convert an absolute to a relative LUT.
Definition at line 30 of file mlLUTFRescale.h.