GetSaliency Class Reference

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

#include <Neuro/getSaliency.H>

Inheritance diagram for GetSaliency:
Inheritance graph
[legend]
Collaboration diagram for GetSaliency:
Collaboration graph
[legend]

List of all members.

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.
Image< float > getVCXmap (const Image< PixRGB< byte > > &img)
 Return the vc map.

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

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.


Constructor & Destructor Documentation

GetSaliency::GetSaliency ( OptionManager mgr  ) 

Constructor.

Definition at line 55 of file getSaliency.C.

References ModelComponent::addSubComponent().

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.

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.

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.

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

Returns the submaps.

Definition at line 120 of file getSaliency.C.

References downSize(), 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.

Image< float > GetSaliency::getVCXmap ( const Image< PixRGB< byte > > &  img  ) 

Return the vc map.

Definition at line 146 of file getSaliency.C.

References InputFrame::fromRgb(), rutz::make_shared(), and SEQ_ANY.

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 Sun May 8 08:21:54 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3