public class TemplateMatching<T extends boofcv.struct.image.ImageBase>
extends java.lang.Object
| Constructor and Description |
|---|
TemplateMatching(TemplateMatchingIntensity<T> match)
Specifies internal algorithm
|
| Modifier and Type | Method and Description |
|---|---|
org.ddogleg.struct.FastQueue<Match> |
getResults()
Returns all the found matches.
|
void |
process()
Performs template matching.
|
void |
setImage(T image)
Specifies the input image which the template is to be found inside.
|
void |
setMinimumSeparation(int radius)
Adjust how close to objects can be found to each other
|
void |
setTemplate(T template,
T mask,
int maxMatches)
Specifies the template to search for and the maximum number of matches to return.
|
public TemplateMatching(TemplateMatchingIntensity<T> match)
match - Provide template matching intensity algorithmpublic void setMinimumSeparation(int radius)
radius - Distance in pixels. Try using the template's radius or 2public void setTemplate(T template, T mask, int maxMatches)
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 returnpublic void setImage(T image)
image - Image being processedpublic void process()
public org.ddogleg.struct.FastQueue<Match> getResults()