ScaleRemoveSurprise< FLOAT > Class Template Reference

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

#include <Surprise/ScaleRemoveSurprise.H>

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

List of all members.

Public Member Functions

 ScaleRemoveSurprise (const ushort sizeX, const ushort sizeY, const string confFile="null")
 default constructor, call with base image size for frames
 ~ScaleRemoveSurprise ()
 default destructor
void SRSinit (const ushort sizeX, const ushort sizeY)
 is called by default constructor, sets stuff up
void SRSinputRawImage (const Image< PixRGB< FLOAT > > &rawImage, const uint frame)
 input a raw frame, give the frame number as well
void SRSinputSalMap (const Image< FLOAT > &salMap)
 input the base saliency map for this frame
void SRSsetAntiWeights ()
 input an "anti" image set that reduce the process for target features
void SRSsetAntiWeightsInteract (const uint aframes, const uint bframes)
 input an "anti" image set that reduce the process for target features
void SRScomputeBayesFeatureBias (const uint frames, const string baseFileNamePrefix, const string antiFileNamePrefix)
 set up initial bayes weights for biasing from features
void SRSopenBayesFeatureBias (const string baseFileNamePrefix, const string antiFileNamePrefix)
 Open a bayes feature bias already computed.
void SRScomputeBayesFeatureCurrent (const uint frame, const string fileNamePrefix)
 Find weights for biasing from features for current image.
void SRSprocessFrame ()
 process this movie frame
Image< PixRGB< FLOAT > > SRSgetFrame () const
 get the resulting frame processed
Image< PixRGB< FLOAT > > SRSgetDiffImage () const
 get the difference image between the input and final output
std::vector< Image< PixRGB
< FLOAT > > > 
SRSgetDiffParts () const
 compute difference difference parts for this image over rawImage
std::vector< Image< FLOAT > > SRSgetBetaParts () const
 compute the combined beta map for all scales

Detailed Description

template<class FLOAT>
class ScaleRemoveSurprise< FLOAT >

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

Definition at line 49 of file ScaleRemoveSurprise.H.


Constructor & Destructor Documentation

template<class FLOAT >
ScaleRemoveSurprise< FLOAT >::ScaleRemoveSurprise ( const ushort  sizeX,
const ushort  sizeY,
const string  confFile = "null" 
) [inline]

default constructor, call with base image size for frames

Definition at line 48 of file ScaleRemoveSurprise.C.

References readConfig::getItemValueB(), readConfig::getItemValueF(), readConfig::openFile(), and ScaleRemoveSurprise< FLOAT >::SRSinit().

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

default destructor

Definition at line 137 of file ScaleRemoveSurprise.C.


Member Function Documentation

template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias ( const uint  frames,
const string  baseFileNamePrefix,
const string  antiFileNamePrefix 
) [inline]
template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent ( const uint  frame,
const string  fileNamePrefix 
) [inline]
template<class FLOAT >
std::vector< Image< FLOAT > > ScaleRemoveSurprise< FLOAT >::SRSgetBetaParts (  )  const [inline]

compute the combined beta map for all scales

Definition at line 1676 of file ScaleRemoveSurprise.C.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getVal(), and Image< T >::resize().

template<class FLOAT >
Image< PixRGB< FLOAT > > ScaleRemoveSurprise< FLOAT >::SRSgetDiffImage (  )  const [inline]

get the difference image between the input and final output

Definition at line 1584 of file ScaleRemoveSurprise.C.

References abs(), Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), and Image< T >::resize().

template<class FLOAT >
std::vector< Image< PixRGB< FLOAT > > > ScaleRemoveSurprise< FLOAT >::SRSgetDiffParts (  )  const [inline]

compute difference difference parts for this image over rawImage

Definition at line 1607 of file ScaleRemoveSurprise.C.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getVal(), normalizeRGPolarAuto(), and Image< T >::resize().

template<class FLOAT >
Image< PixRGB< FLOAT > > ScaleRemoveSurprise< FLOAT >::SRSgetFrame (  )  const [inline]

get the resulting frame processed

Definition at line 1576 of file ScaleRemoveSurprise.C.

template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRSinit ( const ushort  sizeX,
const ushort  sizeY 
) [inline]

is called by default constructor, sets stuff up

Definition at line 143 of file ScaleRemoveSurprise.C.

References Image< T >::resize().

Referenced by ScaleRemoveSurprise< FLOAT >::ScaleRemoveSurprise().

template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRSinputRawImage ( const Image< PixRGB< FLOAT > > &  rawImage,
const uint  frame 
) [inline]

input a raw frame, give the frame number as well

Definition at line 236 of file ScaleRemoveSurprise.C.

References rawImage.

template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRSinputSalMap ( const Image< FLOAT > &  salMap  )  [inline]

input the base saliency map for this frame

Definition at line 247 of file ScaleRemoveSurprise.C.

template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias ( const string  baseFileNamePrefix,
const string  antiFileNamePrefix 
) [inline]
template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRSprocessFrame (  )  [inline]

process this movie frame

Definition at line 1452 of file ScaleRemoveSurprise.C.

References Image< T >::beginw(), Image< T >::endw(), and Raster::ReadFloat().

template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRSsetAntiWeights (  )  [inline]

input an "anti" image set that reduce the process for target features

Definition at line 255 of file ScaleRemoveSurprise.C.

References Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), mean(), and Raster::ReadFloat().

template<class FLOAT >
void ScaleRemoveSurprise< FLOAT >::SRSsetAntiWeightsInteract ( const uint  aframes,
const uint  bframes 
) [inline]

input an "anti" image set that reduce the process for target features

Definition at line 429 of file ScaleRemoveSurprise.C.

References max(), min(), Raster::ReadFloat(), and sqrt().


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