Darwin
1.10(beta)
|
and where 0.0 < < 0.5 More...
Public Member Functions | |
drwnRobustPottsCRFInference (double eta=0.25, bool bWeightBySize=true) | |
![]() | |
drwnPixelSegCRFInference () | |
default constructor | |
virtual | ~drwnPixelSegCRFInference () |
destructor | |
void | alphaExpansion (drwnSegImageInstance *instance, double contrastStrength=0.0, double higherOrderStrength=0.0, double longRangeStrength=0.0) const |
Alpha-expansion inference given instance unary terms, pairwise strength and higher-order strength (modifies instance ). When constructing graphs the S set (nomially 1) takes value and the T set (nominally 0) takes each variable's previous value. | |
double | energy (const drwnSegImageInstance *instance, double contrastStrength=0.0, double higherOrderStrength=0.0, double longRangeStrength=0.0) const |
Return the energy of a given instance labeling. | |
Public Attributes | |
double | _eta |
robustness parameter | |
bool | _bWeightBySize |
weight potential by superpixel/clique size | |
Protected Member Functions | |
void | addAuxiliaryVariables (drwnMaxFlow *g, const drwnSegImageInstance *instance) const |
adds node to the graph for any auxiliary variables (e.g., as required for higher-order terms) | |
double | addHigherOrderTerms (drwnMaxFlow *g, double higherOrderStrength, const drwnSegImageInstance *instance, int alpha, int varOffset=0) const |
add higher-order potentials to max-flow graph for a given alpha-expansion move and return constant energy component | |
double | computeHigherOrderEnergy (const drwnSegImageInstance *instance, double higherOrderStrength) const |
compute energy contribution from higher-order potentials | |
![]() | |
double | addUnaryTerms (drwnMaxFlow *g, const drwnSegImageInstance *instance, int alpha, int varOffset=0) const |
add unary potentials to max-flow graph for a given alpha-expansion move and return constant energy component | |
double | addPairwiseContrastTerms (drwnMaxFlow *g, double contrastStrength, const drwnSegImageInstance *instance, int alpha, int varOffset=0) const |
add pairwise contrast potentials to max-flow graph for a given alpha-expansion move and return constant energy component | |
double | addLongRangePairwiseTerms (drwnMaxFlow *g, double longRangeStrength, const drwnSegImageInstance *instance, int alpha, int varOffset=0) const |
add long-range pairwise potentials to max-flow graph for a given alpha-expansion move and return constant energy component | |
double | computeUnaryEnergy (const drwnSegImageInstance *instance) const |
compute energy contribution from unary potentials | |
double | computePairwiseContrastEnergy (const drwnSegImageInstance *instance, double contrastStrength) const |
compute energy contribution from pairwise contrast potentials | |
double | computeLongRangePairwiseEnergy (const drwnSegImageInstance *instance, double longRangeStrength) const |
compute energy contribution from long-range pairwise potentials | |
and where 0.0 < < 0.5
Uses superpixels within the image instance to define cliques.