#include "Util/log.H"
#include <string>
Go to the source code of this file.
Functions | |
template<class T > | |
Image< T > | maxNormalize (const Image< T > &src, const T mi, const T ma, const MaxNormType normtyp=VCXNORM_DEFAULT, int nbiter=FANCYITER, const Image< float > *lrexcit=0) |
Generic implementation (select algorithm with normtyp). | |
template<class T > | |
Image< T > | maxNormalizeNone (const Image< T > &src, const T mi, const T ma) |
Specialized implementation (corresponds to VCXNORM_NONE). | |
template<class T > | |
Image< T > | maxNormalizeStd (const Image< T > &src, const T mi, const T ma) |
Specialized implementation (corresponds to VCXNORM_MAXNORM). | |
template<class T > | |
Image< T > | maxNormalizeFancyFast (const Image< T > &src, const T mi, const T ma, const int nbiter=FANCYITER) |
Specialized implementation (corresponds to VCXNORM_FANCYFAST). | |
template<class T > | |
Image< T > | maxNormalizeFancy (const Image< T > &src, const T mi, const T ma, const int nbiter=FANCYITER, const double weakness=1.0, const Image< float > *lrexcit=0) |
Specialized implementation (corresponds to VCXNORM_FANCY). | |
template<class T > | |
Image< T > | maxNormalizeFancyLandmark (const Image< T > &src, const T mi, const T ma, const int nbiter=FANCYITER) |
Specialized implementation (corresponds to VCXNORM_FANCY). | |
template<class T > | |
Image< T > | maxNormalizeLandmark (const Image< T > &src, const T mi, const T ma) |
Specialized implementation (corresponds to VCXNORM_LANDMARK). | |
template<class T > | |
int | findPeaks (const Image< T > &src, const T mi, const T ma, double &sum) |
to find number of peaks in the image (used in landmark detection) | |
template<class T > | |
float | goodness_map (const Image< T > &src) |
to find the goodness of a map (used in landmark detection) | |
template<class T > | |
Image< T > | maxNormalizeStdev (const Image< T > &src) |
Specialized implementation (corresponds to VCXNORM_STDEV). | |
template<class T > | |
Image< T > | maxNormalizeStdev0 (const Image< T > &src) |
Specialized implementation (corresponds to VCXNORM_STDEV0). | |
std::string | convertToString (const MaxNormType val) |
MaxNormType overload. | |
void | convertFromString (const std::string &str, MaxNormType &val) |
MaxNormType overload. | |
Variables | |
Additional parameters for fancynorm versions of the algorithm. | |
const int | FANCYITER = 5 |
default number of iterations | |
const double | FANCYESIG = 2 |
excitatory sigma as % of image size | |
const double | FANCYISIG = 25 |
inhibitory sigma as % of image size | |
const double | FANCYCOEX = 0.5 |
excitatory coefficient (strength) | |
const double | FANCYCOIN = 1.5 |
inhibitory coefficient (strength) | |
const double | FANCYINHI = 2.0 |
strength of global inhibition | |
const double | FANCYG = 2.1 |
for sigmoid normalization | |
const double | FANCYH = 2.0 |
for sigmoid normalization | |
const double | FANCYS = 1.0 |
for sigmoid normalization | |
const int | LRLEVEL = 2 |
for tuned long-range excitation: | |
Standard min/max bounds for maxNormalize(). | |
const float | MAXNORMMAX = 10.0f |
upper bound for maxNormalize() | |
const float | MAXNORMMIN = 0.0f |
lower bound for maxNormalize() | |
const float | MAXNORMLANDMARK = 255.0f |
upper bound for maxNormalizeFancyLandmark() | |
Types of normalization (normtyp) | |
| |
#define | NBMAXNORMTYPES 13 |
#define | VCXNORM_DEFAULT VCXNORM_FANCY |
enum | MaxNormType { VCXNORM_NONE = 0, VCXNORM_MAXNORM = 1, VCXNORM_FANCY = 2, VCXNORM_FANCYFAST = 3, VCXNORM_FANCYONE = 4, VCXNORM_FANCYLANDMARK = 5, VCXNORM_LANDMARK = 6, VCXNORM_FANCYWEAK = 7, VCXNORM_IGNORE = 8, VCXNORM_SURPRISE = 9, VCXNORM_FANCYVWEAK = 10, VCXNORM_STDEV = 11, VCXNORM_STDEV0 = 12 } |
const char * | maxNormTypeName (const MaxNormType m) |
Get a name in clear for a given type. |
Intrafeature competition with maxNormalize().
Definition in file fancynorm.H.
void convertFromString | ( | const std::string & | str, | |
MaxNormType & | val | |||
) |
MaxNormType overload.
Format is "name" as defined by maxNormTypeName() in MaxNormTypes.H
Definition at line 638 of file fancynorm.C.
References maxNormTypeName(), and NBMAXNORMTYPES.
std::string convertToString | ( | const MaxNormType | val | ) |
MaxNormType overload.
Format is "name" as defined by maxNormTypeName() in MaxNormTypes.H
Definition at line 632 of file fancynorm.C.
References maxNormTypeName().