Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::ImageIFT< D > Class Template Reference

#include <ImageIFT.hpp>

Inheritance diagram for Bial::ImageIFT< D >:
Inheritance graph
Collaboration diagram for Bial::ImageIFT< D >:
Collaboration graph

Public Member Functions

 ImageIFT (Image< D > &value, const Adjacency &adjacency, PathFunction< Image, D > *function, const Vector< bool > *seed=nullptr, Image< int > *label=nullptr, Image< int > *predecessor=nullptr, bool sequential_label=false, long double bucket_size=1.0, bool fifo_tie=true)
 Constructor of IFT object to run over images. More...
 
void Run ()
 Runs IFT algorithm over image. More...
 
void EnableDifferentialIFT (size_t elm)
 Enables differential IFT. Runs until target element is reached. More...
 
void DisableDifferentialIFT ()
 Disables differential IFT. Runs until all elements leave the queue. More...
 
- Public Member Functions inherited from Bial::DegeneratedIFT< Image, D >
 DegeneratedIFT (Image< D > &value_image, PathFunction< Image, D > *function, const Vector< bool > *seed=nullptr, Image< int > *label=nullptr, Image< int > *predecessor=nullptr, bool sequential_label=false, long double bucket_size=1.0, bool fifo_tie=true)
 Constructor. Depending on the provided maps, propagation function is different. More...
 
 ~DegeneratedIFT ()
 Destructor. Destroys the bucket queue. More...
 
void Run ()
 Runs degenerated IFT. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Bial::DegeneratedIFT< Image, D >
BucketQueueInitialize (Image< D > &value, PathFunction< Image, D > *function, const Vector< bool > *seed, Image< int > *label, Image< int > *predecessor, bool sequential_label, long double bucket_size, bool fifo_tie)
 Initialization of all IFT functions. More...
 
- Protected Attributes inherited from Bial::DegeneratedIFT< Image, D >
BucketQueuequeue
 Degenerated IFT attributes. More...
 
Image< D > & value
 
PathFunction< Image, D > * function
 
const Vector< bool > * seed
 
Image< int > * label
 
Image< int > * predecessor
 
bool sequential_label
 
long double bucket_size
 
bool fifo_tie
 
PathFunction< Image, D >::RemoveFn RemoveData
 
PathFunction< Image, D >::UpdateFn UpdateData
 

Detailed Description

template<class D>
class Bial::ImageIFT< D >

Definition at line 24 of file ImageIFT.hpp.

Constructor & Destructor Documentation

template<class D >
Bial::ImageIFT< D >::ImageIFT ( Image< D > &  value,
const Adjacency adjacency,
PathFunction< Image, D > *  function,
const Vector< bool > *  seed = nullptr,
Image< int > *  label = nullptr,
Image< int > *  predecessor = nullptr,
bool  sequential_label = false,
long double  bucket_size = 1.0,
bool  fifo_tie = true 
)

Constructor of IFT object to run over images.

Date
2012/Sep/19
Parameters
valueValue map used in path propagation. It contains the input and output values.
maskValid image domain. Pixels out of the domain (i.e. mask = 0), are not computed.
adjacencyadjacency relation defining neighborhood. Assumes central element being at position 0.
functionFunction used to initialize and propagate values.
seedA boolean Vector indicating the seeds.
label_imagelabel map.
predecessor_imagepredecessor map.
bucket_sizeSize of a bucket in the bucket queue.
fifo_tietrue for fifo tiebreak, and false for lifo tiebreak.
Returns
none.
Warning
Input image and adjacency must have compatible dimensions. Label, and predecessor maps are optional.

Member Function Documentation

template<class D >
void Bial::ImageIFT< D >::DisableDifferentialIFT ( )

Disables differential IFT. Runs until all elements leave the queue.

Date
2015/07/18
Parameters
none.
Returns
none.
Warning
none.
template<class D >
void Bial::ImageIFT< D >::EnableDifferentialIFT ( size_t  elm)

Enables differential IFT. Runs until target element is reached.

Date
2015/07/18
Parameters
elmTarget element.
Returns
none.
Warning
none.
template<class D >
void Bial::ImageIFT< D >::Run ( )

Runs IFT algorithm over image.

Date
2012/Sep/19
Parameters
none.
Returns
none.
Warning
none.

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