public static enum FourierTemplateMatcher.Mode extends Enum<FourierTemplateMatcher.Mode>
Enum Constant and Description |
---|
CORRELATION
Compute the score at a point as the summed product between the image
and the template.
|
CORRELATION_COEFFICIENT
Compute the score at a point as the summed product between the mean-centered image patch
and the mean-centered template.
|
NORM_CORRELATION
Compute the normalised score at a point as the summed product between the image
and the template.
|
NORM_CORRELATION_COEFFICIENT
Compute the normalised score at a point as the summed product between the mean-centered image patch
and the mean-centered template.
|
NORM_SUM_SQUARED_DIFFERENCE
Compute the normalised score at a point as the sum-squared difference between the image
and the template.
|
SUM_SQUARED_DIFFERENCE
Compute the score at a point as the sum-squared difference between the image
and the template.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
processCorrelationMap(FImage img,
FImage template,
FImage corr)
Process the cross-correlation image to the contain the relevant output values for the
chosen mode.
|
abstract boolean |
scoresAscending()
Are the scores ascending (i.e.
|
static FourierTemplateMatcher.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FourierTemplateMatcher.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FourierTemplateMatcher.Mode SUM_SQUARED_DIFFERENCE
public static final FourierTemplateMatcher.Mode NORM_SUM_SQUARED_DIFFERENCE
public static final FourierTemplateMatcher.Mode CORRELATION
public static final FourierTemplateMatcher.Mode NORM_CORRELATION
public static final FourierTemplateMatcher.Mode CORRELATION_COEFFICIENT
public static final FourierTemplateMatcher.Mode NORM_CORRELATION_COEFFICIENT
public static FourierTemplateMatcher.Mode[] values()
for (FourierTemplateMatcher.Mode c : FourierTemplateMatcher.Mode.values()) System.out.println(c);
public static FourierTemplateMatcher.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean scoresAscending()
public abstract void processCorrelationMap(FImage img, FImage template, FImage corr)
img
- the imagetemplate
- the templatecorr
- the cross correlation map produced by FourierCorrelation
.