SceneGenerator Class Reference

Collaboration diagram for SceneGenerator:
Collaboration graph
[legend]

List of all members.

Classes

struct  ObjectInfo

Public Types

enum  SceneType {
  SIMPLE_EDGES, SIMPLE_SHAPES, ALOI_OBJECTS, COIL_OBJECTS,
  SATELLITE_KATRINA, MIT_LABELME
}

Public Member Functions

 SceneGenerator (SceneType sceneType, int width=255, int height=255)
 Constructor.
Image< PixRGB< byte > > getScene (int nobj, int lum=-1, int col=-1, int rot=-1)
 Get a generated scene.
bool checkTargetPos (const Point2D< int > &pt, const Dims &searchWin)
 Check whether the target is in this position given a search window.
int getObjFromPos (const Point2D< int > &pt, const Dims &searchWin)
 get the obj in this position given a search window
const Point2D< int > getTargetPos () const
 get the target position (first one)
void setSceneType (SceneType sceneId)
void setTargetObject (int obj)
 set the target object
void setObjectSize (int size)
 Set the object size.
void setTargetColor (PixRGB< byte > color)
 set the target color
void setLum (int lum)
 set the objects illumination
void setColor (PixRGB< byte > color)
 set the objects colors
void setNoise (int level)
 set the noise
void setRotation (int rot)
 set the rotation
void setBackgroundColor (PixRGB< byte > color)
 Set the background color.
int getTargetObject ()
 get the target object
int getObjectSize ()
 get the object size
PixRGB< bytegetTargetColor ()
 get the target color
int getLum ()
 get the objects illumination
PixRGB< bytegetColor ()
 get the objects colors
int getNoise ()
 get the noise
int getRotation ()
 get the rotation
PixRGB< bytegetBackgroundColor ()
 get the background color
SceneType getSceneType ()
 get the scene type id
Image< PixRGB< byte > > getLabelMeScene ()
 get a label me scene
Point2D< int > getObjLocation (uint objId)
 get the object location (center of mass)
int getObjId (uint objId)
 get the object ID
uint getNumObj ()
 Get the number of objects in the array.
const char * getSceneTypeNames (SceneType id)
 Get the name of a scene type.
uint getNumSceneTypes ()

Static Public Attributes

static const int numSceneTypeNames = 6

Detailed Description

Definition at line 49 of file SceneGenerator.H.


Constructor & Destructor Documentation

SceneGenerator::SceneGenerator ( SceneType  sceneType,
int  width = 255,
int  height = 255 
)

Constructor.

Definition at line 53 of file SceneGenerator.C.

References initRandomNumbers().


Member Function Documentation

bool SceneGenerator::checkTargetPos ( const Point2D< int > &  pt,
const Dims searchWin 
)

Check whether the target is in this position given a search window.

Definition at line 421 of file SceneGenerator.C.

References Dims::h(), Point2D< T >::i, and Dims::w().

PixRGB< byte > SceneGenerator::getBackgroundColor (  ) 

get the background color

Definition at line 579 of file SceneGenerator.C.

PixRGB< byte > SceneGenerator::getColor (  ) 

get the objects colors

Definition at line 567 of file SceneGenerator.C.

Image< PixRGB< byte > > SceneGenerator::getLabelMeScene (  ) 

get a label me scene

Definition at line 211 of file SceneGenerator.C.

References rescale().

Referenced by getScene().

int SceneGenerator::getLum (  ) 

get the objects illumination

Definition at line 555 of file SceneGenerator.C.

int SceneGenerator::getNoise (  ) 

get the noise

Definition at line 573 of file SceneGenerator.C.

uint SceneGenerator::getNumObj (  ) 

Get the number of objects in the array.

Definition at line 479 of file SceneGenerator.C.

int SceneGenerator::getObjectSize (  ) 

get the object size

Definition at line 538 of file SceneGenerator.C.

int SceneGenerator::getObjFromPos ( const Point2D< int > &  pt,
const Dims searchWin 
)

get the obj in this position given a search window

Definition at line 443 of file SceneGenerator.C.

References Dims::h(), Point2D< T >::i, and Dims::w().

int SceneGenerator::getObjId ( uint  objId  ) 

get the object ID

Definition at line 471 of file SceneGenerator.C.

References ASSERT.

Point2D< int > SceneGenerator::getObjLocation ( uint  objId  ) 

get the object location (center of mass)

Definition at line 463 of file SceneGenerator.C.

References ASSERT.

int SceneGenerator::getRotation (  ) 

get the rotation

Definition at line 561 of file SceneGenerator.C.

Image< PixRGB< byte > > SceneGenerator::getScene ( int  nobj,
int  lum = -1,
int  col = -1,
int  rot = -1 
)

Get a generated scene.

Definition at line 171 of file SceneGenerator.C.

References getLabelMeScene().

SceneGenerator::SceneType SceneGenerator::getSceneType (  ) 

get the scene type id

Definition at line 584 of file SceneGenerator.C.

const char* SceneGenerator::getSceneTypeNames ( SceneType  id  )  [inline]

Get the name of a scene type.

Definition at line 149 of file SceneGenerator.H.

References ASSERT.

PixRGB< byte > SceneGenerator::getTargetColor (  ) 

get the target color

Definition at line 549 of file SceneGenerator.C.

int SceneGenerator::getTargetObject (  ) 

get the target object

Definition at line 543 of file SceneGenerator.C.

const Point2D< int > SceneGenerator::getTargetPos (  )  const

get the target position (first one)

Definition at line 485 of file SceneGenerator.C.

void SceneGenerator::setBackgroundColor ( PixRGB< byte color  ) 

Set the background color.

Definition at line 532 of file SceneGenerator.C.

void SceneGenerator::setColor ( PixRGB< byte color  ) 

set the objects colors

Definition at line 520 of file SceneGenerator.C.

void SceneGenerator::setLum ( int  lum  ) 

set the objects illumination

Definition at line 508 of file SceneGenerator.C.

void SceneGenerator::setNoise ( int  level  ) 

set the noise

Definition at line 526 of file SceneGenerator.C.

void SceneGenerator::setObjectSize ( int  size  ) 

Set the object size.

Definition at line 495 of file SceneGenerator.C.

void SceneGenerator::setRotation ( int  rot  ) 

set the rotation

Definition at line 514 of file SceneGenerator.C.

void SceneGenerator::setTargetColor ( PixRGB< byte color  ) 

set the target color

Definition at line 502 of file SceneGenerator.C.

void SceneGenerator::setTargetObject ( int  obj  ) 

set the target object

Definition at line 165 of file SceneGenerator.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:47 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3