boofcv.alg.feature.detect.template
Class TemplateMatching<T extends ImageBase>
- java.lang.Object
-
- boofcv.alg.feature.detect.template.TemplateMatching<T>
-
public class TemplateMatching<T extends ImageBase> extends java.lang.ObjectRuns a template matching algorithm across the image. Local peaks are found in the resulting intensity image and the best solutions returned.
-
-
Constructor Summary
Constructors Constructor and Description TemplateMatching(TemplateMatchingIntensity<T> match)Specifies internal algorithm
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description FastQueue<Match>getResults()Returns all the found matches.voidprocess(T image)Performs template matching.voidsetMinimumSeparation(int radius)Adjust how close to objects can be found to each othervoidsetTemplate(T template, T mask, int maxMatches)Specifies the template to search for and the maximum number of matches to return.
-
-
-
Constructor Detail
-
TemplateMatching
public TemplateMatching(TemplateMatchingIntensity<T> match)
Specifies internal algorithm- Parameters:
match- Provide template matching intensity algorithm
-
-
Method Detail
-
setMinimumSeparation
public void setMinimumSeparation(int radius)
Adjust how close to objects can be found to each other- Parameters:
radius- Distance in pixels. Try using the template's radius or 2
-
setTemplate
public void setTemplate(T template, T mask, int maxMatches)
Specifies the template to search for and the maximum number of matches to return.- Parameters:
template- Template being searched formask- Optional mask. Same size as template. 0 = pixel is transparent, values larger than zero determine how influential the pixel is. Can be null.maxMatches- The maximum number of matches it will return
-
process
public void process(T image)
Performs template matching.- Parameters:
image- Image being processed
-
-
DataMelt 3.0 © DataMelt by jWork.ORG