RemoveSurprise< PIXTYPE, BETATYPE, FLOAT > Class Template Reference

smooth surprise in a movie More...

#include <Surprise/RemoveSurprise.H>

Collaboration diagram for RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RemoveSurprise (const ushort sizeX, const ushort sizeY)
void RSinit (const ushort sizeX, const ushort sizeY)
 Init the basic variables.
void RSuseTrueKalman (const bool useTK)
 set true to use a more true kalman filter
void RSuseMaxLevel (const bool useML)
 use max level from conspicuity map rather than sum the levels
void RSsetConspicBias (const FLOAT CO, const FLOAT MO, const FLOAT OR, const FLOAT IN)
 set the bias to something other than 1.0F
void RSsetConspicBias (const FLOAT IN, const FLOAT DR, const FLOAT FL, const FLOAT GA, const FLOAT RG, const FLOAT BY)
 set the bias to something other than 1.0F
void RSsetAxisBias (const FLOAT X, const FLOAT Y, const FLOAT Z)
 set the bias over a single axis
void RSsetH2SVBias (const FLOAT H1, const FLOAT H2, const FLOAT S, const FLOAT V)
 set the bias per H2SV channel
void RSsetLambda (const FLOAT lambda)
 set the decay term over the beta map
void RSsetDesatBias (const FLOAT desat)
 set the bias to desaturate color at surprising locations
void RSinputRawImage (const Image< PixRGB< FLOAT > > &rawImage, const uint frame)
 input the raw image frame for processing
void RSinputSalMap (const Image< FLOAT > &salMap)
 input the salmap for this frame
void RSinputConspicCO (const Image< FLOAT > &conspicCO)
 input the color conspicuity map for this frame
void RSinputConspicMO (const Image< FLOAT > &conspicMO)
 input the motion conspicuity map for this frame
void RSinputConspicOR (const Image< FLOAT > &conspicOR)
 input the orientation conspicuity map for this frame
void RSinputConspicIN (const Image< FLOAT > &conspicIN)
 input the intensity conspicuity map for this frame
void RSinputConspicDR (const Image< FLOAT > &conspicDR)
 input the orientation conspicuity map for this frame
void RSinputConspicFL (const Image< FLOAT > &conspicFL)
 input the orientation conspicuity map for this frame
void RSinputConspicGA (const Image< FLOAT > &conspicGA)
 input the orientation conspicuity map for this frame
void RSinputConspicRG (const Image< FLOAT > &conspicRG)
 input the orientation conspicuity map for this frame
void RSinputConspicBY (const Image< FLOAT > &conspicBY)
 input the orientation conspicuity map for this frame
void RSinputBayesWeightImage (const Image< FLOAT > &bayesImage)
 Input a bayes weight image to bias surprise reduction.
void RSsetCorrWeightMat (const std::vector< std::vector< FLOAT > > corAnti, const std::vector< std::vector< FLOAT > > corBase)
 Input correlationMatrices for weight augmentation.
void RScreateSepFilters (const FLOAT spatSigma, const FLOAT tempSigma, const FLOAT stdDevSize)
 create the seperable filters per image
void RSfindConvolutionEndPoints ()
 find parameters over convolution
void RSprocessFrame ()
 process a single frame of video
void RSprocessFrameSeperable ()
 process a single frame of video using seperable filters
void RSseperateConv (const char axis)
 process each axis by itself
FLOAT RScomputeCor (const FLOAT IN, const FLOAT DR, const FLOAT FL, const FLOAT GA, const FLOAT RG, const FLOAT BY, const short idx) const
 compute a new weight based on feature correlation matrix, used in f bias
Image< PixRGB< FLOAT > > RSgetFrame ()
 process and return the final image
Image< PixRGB< FLOAT > > RSgetOutImage () const
 process and return the filtered image
Image< PIXTYPE > RSgetRawOutImage () const
 get the raw PIXTYPE output image
Image< PIXTYPE > RSgetRawInImage () const
 get the input image converted as PIXTYPE
Image< BETATYPE > RSgetBetaImage () const
 get the beta image of smoothed salMaps used in filter

Detailed Description

template<class PIXTYPE, class BETATYPE, class FLOAT>
class RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >

smooth surprise in a movie

Definition at line 61 of file RemoveSurprise.H.


Member Function Documentation

template<class PIXTYPE , class BETATYPE , class FLOAT>
FLOAT RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RScomputeCor ( const FLOAT  IN,
const FLOAT  DR,
const FLOAT  FL,
const FLOAT  GA,
const FLOAT  RG,
const FLOAT  BY,
const short  idx 
) const [inline]

compute a new weight based on feature correlation matrix, used in f bias

Definition at line 1495 of file RemoveSurprise.C.

Referenced by RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrameSeperable().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RScreateSepFilters ( const FLOAT  spatSigma,
const FLOAT  tempSigma,
const FLOAT  stdDevSize 
) [inline]

create the seperable filters per image

Definition at line 567 of file RemoveSurprise.C.

References exp(), and sqrt().

template<class PIXTYPE , class BETATYPE , class FLOAT >
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSfindConvolutionEndPoints (  )  [inline]

find parameters over convolution

Definition at line 657 of file RemoveSurprise.C.

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

template<class PIXTYPE , class BETATYPE , class FLOAT >
Image< BETATYPE > RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetBetaImage (  )  const [inline]

get the beta image of smoothed salMaps used in filter

Definition at line 1605 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT >
Image< PixRGB< FLOAT > > RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetFrame (  )  [inline]

process and return the final image

Definition at line 1554 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT >
Image< PixRGB< FLOAT > > RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetOutImage (  )  const [inline]

process and return the filtered image

Definition at line 1568 of file RemoveSurprise.C.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::endw(), Image< T >::getHeight(), Image< T >::getWidth(), and Image< T >::resize().

template<class PIXTYPE , class BETATYPE , class FLOAT >
Image< PIXTYPE > RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetRawInImage (  )  const [inline]

get the input image converted as PIXTYPE

Definition at line 1597 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT >
Image< PIXTYPE > RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetRawOutImage (  )  const [inline]

get the raw PIXTYPE output image

Definition at line 1589 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT >
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinit ( const ushort  sizeX,
const ushort  sizeY 
) [inline]

Init the basic variables.

Definition at line 173 of file RemoveSurprise.C.

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

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputBayesWeightImage ( const Image< FLOAT > &  bayesImage  )  [inline]

Input a bayes weight image to bias surprise reduction.

Definition at line 543 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicBY ( const Image< FLOAT > &  conspicBY  )  [inline]

input the orientation conspicuity map for this frame

Definition at line 518 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicCO ( const Image< FLOAT > &  conspicCO  )  [inline]

input the color conspicuity map for this frame

Definition at line 321 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicDR ( const Image< FLOAT > &  conspicDR  )  [inline]

input the orientation conspicuity map for this frame

Definition at line 418 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicFL ( const Image< FLOAT > &  conspicFL  )  [inline]

input the orientation conspicuity map for this frame

Definition at line 443 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicGA ( const Image< FLOAT > &  conspicGA  )  [inline]

input the orientation conspicuity map for this frame

Definition at line 468 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicIN ( const Image< FLOAT > &  conspicIN  )  [inline]

input the intensity conspicuity map for this frame

Definition at line 393 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicMO ( const Image< FLOAT > &  conspicMO  )  [inline]

input the motion conspicuity map for this frame

Definition at line 345 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicOR ( const Image< FLOAT > &  conspicOR  )  [inline]

input the orientation conspicuity map for this frame

Definition at line 369 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicRG ( const Image< FLOAT > &  conspicRG  )  [inline]

input the orientation conspicuity map for this frame

Definition at line 493 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputRawImage ( const Image< PixRGB< FLOAT > > &  rawImage,
const uint  frame 
) [inline]

input the raw image frame for processing

Definition at line 244 of file RemoveSurprise.C.

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

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputSalMap ( const Image< FLOAT > &  salMap  )  [inline]

input the salmap for this frame

Definition at line 297 of file RemoveSurprise.C.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class PIXTYPE , class BETATYPE , class FLOAT >
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrame (  )  [inline]

process a single frame of video

Definition at line 747 of file RemoveSurprise.C.

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

template<class PIXTYPE , class BETATYPE , class FLOAT >
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrameSeperable (  )  [inline]
template<class PIXTYPE , class BETATYPE , class FLOAT >
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSseperateConv ( const char  axis  )  [inline]

process each axis by itself

Definition at line 1110 of file RemoveSurprise.C.

References Image< T >::beginw(), Image< T >::endw(), H1, and H2.

Referenced by RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrameSeperable().

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSsetAxisBias ( const FLOAT  X,
const FLOAT  Y,
const FLOAT  Z 
) [inline]

set the bias over a single axis

Definition at line 153 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSsetConspicBias ( const FLOAT  IN,
const FLOAT  DR,
const FLOAT  FL,
const FLOAT  GA,
const FLOAT  RG,
const FLOAT  BY 
) [inline]

set the bias to something other than 1.0F

Definition at line 133 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSsetConspicBias ( const FLOAT  CO,
const FLOAT  MO,
const FLOAT  OR,
const FLOAT  IN 
) [inline]

set the bias to something other than 1.0F

Definition at line 116 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSsetCorrWeightMat ( const std::vector< std::vector< FLOAT > >  corAnti,
const std::vector< std::vector< FLOAT > >  corBase 
) [inline]

Input correlationMatrices for weight augmentation.

Definition at line 554 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSsetDesatBias ( const FLOAT  desat  )  [inline]

set the bias to desaturate color at surprising locations

Definition at line 233 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSsetH2SVBias ( const FLOAT  H1,
const FLOAT  H2,
const FLOAT  S,
const FLOAT  V 
) [inline]

set the bias per H2SV channel

Definition at line 162 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT>
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSsetLambda ( const FLOAT  lambda  )  [inline]

set the decay term over the beta map

Definition at line 225 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT >
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSuseMaxLevel ( const bool  useML  )  [inline]

use max level from conspicuity map rather than sum the levels

Definition at line 107 of file RemoveSurprise.C.

template<class PIXTYPE , class BETATYPE , class FLOAT >
void RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSuseTrueKalman ( const bool  useTK  )  [inline]

set true to use a more true kalman filter

Definition at line 98 of file RemoveSurprise.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:46 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3