public class ComparedRectangleArea extends RectangleArea
コンストラクタと説明 |
---|
ComparedRectangleArea() |
ComparedRectangleArea(double x,
double y,
double width,
double height)
Constructor Set the location and size information.
|
ComparedRectangleArea(int x,
int y,
int width,
int height,
DiffCategory category,
int xShift,
int yShift,
SimilarityUnit similarityUnit)
Constructor
|
ComparedRectangleArea(java.awt.Rectangle rectangle)
Constructor Set the area information.
|
ComparedRectangleArea(java.awt.Rectangle rectangle,
int xShift,
int yShift)
Constructor Set the shift information when the template image is contained in the entire image.
|
修飾子とタイプ | メソッドと説明 |
---|---|
DiffCategory |
getCategory() |
SimilarityUnit |
getSimilarityUnit() |
int |
getXShift() |
int |
getYShift() |
void |
setCategory(DiffCategory category) |
void |
setSimilarityUnit(SimilarityUnit similarityUnit) |
void |
setXShift(int xShift) |
void |
setYShift(int yShift) |
applyScale, ceil, equals, floor, getHeight, getWidth, getX, getY, hashCode, move, round, toRectangle, toString
public ComparedRectangleArea(java.awt.Rectangle rectangle)
rectangle
- the rectangle area of template imagepublic ComparedRectangleArea(double x, double y, double width, double height)
rectangle
- the rectangle area of template imagepublic ComparedRectangleArea(java.awt.Rectangle rectangle, int xShift, int yShift)
rectangle
- the rectangle area of template imagexShift
- how many pixels the template image is shifted rightwardyShift
- how many pixels the template image is shifted downwardpublic ComparedRectangleArea(int x, int y, int width, int height, DiffCategory category, int xShift, int yShift, SimilarityUnit similarityUnit)
x
- y
- width
- height
- category
- xShift
- yShift
- similarityUnit
- public ComparedRectangleArea()
public DiffCategory getCategory()
public void setCategory(DiffCategory category)
public int getXShift()
public void setXShift(int xShift)
public int getYShift()
public void setYShift(int yShift)
public SimilarityUnit getSimilarityUnit()
public void setSimilarityUnit(SimilarityUnit similarityUnit)