|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ac.sbg.cosy.soccerbot.recognition.RegionList
public class RegionList
Static Region List
Method Summary | |
---|---|
void |
addRegion(int id,
int hsv,
int center_x,
int center_y,
int height,
int width,
int size,
boolean clipped)
Adds a new region to a collection |
static RegionList |
getInstance()
Aquire private static singleton |
IRegion |
getRegion(int index)
Returns the index-th region |
void |
increment()
Increases the number of accessible elements by 1 |
boolean |
isEmpty()
Returns emptyness of list |
void |
reset()
Shallow reset |
int |
size()
Returns current size of list |
void |
sort()
Does a region sorting of all accessible regions |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RegionList getInstance()
public int size()
size
in interface IRegionCollector
public boolean isEmpty()
public IRegion getRegion(int index)
getRegion
in interface IRegionCollector
index
- index which region to return
public void reset()
public void increment()
public void sort()
public void addRegion(int id, int hsv, int center_x, int center_y, int height, int width, int size, boolean clipped)
IRegionCollector
addRegion
in interface IRegionCollector
id
- identification number of the regionhsv
- average color in 32 bit hsv formatcenter_x
- central x coordinate (with respect to full image)center_y
- central y coordinate (with respect to full image)height
- height of the regionwidth
- width of the regionsize
- number of pixels within regionclipped
- region is at boundary (clipped)IRegionCollector.addRegion(int, int, int, int, int, int, int, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |