A new output is available from the ShapeEstimator. More...
#include <Neuro/NeuroSimEvents.H>
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::string & | winningLabel () 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? |
A new output is available from the ShapeEstimator.
Definition at line 393 of file NeuroSimEvents.H.
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.
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().
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().
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.