NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::ConnectedThresholdImageFilter Class Reference

Segmenting using region growing. More...

#include <cxConnectedThresholdImageFilter.h>

Inheritance diagram for cx::ConnectedThresholdImageFilter:
cx::ThreadedTimedAlgorithm< vtkImageDataPtr > cx::TimedBaseAlgorithm

Public Member Functions

 ConnectedThresholdImageFilter (VisServicesPtr services)
 
virtual ~ConnectedThresholdImageFilter ()
 
void setInput (ImagePtr image, QString outputBasePath, float lowerThreshold, float upperThreshold, int replaceValue, itkImageType::IndexType seed)
 
virtual void execute ()
 
ImagePtr getOutput ()
 
- Public Member Functions inherited from cx::ThreadedTimedAlgorithm< vtkImageDataPtr >
 ThreadedTimedAlgorithm (QString product, int secondsBetweenAnnounce)
 
virtual ~ThreadedTimedAlgorithm ()
 
virtual bool isFinished () const
 
virtual bool isRunning () const
 
- Public Member Functions inherited from cx::TimedBaseAlgorithm
 TimedBaseAlgorithm (QString product, int secondsBetweenAnnounce)
 
virtual ~TimedBaseAlgorithm ()
 
virtual QString getProduct () const
 
virtual bool isFinished () const =0
 
virtual bool isRunning () const =0
 

Additional Inherited Members

- Signals inherited from cx::TimedBaseAlgorithm
void aboutToStart ()
 emitted at start of execute. Use to perform preprocessing More...
 
void started (int maxSteps)
 emitted at start of run. More...
 
void finished ()
 should be emitted when at the end of postProcessingSlot More...
 
void productChanged ()
 emitted whenever product string has changed More...
 
- Protected Slots inherited from cx::TimedBaseAlgorithm
- Protected Member Functions inherited from cx::ThreadedTimedAlgorithm< vtkImageDataPtr >
virtual void postProcessingSlot ()=0
 This happens when the thread (calculate) is finished, here non-thread safe functions can be called. More...
 
void generate ()
 
vtkImageDataPtr getResult ()
 
cxResource_EXPORT void getResult ()
 
cxResource_EXPORT void getResult ()
 
- Protected Member Functions inherited from cx::TimedBaseAlgorithm
void startTiming ()
 
void stopTiming ()
 
QString getSecondsPassedAsString () const
 
- Protected Attributes inherited from cx::TimedBaseAlgorithm
bool mUseDefaultMessages
 

Detailed Description

Segmenting using region growing.

Warning
Class used for course, not tested.
Date
Apr 26, 2011
Author
Janne Beate Bakeng, SINTEF

Definition at line 39 of file cxConnectedThresholdImageFilter.h.

Constructor & Destructor Documentation

◆ ConnectedThresholdImageFilter()

cx::ConnectedThresholdImageFilter::ConnectedThresholdImageFilter ( VisServicesPtr  services)

Definition at line 27 of file cxConnectedThresholdImageFilter.cpp.

◆ ~ConnectedThresholdImageFilter()

cx::ConnectedThresholdImageFilter::~ConnectedThresholdImageFilter ( )
virtual

Definition at line 33 of file cxConnectedThresholdImageFilter.cpp.

Member Function Documentation

◆ execute()

virtual void cx::ConnectedThresholdImageFilter::execute ( )
inlinevirtual

Execute the algorithm. Parts of the execution can be in another thread, thus the call usually returns after preprocessing is complete. The exec starts by emitting aboutToStart(), which can be used by callers to set input arguments.

Reimplemented from cx::ThreadedTimedAlgorithm< vtkImageDataPtr >.

Definition at line 48 of file cxConnectedThresholdImageFilter.h.

◆ getOutput()

ImagePtr cx::ConnectedThresholdImageFilter::getOutput ( )

Definition at line 50 of file cxConnectedThresholdImageFilter.cpp.

◆ setInput()

void cx::ConnectedThresholdImageFilter::setInput ( ImagePtr  image,
QString  outputBasePath,
float  lowerThreshold,
float  upperThreshold,
int  replaceValue,
itkImageType::IndexType  seed 
)

Definition at line 37 of file cxConnectedThresholdImageFilter.cpp.


The documentation for this class was generated from the following files: