simple-saliency.C File Reference

#include "Util/log.H"
#include "Util/sformat.H"
#include "Image/PixelsTypes.H"
#include "Image/Image.H"
#include "Image/ImageSet.H"
#include "Image/ColorOps.H"
#include "Image/PyramidOps.H"
#include "Image/PyrBuilder.H"
#include "Image/ShapeOps.H"
#include "Image/fancynorm.H"
#include "Image/ImageSetOps.H"
#include "Raster/Raster.H"
#include "Image/DrawOps.H"
#include "Image/MathOps.H"
#include "Image/Normalize.H"
Include dependency graph for simple-saliency.C:

Go to the source code of this file.

Defines

#define sml   4
#define level_min   2
#define level_max   4
#define delta_min   3
#define delta_max   4
#define maxdepth   (level_max + delta_max + 1)
#define num_feat_maps   ((level_max - level_min + 1) * (delta_max - delta_min + 1))
#define motionlowthresh   3.0F

Functions

Image< float > computeLuminance (const Image< PixRGB< byte > > &img)
 Compute the luminance of an RGB image, and convert from byte to float pixels.
Image< float > normalizMAP (const Image< float > &ima, const Dims &dims, const char *label)
 Max-normalize a feature map or conspicuity map.
Image< float > computeCMAP (const Image< float > &fima, const PyramidType ptyp, const char *label, const bool absol, const float ori=0.0F)
Image< float > computeMMAP (ImageSet< float > &pyr, const char *label)
int main (const int argc, const char **argv)
 Simple saliency map computation.

Detailed Description

A very simple saliency map implementation

Definition in file simple-saliency.C.


Function Documentation

Image<float> computeLuminance ( const Image< PixRGB< byte > > &  img  ) 

Compute the luminance of an RGB image, and convert from byte to float pixels.

note that we could as well use luminance() defined in Image/ColorOps.H except that the rounding side effects are slightly different. This function corresponds to the one we use in our master code (it's burried in Channels/InputFrame.C).

Definition at line 121 of file simple-saliency.C.

References lum, and NO_INIT.

Referenced by main().

int main ( const int  argc,
const char **  argv 
)
Image<float> normalizMAP ( const Image< float > &  ima,
const Dims dims,
const char *  label 
)

Max-normalize a feature map or conspicuity map.

Definition at line 138 of file simple-saliency.C.

References downSize(), getMinMax(), Dims::isNonEmpty(), maxNormalize(), MAXNORMMAX, MAXNORMMIN, and VCXNORM_MAXNORM.

Referenced by main().

Generated on Sun May 8 08:42:42 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3