A new output is available from the SaliencyMap. More...
#include <Neuro/NeuroSimEvents.H>
Public Member Functions | |
SimEventSaliencyMapOutput (SimModule *src, const Image< float > &smout, const int maplevel) | |
Constuctor. | |
virtual | ~SimEventSaliencyMapOutput () |
Destructor. | |
virtual std::string | toString () const |
Get a description for printing out. | |
const Image< float > | sm (const float factor=1.0F) const |
Get the SaliencyMap output. | |
Point2D< int > | smToOrig (const Point2D< int > &p) const |
Transform coordinates from saliency map to original image. | |
Point2D< int > | origToSm (const Point2D< int > &p) const |
Transform coordinates from original image to saliency map. |
A new output is available from the SaliencyMap.
Definition at line 190 of file NeuroSimEvents.H.
SimEventSaliencyMapOutput::SimEventSaliencyMapOutput | ( | SimModule * | src, | |
const Image< float > & | smout, | |||
const int | maplevel | |||
) |
Constuctor.
Definition at line 195 of file NeuroSimEvents.C.
SimEventSaliencyMapOutput::~SimEventSaliencyMapOutput | ( | ) | [virtual] |
Destructor.
Definition at line 199 of file NeuroSimEvents.C.
Transform coordinates from original image to saliency map.
Definition at line 221 of file NeuroSimEvents.C.
References Point2D< T >::i.
const Image< float > SimEventSaliencyMapOutput::sm | ( | const float | factor = 1.0F |
) | const |
Get the SaliencyMap output.
A factor of 1.0 will return the raw, unnormalized map. A factor of 0.0F will normalize the map to a range of [0..255]. Any other factor will be used to multiply the map values.
Definition at line 208 of file NeuroSimEvents.C.
References inplaceNormalize().
Transform coordinates from saliency map to original image.
Definition at line 216 of file NeuroSimEvents.C.
References Point2D< T >::i.
std::string SimEventSaliencyMapOutput::toString | ( | ) | const [virtual] |
Get a description for printing out.
Reimplemented from SimEvent.
Definition at line 202 of file NeuroSimEvents.C.
References Image< T >::getHeight(), Image< T >::getWidth(), and sformat().