A.I.M.S


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. More...
 
virtual ~AimsMerge ()
 Destructor does nothing. More...
 
Methods
AimsData< T > operator() (const AimsData< T > &data, const AimsData< U > &mask)
 Return the result of the merge of a data and a byte label data. More...
 

Protected Attributes

Data
merge_t _type
 Merging type. More...
 
_value
 Merging value. More...
 
_label
 Label to consider. More...
 

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

template<class T , class U >
AimsMerge< T, U >::AimsMerge ( merge_t  type,
value = 0,
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 98 of file merge.h.

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

template<class T , class U >
AimsData< T > AimsMerge< T, U >::operator() ( const AimsData< T > &  data,
const AimsData< U > &  mask 
)
inline

Member Data Documentation

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

Label to consider.

Definition at line 92 of file merge.h.

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

Merging type.

Definition at line 88 of file merge.h.

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

Merging value.

Definition at line 90 of file merge.h.


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