remove surprise using scales, FLOAT is either float or double for precision More...
#include <Neuro/ScaleSurpriseControl.H>
Public Member Functions | |
ScaleSurpriseControl (const ushort sizeX, const ushort sizeY, const string confFile="null") | |
default constructor, call with base image size for frames | |
ScaleSurpriseControl () | |
default constructor need to call SSCinit and SSCreadConfig | |
~ScaleSurpriseControl () | |
default destructor | |
InputAndInit | |
These methods are used to init the object and input maps and variables that affect the way ScaleSurpriseControl will work. These methods only need to be called once | |
void | SSCsetLevelSpecInfo (const uint levMin, const uint levMax, const uint delMin, const uint delMax, const uint mapLevel, const uint maxIndex, const uint maxDepth) |
Input LevelSpec info directly insted of from a config file. | |
void | SSCreadConfig (const string confFile) |
read in config values | |
void | SSCinit (const ushort sizeX, const ushort sizeY) |
is called by default constructor, sets stuff up | |
InputPerFrame | |
void | SSCinputRawImage (const Image< PixRGB< FLOAT > > &rawImage) |
input a raw frame, give the frame number as well | |
void | SSCinputSalMap (const Image< FLOAT > &salMap) |
input the base saliency map for this frame | |
InputOptional | |
void | SSCinputMaskImage (const Image< FLOAT > &maskImage) |
input and independant mask image if desired | |
void | SSCinputBayesWeightImage (const Image< FLOAT > &bayesImage) |
input a bayes weight image if desired | |
RunPerFrame | |
Call to SSCprocessFrame to run each frame. It should call each SurpriseControl at each scale for you. | |
void | SSCprocessFrame (Brain *brain) |
process this movie frame using a brain | |
void | SSCprocessFrame (const uint frame) |
process this movie frame, no brain NO-OP | |
Output | |
Image< PixRGB< FLOAT > > | SSCgetFrame () const |
get the resulting frame processed | |
Image< PixRGB< FLOAT > > | SSCgetDiffImage (const bool normalize=false) const |
get the difference image between the input and final output | |
std::vector< Image< PixRGB < FLOAT > > > | SSCgetDiffParts () const |
compute difference difference parts for this image over rawImage | |
std::vector< Image< FLOAT > > | SSCgetBetaParts (const bool normalize=false) const |
compute the combined beta map for all scales | |
void | SSCgetBiasParts (std::vector< Image< PixRGB< FLOAT > > > &H1, std::vector< Image< PixRGB< FLOAT > > > &H2, std::vector< Image< PixRGB< FLOAT > > > &S, std::vector< Image< PixRGB< FLOAT > > > &V) const |
return the bias images used in smoothing etc. | |
void | SSCgetSeperableParts (std::vector< Image< PixRGB< FLOAT > > > &Zimgs, std::vector< Image< PixRGB< FLOAT > > > &Yimgs, const bool normalize=false) const |
Get the y and z parts of the seperable filter. |
remove surprise using scales, FLOAT is either float or double for precision
Definition at line 77 of file ScaleSurpriseControl.H.
ScaleSurpriseControl< FLOAT >::ScaleSurpriseControl | ( | const ushort | sizeX, | |
const ushort | sizeY, | |||
const string | confFile = "null" | |||
) | [inline] |
default constructor, call with base image size for frames
Definition at line 47 of file ScaleSurpriseControl.C.
References ScaleSurpriseControl< FLOAT >::SSCinit(), and ScaleSurpriseControl< FLOAT >::SSCreadConfig().
ScaleSurpriseControl< FLOAT >::ScaleSurpriseControl | ( | ) | [inline] |
default constructor need to call SSCinit and SSCreadConfig
Definition at line 59 of file ScaleSurpriseControl.C.
ScaleSurpriseControl< FLOAT >::~ScaleSurpriseControl | ( | ) | [inline] |
default destructor
Definition at line 67 of file ScaleSurpriseControl.C.
std::vector< Image< FLOAT > > ScaleSurpriseControl< FLOAT >::SSCgetBetaParts | ( | const bool | normalize = false |
) | const [inline] |
compute the combined beta map for all scales
Definition at line 803 of file ScaleSurpriseControl.C.
References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), FLOAT_NORM_0_255, Image< T >::getVal(), normalizeFloat(), and Image< T >::resize().
Referenced by SimulationViewerSurpCont::getBetaImages(), and SimulationViewerSurpCont::saveResults().
void ScaleSurpriseControl< FLOAT >::SSCgetBiasParts | ( | std::vector< Image< PixRGB< FLOAT > > > & | H1, | |
std::vector< Image< PixRGB< FLOAT > > > & | H2, | |||
std::vector< Image< PixRGB< FLOAT > > > & | S, | |||
std::vector< Image< PixRGB< FLOAT > > > & | V | |||
) | const [inline] |
return the bias images used in smoothing etc.
Definition at line 868 of file ScaleSurpriseControl.C.
References H1, H2, normalizeScaleRainbow(), and Image< T >::resize().
Referenced by SimulationViewerSurpCont::saveResults().
Image< PixRGB< FLOAT > > ScaleSurpriseControl< FLOAT >::SSCgetDiffImage | ( | const bool | normalize = false |
) | const [inline] |
get the difference image between the input and final output
Definition at line 691 of file ScaleSurpriseControl.C.
References abs(), Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), normalizeRGB(), and Image< T >::resize().
Referenced by SimulationViewerSurpCont::saveResults().
std::vector< Image< PixRGB< FLOAT > > > ScaleSurpriseControl< FLOAT >::SSCgetDiffParts | ( | ) | const [inline] |
compute difference difference parts for this image over rawImage
Definition at line 724 of file ScaleSurpriseControl.C.
References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getVal(), normalizeRGPolarAuto(), and Image< T >::resize().
Referenced by SimulationViewerSurpCont::getDiffImages(), and SimulationViewerSurpCont::saveResults().
Image< PixRGB< FLOAT > > ScaleSurpriseControl< FLOAT >::SSCgetFrame | ( | ) | const [inline] |
get the resulting frame processed
Definition at line 683 of file ScaleSurpriseControl.C.
Referenced by SimulationViewerSurpCont::getResult(), and SimulationViewerSurpCont::saveResults().
void ScaleSurpriseControl< FLOAT >::SSCgetSeperableParts | ( | std::vector< Image< PixRGB< FLOAT > > > & | Zimgs, | |
std::vector< Image< PixRGB< FLOAT > > > & | Yimgs, | |||
const bool | normalize = false | |||
) | const [inline] |
Get the y and z parts of the seperable filter.
Definition at line 906 of file ScaleSurpriseControl.C.
References normalizeRGB(), and Image< T >::resize().
Referenced by SimulationViewerSurpCont::saveResults().
void ScaleSurpriseControl< FLOAT >::SSCinit | ( | const ushort | sizeX, | |
const ushort | sizeY | |||
) | [inline] |
is called by default constructor, sets stuff up
Definition at line 203 of file ScaleSurpriseControl.C.
References Image< T >::resize().
Referenced by SimulationViewerSurpCont::init(), and ScaleSurpriseControl< FLOAT >::ScaleSurpriseControl().
void ScaleSurpriseControl< FLOAT >::SSCinputBayesWeightImage | ( | const Image< FLOAT > & | bayesImage | ) | [inline] |
input a bayes weight image if desired
Definition at line 318 of file ScaleSurpriseControl.C.
void ScaleSurpriseControl< FLOAT >::SSCinputMaskImage | ( | const Image< FLOAT > & | maskImage | ) | [inline] |
input and independant mask image if desired
Definition at line 331 of file ScaleSurpriseControl.C.
void ScaleSurpriseControl< FLOAT >::SSCinputRawImage | ( | const Image< PixRGB< FLOAT > > & | rawImage | ) | [inline] |
input a raw frame, give the frame number as well
Definition at line 301 of file ScaleSurpriseControl.C.
References rawImage.
void ScaleSurpriseControl< FLOAT >::SSCinputSalMap | ( | const Image< FLOAT > & | salMap | ) | [inline] |
input the base saliency map for this frame
Definition at line 310 of file ScaleSurpriseControl.C.
void ScaleSurpriseControl< FLOAT >::SSCprocessFrame | ( | const uint | frame | ) | [inline] |
process this movie frame, no brain NO-OP
Definition at line 676 of file ScaleSurpriseControl.C.
void ScaleSurpriseControl< FLOAT >::SSCprocessFrame | ( | Brain * | brain | ) | [inline] |
process this movie frame using a brain
Definition at line 344 of file ScaleSurpriseControl.C.
void ScaleSurpriseControl< FLOAT >::SSCreadConfig | ( | const string | confFile | ) | [inline] |
read in config values
Definition at line 93 of file ScaleSurpriseControl.C.
References readConfig::getItemValueB(), readConfig::getItemValueF(), and readConfig::openFile().
Referenced by SimulationViewerSurpCont::init(), and ScaleSurpriseControl< FLOAT >::ScaleSurpriseControl().
void ScaleSurpriseControl< FLOAT >::SSCsetLevelSpecInfo | ( | const uint | levMin, | |
const uint | levMax, | |||
const uint | delMin, | |||
const uint | delMax, | |||
const uint | mapLevel, | |||
const uint | maxIndex, | |||
const uint | maxDepth | |||
) | [inline] |
Input LevelSpec info directly insted of from a config file.
Definition at line 72 of file ScaleSurpriseControl.C.
Referenced by SimulationViewerSurpCont::setBrain().