public abstract class ImageSearchCriteria extends SearchCriteria
Provides base class for image search criteria.
Modifier | Constructor and Description |
---|---|
protected |
ImageSearchCriteria(InputStream stream)
Initializes a new instance of the
ImageSearchCriteria class. |
protected |
ImageSearchCriteria(String filePath)
Initializes a new instance of the
ImageSearchCriteria class. |
Modifier and Type | Method and Description |
---|---|
double |
getMaxDifference()
Gets maximum allowed difference between images.
|
void |
setMaxDifference(double value)
Sets maximum allowed difference between images.
|
and, not, or
protected ImageSearchCriteria(String filePath)
Initializes a new instance of the ImageSearchCriteria
class.
filePath
- The file path to load image from.protected ImageSearchCriteria(InputStream stream)
Initializes a new instance of the ImageSearchCriteria
class.
stream
- The stream to load image from.public final double getMaxDifference()
Gets maximum allowed difference between images.
public final void setMaxDifference(double value)
Sets maximum allowed difference between images.
value
- The value should be between 0 and 1.
0 means that only identical images will be found.Copyright © 2020. All rights reserved.