Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GetSaliency Class Reference

#include <Neuro/getSaliency.H>

Inheritance diagram for GetSaliency:

Inheritance graph
[legend]
Collaboration diagram for GetSaliency:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class allows for easy access to the list of salient points in an image.

It uses the Brain class in order to create a list of the coordinates and evolution times for the salient spots of an image.

Definition at line 60 of file getSaliency.H.

Public Member Functions

 GetSaliency (OptionManager &mgr)
 Constructor.
 ~GetSaliency ()
 Destructor.
const int compute (const Image< PixRGB< byte > > &img, const SimTime &max_time)
 Compute the table of salient spots.
const Image< float > & getSalmap ()
 Returns the initial saliency map prior to the evolution.
const std::vector< Point2D<
int > > & 
getCoords ()
 Returns the coordinates of the salient spots.
const std::vector< SimTime > & getTimes ()
 Returns the evolution times.
const std::vector< subMap > & getSubMaps ()
 Returns the submaps.

Protected Member Functions

 SIMCALLBACK_DECLARE (GetSaliency, SimEventWTAwinner)
 Callback for when a new attention shift occurs.

Protected Attributes

nub::ref< SimEventQueueitsQ
Image< float > itsSalmap
std::vector< Point2D< int > > itsCoords
std::vector< SimTimeitsTimes
std::vector< subMapitsSubMaps


Constructor & Destructor Documentation

GetSaliency::GetSaliency OptionManager mgr  ) 
 

Constructor.

Definition at line 55 of file getSaliency.C.

References ModelComponent::addSubComponent(), itsQ, OPT_RawVisualCortexChans, OPT_TaskRelevanceMapType, and OptionManager::setOptionValString().

GetSaliency::~GetSaliency  ) 
 

Destructor.

Definition at line 70 of file getSaliency.C.


Member Function Documentation

const int GetSaliency::compute const Image< PixRGB< byte > > &  img,
const SimTime max_time
 

Compute the table of salient spots.

Required parameters:

Parameters:
inp input color image
targets binary map of the same size as the input, in which targets for the focus of attention are 255 and the rest is zero. Pass an uninitialized image if you have no targets to look for.
Returns:
The number of salient spots found within max_time seconds.

Definition at line 82 of file getSaliency.C.

References e, itsCoords, itsQ, itsSalmap, itsTimes, and LINFO.

const std::vector< Point2D< int > > & GetSaliency::getCoords  ) 
 

Returns the coordinates of the salient spots.

Returns:
A vector of Point2D<int> objects - the x and y coordinates of the salient spots.

Definition at line 112 of file getSaliency.C.

References itsCoords.

const Image< float > & GetSaliency::getSalmap  ) 
 

Returns the initial saliency map prior to the evolution.

Should be called after compute.

Returns:
The saliency map prior to the evolutions, normalized between 0.0 and 1.0 - the size is the same as the input image.

Definition at line 108 of file getSaliency.C.

References itsSalmap.

const std::vector< subMap > & GetSaliency::getSubMaps  ) 
 

Returns the submaps.

Definition at line 120 of file getSaliency.C.

References downSize(), i, itsQ, itsSubMaps, NamedImage< T >::name(), rescale(), and Dims::w().

const std::vector< SimTime > & GetSaliency::getTimes  ) 
 

Returns the evolution times.

Returns:
A vector of double numbers that contains the evolution times for the salient spots.

Definition at line 116 of file getSaliency.C.

References itsTimes.

GetSaliency::SIMCALLBACK_DECLARE GetSaliency  ,
SimEventWTAwinner 
[protected]
 

Callback for when a new attention shift occurs.


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 15:50:19 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4