#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"
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. |
A very simple saliency map implementation
Definition in file simple-saliency.C.
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.
Referenced by main().
int main | ( | const int | argc, | |
const char ** | argv | |||
) |
Simple saliency map computation.
This is a barebones implementation of the Itti, Koch & Niebur (1998) saliency map algorithm
Definition at line 218 of file simple-saliency.C.
References absDiff(), ReichardtPyrBuilder< T >::build(), colGreyCombo(), computeLuminance(), Raster::fileExists(), FLOAT_NORM_0_255, FLOAT_NORM_PRESERVE, Gaussian5, getMinMax(), getRGBY(), Image< T >::initialized(), inplaceNormalize(), lum, maxNormalize(), normalizMAP(), Oriented9, Raster::ReadRGB(), sformat(), VCXNORM_MAXNORM, Raster::WriteFloat(), and Raster::WriteRGB().
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().