#include <string>
Go to the source code of this file.
Enumerations | |
enum | MapCombineType { MAPCOMBINE_SUM = 0, MAPCOMBINE_MAX = 1 } |
Different methods for combining channel output maps. More... | |
Functions | |
Image< float > | mapCombine (const MapCombineType typ, const Image< float > &a, const Image< float > &b) |
Combine two maps according to the given combination strategy. | |
std::string | convertToString (const MapCombineType typ) |
MapCombineType -> string. | |
void | convertFromString (const std::string &str, MapCombineType &typ) |
string -> MapCombineType |
Different methods of combining channel output maps
Definition in file MapCombineType.H.
enum MapCombineType |
Different methods for combining channel output maps.
MAPCOMBINE_SUM |
c = a + b (pixel-wise sum) |
MAPCOMBINE_MAX |
c = takeMax(a, b) (pixel-wise max) |
Definition at line 46 of file MapCombineType.H.
void convertFromString | ( | const std::string & | str, | |
MapCombineType & | typ | |||
) |
string -> MapCombineType
Definition at line 89 of file MapCombineType.C.
References MAPCOMBINE_MAX, MAPCOMBINE_SUM, and toLowerCase().
std::string convertToString | ( | const MapCombineType | typ | ) |
MapCombineType -> string.
Definition at line 76 of file MapCombineType.C.
References MAPCOMBINE_MAX, and MAPCOMBINE_SUM.
Image<float> mapCombine | ( | const MapCombineType | typ, | |
const Image< float > & | a, | |||
const Image< float > & | b | |||
) |
Combine two maps according to the given combination strategy.
For convenience in writing map-combination loops, one of the images may be empty, in which case the result will just be the other image.
Definition at line 50 of file MapCombineType.C.
References Image< T >::getDims(), Image< T >::getHeight(), Image< T >::getWidth(), Image< T >::initialized(), MAPCOMBINE_MAX, MAPCOMBINE_SUM, and takeMax().
Referenced by ComplexChannel::combineOutputs().