Package boofcv.alg.template
Class TemplateCorrelationFFT
java.lang.Object
boofcv.alg.template.TemplateCorrelationFFT
- All Implemented Interfaces:
TemplateMatchingIntensity<GrayF32>
Correlation based template matching which uses FFT
-
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.voidsetInputImage(GrayF32 image) Specifies the input image which the template is going ot be matched against
-
Constructor Details
-
TemplateCorrelationFFT
public TemplateCorrelationFFT()
-
-
Method Details
-
setInputImage
Description copied from interface:TemplateMatchingIntensitySpecifies the input image which the template is going ot be matched against- Specified by:
setInputImagein interfaceTemplateMatchingIntensity<GrayF32>- 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<GrayF32>- Parameters:
template- Template image. Must be equal to or smaller than the input image. Not modified.
-
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<GrayF32>- 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.
-
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<GrayF32>- Returns:
- Feature intensity
-
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<GrayF32>- Returns:
- true if the border is processed and false otherwise.
-
getBorderX0
public int getBorderX0()Description copied from interface:TemplateMatchingIntensityThickness of border along the image left side (lower extent)- Specified by:
getBorderX0in interfaceTemplateMatchingIntensity<GrayF32>- 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<GrayF32>- 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<GrayF32>- 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<GrayF32>- 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<GrayF32>
-