ScaleSurpriseControl< FLOAT > Class Template Reference

remove surprise using scales, FLOAT is either float or double for precision More...

#include <Neuro/ScaleSurpriseControl.H>

Collaboration diagram for ScaleSurpriseControl< FLOAT >:
Collaboration graph
[legend]

List of all members.

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

These methods need to be feed data per frame such as the saliency map and the raw image for each frame. These should be called each frame.

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

These methods allow optional masks or bayes weight images to be set

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

Output from each frame can be obtained by calling these methods

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.

Detailed Description

template<class FLOAT>
class ScaleSurpriseControl< FLOAT >

remove surprise using scales, FLOAT is either float or double for precision

Definition at line 77 of file ScaleSurpriseControl.H.


Constructor & Destructor Documentation

template<class FLOAT >
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().

template<class FLOAT >
ScaleSurpriseControl< FLOAT >::ScaleSurpriseControl (  )  [inline]

default constructor need to call SSCinit and SSCreadConfig

Definition at line 59 of file ScaleSurpriseControl.C.

template<class FLOAT >
ScaleSurpriseControl< FLOAT >::~ScaleSurpriseControl (  )  [inline]

default destructor

Definition at line 67 of file ScaleSurpriseControl.C.


Member Function Documentation

template<class FLOAT >
std::vector< Image< FLOAT > > ScaleSurpriseControl< FLOAT >::SSCgetBetaParts ( const bool  normalize = false  )  const [inline]
template<class FLOAT>
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().

template<class FLOAT >
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().

template<class FLOAT >
std::vector< Image< PixRGB< FLOAT > > > ScaleSurpriseControl< FLOAT >::SSCgetDiffParts (  )  const [inline]
template<class FLOAT >
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().

template<class FLOAT>
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().

template<class FLOAT >
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().

template<class FLOAT>
void ScaleSurpriseControl< FLOAT >::SSCinputBayesWeightImage ( const Image< FLOAT > &  bayesImage  )  [inline]

input a bayes weight image if desired

Definition at line 318 of file ScaleSurpriseControl.C.

template<class FLOAT>
void ScaleSurpriseControl< FLOAT >::SSCinputMaskImage ( const Image< FLOAT > &  maskImage  )  [inline]

input and independant mask image if desired

Definition at line 331 of file ScaleSurpriseControl.C.

template<class FLOAT>
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.

template<class FLOAT>
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.

template<class FLOAT >
void ScaleSurpriseControl< FLOAT >::SSCprocessFrame ( const uint  frame  )  [inline]

process this movie frame, no brain NO-OP

Definition at line 676 of file ScaleSurpriseControl.C.

template<class FLOAT >
void ScaleSurpriseControl< FLOAT >::SSCprocessFrame ( Brain brain  )  [inline]

process this movie frame using a brain

Definition at line 344 of file ScaleSurpriseControl.C.

template<class FLOAT >
void ScaleSurpriseControl< FLOAT >::SSCreadConfig ( const string  confFile  )  [inline]
template<class FLOAT >
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().


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