ImFusion SDK 4.3
ThresholdTool Class Reference

#include <ImFusion/Seg/ThresholdTool.h>

Simple class to set values of a labelMap by doing thresholding on its corresponding image. More...

+ Inheritance diagram for ThresholdTool:

Detailed Description

Simple class to set values of a labelMap by doing thresholding on its corresponding image.

Public Member Functions

 ThresholdTool (DisplayWidgetMultiAdapter disp={})
 
 ~ThresholdTool ()
 On destruction, disable() is called automatically if necessary.
 
void enable ()
 Activates the preview overlay.
 
void disable ()
 De-activates the preview overlay.
 
void setMask (GlMask *mask)
 Explicitly sets a mask.
 
void setTargetLabelMap (const SharedImageSet *image, SharedImageSet *labelMap)
 Set the image and the labelMap on which the thresholding operation is applied Either both or none of the parameters must be set.
 
void setActiveLabel (uint8_t labelIndex)
 Set the label value that will be assigned by the thresholding operation 1 by default.
 
void setPreserveLabel (uint8_t labelIndex, bool preserve)
 Set locked labels, to ensure that the thesholding will not overwrite their current value.
 
void setRangeOriginal (double low, double high)
 Sets the range of the thresholding in original pixel value domain.
 
void setRangeStorage (double low, double high)
 Sets the range of the thresholding in storage pixel value domain.
 
void updatePreview ()
 Updates the preview overlay indicating which pixels will be affected this function is automatically called whenever any of the input is changed.
 
void apply (int frame=-1)
 Sets the value in the labelMap according to the thresholding parameters.
 
- Public Member Functions inherited from SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
 
SignalReceiveroperator= (SignalReceiver rhs)
 Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
 
virtual ~SignalReceiver ()
 Virtual destructor disconnects from all connected signals.
 

Additional Inherited Members

- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 

Member Function Documentation

◆ setMask()

void setMask ( GlMask * mask)

Explicitly sets a mask.

Masked pixels will not be affected by the thresholding. If no mask is set, but there is one attached to the image itself, the image mask will be used

◆ setTargetLabelMap()

void setTargetLabelMap ( const SharedImageSet * image,
SharedImageSet * labelMap )

Set the image and the labelMap on which the thresholding operation is applied Either both or none of the parameters must be set.

Parameters
imagethe image that is sampled for the thresholding operation
labelMapthe label map to which the value is assigned

◆ apply()

void apply ( int frame = -1)

Sets the value in the labelMap according to the thresholding parameters.

Parameters
frameWhich frame the thresholding should be applied to (focused frame by default)

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close