aimsdata 6.0.0
Neuroimaging data handling
AimsMerge< T, U > Class Template Reference

The template class to merge data and byte label data. More...

#include <aims/utility/merge.h>

Collaboration diagram for AimsMerge< T, U >:

Public Member Functions

Constructor and destructor
 AimsMerge (merge_t type, T value=0, U label=0)
 The programmer must provide a type of merging.
 
virtual ~AimsMerge ()
 Destructor does nothing.
 

Methods

merge_t _type
 Merging type.
 
_value
 Merging value.
 
_label
 Label to consider.
 
carto::VolumeRef< T > operator() (const carto::rc_ptr< carto::Volume< T > > &data, const carto::rc_ptr< carto::Volume< U > > &mask)
 Return the result of the merge of a data and a byte label data.
 

Detailed Description

template<class T, class U>
class AimsMerge< T, U >

The template class to merge data and byte label data.

There are 5 different types of merging :\ \- AIMS_MERGE_SAME_VALUES \- AIMS_MERGE_ONE_TO_ONE \- AIMS_MERGE_ALL_TO_ONE \- AIMS_MERGE_ONE_TO_MAXP1 \- AIMS_MERGE_ALL_TO_MAXP1

Definition at line 62 of file merge.h.

Constructor & Destructor Documentation

◆ AimsMerge()

template<class T, class U>
AimsMerge< T, U >::AimsMerge ( merge_t type,
T value = 0,
U label = 0 )

The programmer must provide a type of merging.

Parameters
typetype of merging (AIMS_MERGE_SAME_VALUES,...)
valuevalue that will replace points verifying the label
labellabel to merge

Definition at line 96 of file merge.h.

References _label, _type, and _value.

◆ ~AimsMerge()

template<class T, class U>
virtual AimsMerge< T, U >::~AimsMerge ( )
inlinevirtual

Destructor does nothing.

Definition at line 74 of file merge.h.

Member Function Documentation

◆ operator()()

template<class T, class U>
carto::VolumeRef< T > AimsMerge< T, U >::operator() ( const carto::rc_ptr< carto::Volume< T > > & data,
const carto::rc_ptr< carto::Volume< U > > & mask )
inline

Member Data Documentation

◆ _label

template<class T, class U>
U AimsMerge< T, U >::_label
protected

Label to consider.

Definition at line 91 of file merge.h.

Referenced by AimsMerge(), and operator()().

◆ _type

template<class T, class U>
merge_t AimsMerge< T, U >::_type
protected

Merging type.

Definition at line 87 of file merge.h.

Referenced by AimsMerge(), and operator()().

◆ _value

template<class T, class U>
T AimsMerge< T, U >::_value
protected

Merging value.

Definition at line 89 of file merge.h.

Referenced by AimsMerge(), and operator()().


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