boofcv.alg.feature.detect.template
Class BaseTemplateIntensity<T extends ImageBase>
- java.lang.Object
-
- boofcv.alg.feature.detect.template.BaseTemplateIntensity<T>
-
- All Implemented Interfaces:
- TemplateMatchingIntensity<T>
- Direct Known Subclasses:
- TemplateDiffSquared, TemplateNCC
public abstract class BaseTemplateIntensity<T extends ImageBase> extends java.lang.Object implements TemplateMatchingIntensity<T>
Base class which implements common elements
-
-
Constructor Summary
Constructors Constructor and Description BaseTemplateIntensity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetBorderX0()Thickness of border along the image left side (lower extent)intgetBorderX1()Thickness of border along the image right side (upper extent)intgetBorderY0()Thickness of border along the image top (lower extent)intgetBorderY1()Thickness of border along the image bottom (upper extent)GrayF32getIntensity()Contains results of template matching.voidprocess(T image, T template)Matches the template to the image and computes an intensity image.voidprocess(T image, T template, T mask)Matches the template with a mask to the image and computes an intensity image.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.alg.feature.detect.template.TemplateMatchingIntensity
isBorderProcessed
-
-
-
-
Method Detail
-
process
public void process(T image, T template)
Description copied from interface:TemplateMatchingIntensityMatches the template to the image and computes an intensity image.- Specified by:
processin interfaceTemplateMatchingIntensity<T extends ImageBase>- Parameters:
image- Input image. Not modified.template- Template image. Must be equal to or smaller than the input image. Not modified.
-
process
public void process(T image, T template, T mask)
Description copied from interface:TemplateMatchingIntensityMatches the template with a mask to the image and computes an intensity image.- Specified by:
processin interfaceTemplateMatchingIntensity<T extends ImageBase>- Parameters:
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.
-
getIntensity
public GrayF32 getIntensity()
Description copied from interface:TemplateMatchingIntensityContains results of template matching. Higher intensity values correspond to a better match. Local matches can be found usingNonMaxSuppression. See comment about processing the image border.- Specified by:
getIntensityin interfaceTemplateMatchingIntensity<T extends ImageBase>- Returns:
- Feature intensity
-
getBorderX0
public int getBorderX0()
Description copied from interface:TemplateMatchingIntensityThickness of border along the image left side (lower extent)- Specified by:
getBorderX0in interfaceTemplateMatchingIntensity<T extends ImageBase>- Returns:
- Border in pixels
-
getBorderY0
public int getBorderY0()
Description copied from interface:TemplateMatchingIntensityThickness of border along the image top (lower extent)- Specified by:
getBorderY0in interfaceTemplateMatchingIntensity<T extends ImageBase>- Returns:
- Border in pixels
-
getBorderX1
public int getBorderX1()
Description copied from interface:TemplateMatchingIntensityThickness of border along the image right side (upper extent)- Specified by:
getBorderX1in interfaceTemplateMatchingIntensity<T extends ImageBase>- Returns:
- Border in pixels
-
getBorderY1
public int getBorderY1()
Description copied from interface:TemplateMatchingIntensityThickness of border along the image bottom (upper extent)- Specified by:
getBorderY1in interfaceTemplateMatchingIntensity<T extends ImageBase>- Returns:
- Border in pixels
-
-
DataMelt 3.0 © DataMelt by jWork.ORG