mbariFunctions.C File Reference

#include "MBARI/mbariFunctions.H"
#include "Image/ColorOps.H"
#include "Image/FilterOps.H"
#include "Image/Image.H"
#include "Image/MathOps.H"
#include "Image/Transforms.H"
#include "Media/MediaSimEvents.H"
#include "MBARI/BitObject.H"
#include "Neuro/Brain.H"
#include "Neuro/NeuroSimEvents.H"
#include "Simulation/SimEventQueue.H"
#include "Util/Timer.H"
#include "rutz/shared_ptr.h"
Include dependency graph for mbariFunctions.C:

Go to the source code of this file.

Functions

std::list< BitObjectextractBitObjects (const Image< byte > &bImg, Rectangle region, int minSize)
 extract a set of BitObjects from bitImg, which intersect region
std::list< BitObjectgetLargestObjects (const Image< byte > &bImg, Rectangle region, int numObjects, int minSize)
std::list< BitObjectgetSalRegions (nub::soft_ref< Brain > brain, nub::soft_ref< SimEventQueue > q, const Image< PixRGB< byte > > &img, const Image< byte > &bitImg, float maxEvolveTime, int maxNumSalSpots, int minSize)
 returns the BitObjects at the most salient points
Image< byteshowAllObjects (std::list< BitObject > &objs)
 all BitObjects in objs are drawninto the return image

Detailed Description

a few functions used by MBARI programs

Definition in file mbariFunctions.C.


Function Documentation

std::list<BitObject> extractBitObjects ( const Image< byte > &  bitImg,
Rectangle  region,
int  minSize = 0 
)

extract a set of BitObjects from bitImg, which intersect region

bitImg is flooded starting from each point within region, and each BitObject exceeding the minSize is stored in the list of BitObjects that is returned.

Definition at line 55 of file mbariFunctions.C.

References Rectangle::bottomO(), Timer::get(), BitObject::getArea(), Image< T >::getBounds(), Image< T >::getDims(), Rectangle::getOverlap(), Image< T >::getVal(), Rectangle::left(), replaceVals(), Timer::reset(), BitObject::reset(), Rectangle::rightO(), takeMax(), Rectangle::top(), and ZEROS.

Referenced by getSalRegions(), and VisualEventSet::updateEvents().

std::list<BitObject> getSalRegions ( nub::soft_ref< Brain brain,
nub::soft_ref< SimEventQueue q,
const Image< PixRGB< byte > > &  img,
const Image< byte > &  bitImg,
float  maxEvolveTime,
int  maxNumSalSpots,
int  minSize = 0 
)

returns the BitObjects at the most salient points

Parameters:
brain the brain object used for the saliency computation
img the image scanned for salient locations
bitImg a binary image used for extracting BitObjects at the salient locations
maxEvolveTime the maximum evolution time for the saliency map
maxNumSalSpots the maximum number of salient locations extracted
the minimum size of a BitObject to be considered

Definition at line 135 of file mbariFunctions.C.

References extractBitObjects(), nub::soft_ref< T >::get(), Image< T >::getBounds(), Rectangle::getOverlap(), Point2D< T >::i, MC_RECURSE, nub::soft_ref< T >::reset(), and Rectangle::tlbrI().

Image<byte> showAllObjects ( std::list< BitObject > &  objs  ) 

all BitObjects in objs are drawninto the return image

Definition at line 216 of file mbariFunctions.C.

References Image< T >::initialized(), and takeMax().

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