
remove surprise using scales, FLOAT is either float or double for precision More...
#include <Surprise/ScaleRemoveSurprise.H>

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 | |
remove surprise using scales, FLOAT is either float or double for precision
Definition at line 49 of file ScaleRemoveSurprise.H.
| 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().
| ScaleRemoveSurprise< FLOAT >::~ScaleRemoveSurprise | ( | ) | [inline] |
default destructor
Definition at line 137 of file ScaleRemoveSurprise.C.
| void ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias | ( | const uint | frames, | |
| const string | baseFileNamePrefix, | |||
| const string | antiFileNamePrefix | |||
| ) | [inline] |
set up initial bayes weights for biasing from features
Definition at line 813 of file ScaleRemoveSurprise.C.
References Image< T >::beginw(), corrEigenMatrix(), Image< T >::endw(), FLOAT_NORM_0_255, FLOAT_NORM_PRESERVE, Image< T >::getHeight(), getPearsonRMatrix(), Image< T >::getVal(), Image< T >::getWidth(), normalizeFloat(), normalizeRGPolarAuto(), Raster::ReadGray(), Image< T >::resize(), Raster::WriteFloat(), Raster::WriteGray(), and Raster::WriteRGB().
| void ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent | ( | const uint | frame, | |
| const string | fileNamePrefix | |||
| ) | [inline] |
Find weights for biasing from features for current image.
Definition at line 1226 of file ScaleRemoveSurprise.C.
References FLOAT_NORM_0_255, getAugmentedBeliefBayesImage(), Image< T >::getHeight(), getLikelyhoodImage(), getNormalizedBayesImage(), Image< T >::getVal(), Image< T >::getWidth(), normalizeFloat(), Raster::ReadGray(), Image< T >::setVal(), and Raster::WriteGray().
| 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().
| 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().
| 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().
| Image< PixRGB< FLOAT > > ScaleRemoveSurprise< FLOAT >::SRSgetFrame | ( | ) | const [inline] |
get the resulting frame processed
Definition at line 1576 of file ScaleRemoveSurprise.C.
| 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().
| 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.
| 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.
| void ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias | ( | const string | baseFileNamePrefix, | |
| const string | antiFileNamePrefix | |||
| ) | [inline] |
Open a bayes feature bias already computed.
Definition at line 1163 of file ScaleRemoveSurprise.C.
References Image< T >::beginw(), Image< T >::endw(), Image< T >::getHeight(), getPearsonRMatrix(), Image< T >::getWidth(), normalizeRGPolarAuto(), Raster::ReadFloat(), Image< T >::resize(), and Raster::WriteRGB().
| 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().
| 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().
| 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().
1.6.3