public class ExactSearchModule extends AbstractImagePattern
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Field and Description |
---|---|
long |
endTime
Performance time counters (nanoseconds).
|
long |
heurTime
Performance time counters (nanoseconds).
|
long |
histTime
Performance time counters (nanoseconds).
|
long |
startTime
Performance time counters (nanoseconds).
|
Constructor and Description |
---|
ExactSearchModule() |
Modifier and Type | Method and Description |
---|---|
Map<Rectangle,int[]> |
getAllFailedPixels() |
List<Integer> |
getForbiddenColors() |
int |
getMinAlpha() |
int |
getRgbTolerance()
Get tolerance to color variance (default is 0).
|
String |
getType()
Get the type (name) of the image comparison method.
|
boolean |
isHeuristicsDefined() |
boolean |
matches(int[] source,
int offset,
Rectangle sourceRect,
float passRate)
Find out if the pattern matches with source pixels at a specified offset.
|
void |
rebuildHeuristics(float passRate) |
void |
resetHeuristics() |
void |
setForbiddenColors(List<Integer> forbiddenColors) |
void |
setHeurIndex(int index) |
void |
setMinAlpha(int minAlpha) |
void |
setRgbTolerance(int rgbTolerance)
Set tolerance to color variance.
|
void |
setTrackingOfFailedPixelsEnabled(boolean enabled) |
findPattern, getNumberOfNonAlphaPixels, getPixels, getRectangle, getStampAsString, isStopped, parseStampFromString, setPixels, setPixelsFromImage, stop, toString
public long startTime
public long histTime
public long heurTime
public long endTime
public String getType()
getType
in class AbstractImagePattern
public void setHeurIndex(int index)
public void rebuildHeuristics(float passRate)
public void setTrackingOfFailedPixelsEnabled(boolean enabled)
public void resetHeuristics()
public boolean isHeuristicsDefined()
public void setMinAlpha(int minAlpha)
minAlpha
- the minAlpha to setpublic int getMinAlpha()
public int getRgbTolerance()
public void setRgbTolerance(int rgbTolerance)
rgbTolerance
- tolerance value (1-100).public void setForbiddenColors(List<Integer> forbiddenColors)
forbiddenColors
- the forbiddenColors to setpublic boolean matches(int[] source, int offset, Rectangle sourceRect, float passRate)
AbstractImagePattern
matches
in class AbstractImagePattern
source
- source pixels (usually pixels of a certain area of the
remote desktop image)offset
- from which pixel array index to comparesourceRect
- rectangle identifying the area from to which the source
pixels belong topassRate
- the pass rate between 0 and 1.