MapCombineType.H File Reference

#include <string>
Include dependency graph for MapCombineType.H:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

Different methods of combining channel output maps

Definition in file MapCombineType.H.


Enumeration Type Documentation

Different methods for combining channel output maps.

Enumerator:
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.


Function Documentation

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().

Generated on Sun May 8 08:42:38 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3