SimEventShapeEstimatorOutput Class Reference

A new output is available from the ShapeEstimator. More...

#include <Neuro/NeuroSimEvents.H>

Inheritance diagram for SimEventShapeEstimatorOutput:
Inheritance graph
[legend]
Collaboration diagram for SimEventShapeEstimatorOutput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimEventShapeEstimatorOutput (SimModule *src, const Image< float > &winmap, const Image< byte > &objmask, const Image< byte > &iormask, const Image< float > &smoothmask, const Image< float > &cumsmoothmask, const std::string &winlabel, const bool isshaped)
 Constuctor.
virtual ~SimEventShapeEstimatorOutput ()
 Destructor.
virtual std::string toString () const
 Get a description for printing out.
const Image< float > & winningMap () const
 Get the map where the winner was found.
const Image< byte > & objectMask () const
 Get the object mask.
const Image< byte > & iorMask () const
 Get the IOR mask.
const Image< float > & smoothMask () const
 Get the smooth mask.
Image< float > cumSmoothMask () const
 Get the cumulative smooth mask.
Image< float > negCumSmoothMask () const
 Get a negative of the cumulative smooth mask.
const std::stringwinningLabel () const
 Get description of the feature/conspic/saliency map used for masks.
uint objectArea () const
 Get object area, in original input pixels.
bool isShaped () const
 Did the shape extraction succeed?

Detailed Description

A new output is available from the ShapeEstimator.

Definition at line 393 of file NeuroSimEvents.H.


Constructor & Destructor Documentation

SimEventShapeEstimatorOutput::SimEventShapeEstimatorOutput ( SimModule src,
const Image< float > &  winmap,
const Image< byte > &  objmask,
const Image< byte > &  iormask,
const Image< float > &  smoothmask,
const Image< float > &  cumsmoothmask,
const std::string winlabel,
const bool  isshaped 
)

Constuctor.

Definition at line 396 of file NeuroSimEvents.C.

SimEventShapeEstimatorOutput::~SimEventShapeEstimatorOutput (  )  [virtual]

Destructor.

Definition at line 410 of file NeuroSimEvents.C.


Member Function Documentation

Image< float > SimEventShapeEstimatorOutput::cumSmoothMask (  )  const

Get the cumulative smooth mask.

The cumulative smooth mask a merger of all smooth masks since the last reset().

Definition at line 434 of file NeuroSimEvents.C.

References inplaceClamp().

const Image< byte > & SimEventShapeEstimatorOutput::iorMask (  )  const

Get the IOR mask.

The IOR mask is a byte map [0,255] - 0 everywhere outside the object, (winMapNormalized * 255) everywhere inside the object this is used for IOR in a graded manner - the stronger the winning property is in a certain position, the stronger this position is inhibited.

Definition at line 428 of file NeuroSimEvents.C.

bool SimEventShapeEstimatorOutput::isShaped (  )  const

Did the shape extraction succeed?

If this returns true, then the ShapeEstimator was able to find a shape to extract. Otherwise it fell back to just using a disk at the attended location. The masks always contain something, just sometimes that thing may be a disk rather than a nicely segmented object.

Definition at line 457 of file NeuroSimEvents.C.

Image< float > SimEventShapeEstimatorOutput::negCumSmoothMask (  )  const

Get a negative of the cumulative smooth mask.

Definition at line 441 of file NeuroSimEvents.C.

References inplaceClamp().

uint SimEventShapeEstimatorOutput::objectArea (  )  const

Get object area, in original input pixels.

Definition at line 451 of file NeuroSimEvents.C.

References Image< T >::getSize(), and sum().

const Image< byte > & SimEventShapeEstimatorOutput::objectMask (  )  const

Get the object mask.

The object mask is a binary mask {0,255} specifiying the extend of the object (255 inside the object and 0 outside). Its dims are the dims of the map where the object was segmented (depends on shape estimator mode used).

Definition at line 425 of file NeuroSimEvents.C.

const Image< float > & SimEventShapeEstimatorOutput::smoothMask (  )  const

Get the smooth mask.

The smooth mask is a float map [0.0,1.0] in input image coordinates created from the object mask by scaling it up and smoothing out the edges with some specified smoothing method.

Definition at line 431 of file NeuroSimEvents.C.

std::string SimEventShapeEstimatorOutput::toString (  )  const [virtual]

Get a description for printing out.

Reimplemented from SimEvent.

Definition at line 413 of file NeuroSimEvents.C.

References Image< T >::getHeight(), Image< T >::getWidth(), and sformat().

const std::string & SimEventShapeEstimatorOutput::winningLabel (  )  const

Get description of the feature/conspic/saliency map used for masks.

Definition at line 448 of file NeuroSimEvents.C.

const Image< float > & SimEventShapeEstimatorOutput::winningMap (  )  const

Get the map where the winner was found.

Definition at line 422 of file NeuroSimEvents.C.


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