|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ac.sbg.cosy.soccerbot.recognition.Region
public class Region
Region for Split and Merge Technique
Constructor Summary | |
---|---|
Region()
Default Constructor |
|
Region(int id,
int hsv,
int center_x,
int center_y,
int height,
int width,
int size,
boolean clipped)
Constructor |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object region)
For sorting, compares by region size |
IRegion |
copy()
Deep copy of region |
int |
getCenter_X()
Returns the center x-coordinate (midpoint) of the recognized region (used for robot navigation) |
int |
getCenter_Y()
Returns the center y-coordinate (midpoint) of the recognized region (used for robot navigation) |
boolean |
getClipped()
Returns information whether region may be clipped (at boundary of image) |
int |
getHeight()
Returns the maximum height of the region |
int |
getHSV()
Returns hsv value in 32-bit hsv format (0xHHHHSSVV) |
int |
getId()
Returns region id (may be used for retrieving additional region information) |
int |
getSize()
Returns the numberf of pixels within the region |
int |
getWidth()
Returns the maximum width of the region |
void |
setCenter_X(int center_x)
sets the center x-coordinate (midpoint) of the recognized region (used for robot navigation) |
void |
setCenter_Y(int center_y)
sets the center y-coordinate (midpoint) of the recognized region (used for robot navigation) |
void |
setClipped(boolean clipped)
Sets clipping information (at boundary of image) |
void |
setHeight(int height)
Sets the maximum height of the region |
void |
setHSV(int hsv)
Sets the region hsv value |
void |
setId(int id)
Sets the region id (may be used for retrieving additional region information) |
void |
setSize(int size)
Sets the size (number of pixels) of the region |
void |
setWidth(int width)
Sets the maximum width of the region |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Region()
public Region(int id, int hsv, int center_x, int center_y, int height, int width, int size, boolean clipped)
id
- number of the regionhsv
- average color value in hsvcenter_x
- center x-coordinatecenter_y
- center y-coordinateheight
- height of the regionwidth
- width of the regionsize
- number of pixels within regionclipped
- intersects with image boundaryMethod Detail |
---|
public int getId()
IRegion
getId
in interface IRegion
IRegion.getId()
public int getHSV()
IRegion
getHSV
in interface IRegion
IRegion.getHSV()
public int getCenter_X()
IRegion
getCenter_X
in interface IRegion
IRegion.getCenter_X()
public int getCenter_Y()
IRegion
getCenter_Y
in interface IRegion
IRegion.getCenter_Y()
public int getHeight()
IRegion
getHeight
in interface IRegion
IRegion.getHeight()
public int getSize()
IRegion
getSize
in interface IRegion
IRegion.getSize()
public int getWidth()
IRegion
getWidth
in interface IRegion
IRegion.getWidth()
public void setHSV(int hsv)
IRegion
setHSV
in interface IRegion
hsv
- average hsv value encoded in 32-bit format (0xHHHHSSVV)IRegion.setHSV(int)
public void setCenter_X(int center_x)
IRegion
setCenter_X
in interface IRegion
center_x
- center of regionIRegion.setCenter_X(int)
public void setCenter_Y(int center_y)
IRegion
setCenter_Y
in interface IRegion
center_y
- center of regionIRegion.setCenter_Y(int)
public void setHeight(int height)
IRegion
setHeight
in interface IRegion
height
- height of regionIRegion.setHeight(int)
public void setSize(int size)
IRegion
setSize
in interface IRegion
size
- number of pixelsIRegion.setSize(int)
public void setWidth(int width)
IRegion
setWidth
in interface IRegion
width
- width of regionIRegion.setWidth(int)
public void setId(int id)
IRegion
setId
in interface IRegion
id
- region identifierIRegion.setId(int)
public boolean getClipped()
IRegion
getClipped
in interface IRegion
IRegion.getClipped()
public void setClipped(boolean clipped)
IRegion
setClipped
in interface IRegion
clipped
- whether region is clippedIRegion.setClipped(boolean)
public int compareTo(java.lang.Object region)
compareTo
in interface java.lang.Comparable
region
- region to be compared to
public IRegion copy()
IRegion
copy
in interface IRegion
IRegion.copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |