![]() |
aimsdata 6.0.0
Neuroimaging data handling
|
The template class to merge data and byte label data. More...
#include <aims/utility/merge.h>

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. | |
| T | _value |
| Merging value. | |
| U | _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. | |
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
| AimsMerge< T, U >::AimsMerge | ( | merge_t | type, |
| T | value = 0, | ||
| U | label = 0 ) |
|
inline |
Return the result of the merge of a data and a byte label data.
Definition at line 106 of file merge.h.
References _label, _type, _value, AIMS_MERGE_ALL_TO_MAXP1, AIMS_MERGE_ALL_TO_ONE, AIMS_MERGE_ONE_TO_MAXP1, AIMS_MERGE_ONE_TO_ONE, AIMS_MERGE_SAME_VALUES, carto::VolumeRef< typename T >::begin(), carto::VolumeRef< typename T >::deepcopy(), carto::VolumeRef< typename T >::end(), and carto::VolumeRef< typename T >::max().
|
protected |
Label to consider.
Definition at line 91 of file merge.h.
Referenced by AimsMerge(), and operator()().
|
protected |