public abstract class BaseTemplateIntensity<T extends boofcv.struct.image.ImageBase> extends java.lang.Object implements TemplateMatchingIntensity<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
image |
protected T |
mask |
protected T |
template |
| Constructor and Description |
|---|
BaseTemplateIntensity() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract float |
evaluate(int tl_x,
int tl_y)
Evaluate the template at the specified location.
|
protected abstract float |
evaluateMask(int tl_x,
int tl_y)
Evaluate the masked template at the specified location.
|
int |
getBorderX0()
Thickness of border along the image left side (lower extent)
|
int |
getBorderX1()
Thickness of border along the image right side (upper extent)
|
int |
getBorderY0()
Thickness of border along the image top (lower extent)
|
int |
getBorderY1()
Thickness of border along the image bottom (upper extent)
|
boofcv.struct.image.GrayF32 |
getIntensity()
Contains results of template matching.
|
void |
process(T image,
T template)
Matches the template to the image and computes an intensity image.
|
void |
process(T image,
T template,
T mask)
Matches the template with a mask to the image and computes an intensity image.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisBorderProcessedprotected T extends boofcv.struct.image.ImageBase image
protected T extends boofcv.struct.image.ImageBase template
protected T extends boofcv.struct.image.ImageBase mask
public void process(T image, T template)
TemplateMatchingIntensityprocess in interface TemplateMatchingIntensity<T extends boofcv.struct.image.ImageBase>image - Input image. Not modified.template - Template image. Must be equal to or smaller than the input image. Not modified.public void process(T image, T template, T mask)
TemplateMatchingIntensityprocess in interface TemplateMatchingIntensity<T extends boofcv.struct.image.ImageBase>image - Input image. Not modified.template - Template image. Must be equal to or smaller than the input image. Not modified.mask - Mask that identifies how translucent pixels. 0 = 100% transparent and all values above
increase its importance. Typical values are 0 to 255 for integer images and 0.0 to 1.0 for
floating point.protected abstract float evaluate(int tl_x,
int tl_y)
tl_x - Template's top left corner x-coordinatetl_y - Template's top left corner y-coordinateprotected abstract float evaluateMask(int tl_x,
int tl_y)
tl_x - Template's top left corner x-coordinatetl_y - Template's top left corner y-coordinatepublic boofcv.struct.image.GrayF32 getIntensity()
TemplateMatchingIntensityNonMaxSuppression.
See comment about processing the image border.getIntensity in interface TemplateMatchingIntensity<T extends boofcv.struct.image.ImageBase>public int getBorderX0()
TemplateMatchingIntensitygetBorderX0 in interface TemplateMatchingIntensity<T extends boofcv.struct.image.ImageBase>public int getBorderY0()
TemplateMatchingIntensitygetBorderY0 in interface TemplateMatchingIntensity<T extends boofcv.struct.image.ImageBase>public int getBorderX1()
TemplateMatchingIntensitygetBorderX1 in interface TemplateMatchingIntensity<T extends boofcv.struct.image.ImageBase>public int getBorderY1()
TemplateMatchingIntensitygetBorderY1 in interface TemplateMatchingIntensity<T extends boofcv.struct.image.ImageBase>