at.ac.sbg.cosy.soccerbot.recognition
Interface IRegionCollector

All Known Implementing Classes:
RegionList

public interface IRegionCollector

IRegionCollector defines classes capable of copllecting (new) regions a semantic description of an image.

Author:
Georg Klima, Krystian Szczurek, Peter Wild

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
 IRegion getRegion(int index)
          Returns the index-th region
 int size()
          Returns current size of list
 

Method Detail

addRegion

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

Parameters:
id - identification number of the region
hsv - average color in 32 bit hsv format
center_x - central x coordinate (with respect to full image)
center_y - central y coordinate (with respect to full image)
height - height of the region
width - width of the region
size - number of pixels within region
clipped - region is at boundary (clipped)

size

int size()
Returns current size of list

Returns:
size of list

getRegion

IRegion getRegion(int index)
Returns the index-th region

Parameters:
index - index which region to return
Returns:
region at position index