Package boofcv.alg.template
Class TemplateIntensityImage<T extends ImageBase<T>>
java.lang.Object
boofcv.alg.template.TemplateIntensityImage<T>
- All Implemented Interfaces:
TemplateMatchingIntensity<T>
- Direct Known Subclasses:
TemplateIntensityImage_MT
public class TemplateIntensityImage<T extends ImageBase<T>>
extends Object
implements TemplateMatchingIntensity<T>
Class which computes the templates' intensity across the entire image
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTemplateIntensityImage.EvaluatorMethod<T extends ImageBase<T>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThickness of border along the image left side (lower extent)intThickness of border along the image right side (upper extent)intThickness of border along the image top (lower extent)intThickness of border along the image bottom (upper extent)Contains results of template matching.booleanDoes this algorithm process the image's border.booleanIf true then a better fit is a larger number, otherwise a smaller number is a better fitvoidMatches the template to the image and computes an intensity image.voidMatches the template with a mask to the image and computes an intensity image.protected voidprocessInner(int w, int h) protected voidprocessInnerMask(int w, int h) voidsetInputImage(T image) Specifies the input image which the template is going ot be matched against
-
Field Details
-
intensity
-
image
-
template
-
mask
-
borderX0
protected int borderX0 -
borderY0
protected int borderY0 -
borderX1
protected int borderX1 -
borderY1
protected int borderY1 -
method
-
-
Constructor Details
-
TemplateIntensityImage
-
-
Method Details
-
setInputImage
Description copied from interface:TemplateMatchingIntensitySpecifies the input image which the template is going ot be matched against- Specified by:
setInputImagein interfaceTemplateMatchingIntensity<T extends ImageBase<T>>- Parameters:
image- Input image. Not modified.
-
process
Description copied from interface:TemplateMatchingIntensityMatches the template to the image and computes an intensity image. Must callTemplateMatchingIntensity.setInputImage(ImageBase)first- Specified by:
processin interfaceTemplateMatchingIntensity<T extends ImageBase<T>>- Parameters:
template- Template image. Must be equal to or smaller than the input image. Not modified.
-
processInner
protected void processInner(int w, int h) -
process
Description copied from interface:TemplateMatchingIntensityMatches the template with a mask to the image and computes an intensity image. Must callTemplateMatchingIntensity.setInputImage(ImageBase)first- Specified by:
processin interfaceTemplateMatchingIntensity<T extends ImageBase<T>>- Parameters:
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.
-
processInnerMask
protected void processInnerMask(int w, int h) -
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<T>>- 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<T>>- 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<T>>- 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<T>>- 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<T>>- Returns:
- Border in pixels
-
isMaximize
public boolean isMaximize()Description copied from interface:TemplateMatchingIntensityIf true then a better fit is a larger number, otherwise a smaller number is a better fit- Specified by:
isMaximizein interfaceTemplateMatchingIntensity<T extends ImageBase<T>>
-
isBorderProcessed
public boolean isBorderProcessed()Description copied from interface:TemplateMatchingIntensityDoes this algorithm process the image's border. If it does not process the border- Specified by:
isBorderProcessedin interfaceTemplateMatchingIntensity<T extends ImageBase<T>>- Returns:
- true if the border is processed and false otherwise.
-