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

ImageSet< T > Class Template Reference

#include <Image/ImageSet.H>

Collaboration diagram for ImageSet< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class ImageSet< T >

This class implements a set of images, often used as a dyadic pyramid.

Definition at line 49 of file ImageSet.H.

Public Member Functions

 ImageSet (const uint n=0)
 Construct with a given number of empty images.
 ImageSet (const uint n, const Dims &dims, InitPolicy init=ZEROS)
 Construct with a given number of images of the given size.
template<class TT>
 ImageSet (const ImageSet< TT > &iset)
 Copy-conversion constructor.
template<class TT>
ImageSet< T > & operator= (const ImageSet< TT > &iset)
 Converting assignment.
void swap (ImageSet< T > &that)
 Swap contents with another ImageSet.
void clear ()
 Keep the same number of images, but make all images empty (0-by-0 size).
void reset (uint newDepth=0)
 Reset to a new number of images, all images will be empty (0-by-0 size).
uint size () const
 Return number of images in image set.
const Image< T > & getImage (const uint lev) const
 Get image from a given level.
const Image< T > & operator[] (const uint lev) const
 Get image from a given level (shorthand for getImage()).
Image< T > & getImageMut (const uint lev)
 Get mutable image from a given level.
Image< T > & operator[] (const uint lev)
 Get mutable image from a given level (shorthand for getImageMut()).
void push_back (Image< T > &img)
 push an image to the back of the set
void push_front (Image< T > &img)
 push an image to the front of the set
Image< T > pop_back ()
 return the last image in the set and pop it off
Image< T > pop_front ()
 return the first image in the set and pop it off
Image< T > front () const
 return the last image in the set (without popping it off)
Image< T > back () const
 return the first image in the set (without popping it off)
bool isEmpty () const
 Return true if the pyramid has no non-empty images (width*height > 0).
bool isNonEmpty () const
 Return true if the pyramid has any non-empty images (width*height > 0).
ImageSet< T > subSet (const uint a, const uint b) const
 Return a new ImageSet with images in the half-open range [a,b[.


Constructor & Destructor Documentation

template<class T>
ImageSet< T >::ImageSet const uint  n = 0  )  [inline]
 

Construct with a given number of empty images.

Definition at line 132 of file ImageSet.H.

template<class T>
ImageSet< T >::ImageSet const uint  n,
const Dims dims,
InitPolicy  init = ZEROS
[inline]
 

Construct with a given number of images of the given size.

Definition at line 138 of file ImageSet.H.

template<class T>
template<class TT>
ImageSet< T >::ImageSet const ImageSet< TT > &  iset  )  [inline]
 

Copy-conversion constructor.

Definition at line 144 of file ImageSet.H.

References ImageSet< T >::getImage(), i, and ImageSet< T >::size().


Member Function Documentation

template<class T>
Image< T > ImageSet< T >::back  )  const [inline]
 

return the first image in the set (without popping it off)

Definition at line 257 of file ImageSet.H.

References ASSERT, and ImageSet< T >::isNonEmpty().

Referenced by transformDoG().

template<class T>
void ImageSet< T >::clear  )  [inline]
 

Keep the same number of images, but make all images empty (0-by-0 size).

This returns the ImageSet to a state where isEmpty() is true.

Definition at line 169 of file ImageSet.H.

Referenced by doClear(), IntegerSimpleChannel::doInputInt(), processTrackCommand(), renderScene2(), SingleChannel::reset1(), IntegerSimpleChannel::reset1(), SingleChannel::setClipPyramid(), and POMDP::updatePerception().

template<class T>
Image< T > ImageSet< T >::front  )  const [inline]
 

return the last image in the set (without popping it off)

Definition at line 249 of file ImageSet.H.

References ASSERT, and ImageSet< T >::isNonEmpty().

template<class T>
const Image< T > & ImageSet< T >::getImage const uint  lev  )  const [inline]
 

Get image from a given level.

Definition at line 189 of file ImageSet.H.

References ASSERT.

Referenced by ScaleSpace::getBlurredImage(), ScaleSpace::getDoGImage(), ScaleSpace::getTwoSigmaImage(), ImageSet< T >::ImageSet(), intgBuildPyrGaussian(), ImageSet< T >::operator=(), and ImageSet< T >::operator[]().

template<class T>
Image< T > & ImageSet< T >::getImageMut const uint  lev  )  [inline]
 

Get mutable image from a given level.

Definition at line 202 of file ImageSet.H.

References ASSERT.

Referenced by apply_sift_on_patches(), ContourChannel::doInput(), and ImageSet< T >::operator[]().

template<class T>
bool ImageSet< T >::isEmpty  )  const [inline]
 

Return true if the pyramid has no non-empty images (width*height > 0).

Definition at line 265 of file ImageSet.H.

References ImageSet< T >::isNonEmpty().

Referenced by OrientationChannel::doInteractions(), IntegerSimpleChannel::getRawCSmapInt(), ImgVec2mexArr(), IntegerSimpleChannel::outputAvailable(), IntegerSimpleChannel::saveResults(), and DirectFeedChannel::setCoeff().

template<class T>
bool ImageSet< T >::isNonEmpty  )  const [inline]
 

Return true if the pyramid has any non-empty images (width*height > 0).

Definition at line 269 of file ImageSet.H.

References i.

Referenced by ImageSet< T >::back(), centerSurround(), centerSurroundDiff(), centerSurroundDiffSingleOpponent(), centerSurroundSingleOpponent(), ImageSet< T >::front(), ChannelMaps::hasPyramid(), intgCenterSurround(), ImageSet< T >::isEmpty(), ImageSet< T >::pop_back(), and ImageSet< T >::pop_front().

template<class T>
template<class TT>
ImageSet< T > & ImageSet< T >::operator= const ImageSet< TT > &  iset  )  [inline]
 

Converting assignment.

Definition at line 152 of file ImageSet.H.

References ImageSet< T >::getImage(), i, and ImageSet< T >::size().

template<class T>
Image< T > & ImageSet< T >::operator[] const uint  lev  )  [inline]
 

Get mutable image from a given level (shorthand for getImageMut()).

Definition at line 210 of file ImageSet.H.

References ImageSet< T >::getImageMut().

template<class T>
const Image< T > & ImageSet< T >::operator[] const uint  lev  )  const [inline]
 

Get image from a given level (shorthand for getImage()).

Definition at line 197 of file ImageSet.H.

References ImageSet< T >::getImage().

template<class T>
Image< T > ImageSet< T >::pop_back  )  [inline]
 

return the last image in the set and pop it off

Definition at line 229 of file ImageSet.H.

References ASSERT, and ImageSet< T >::isNonEmpty().

template<class T>
Image< T > ImageSet< T >::pop_front  )  [inline]
 

return the first image in the set and pop it off

Definition at line 239 of file ImageSet.H.

References ASSERT, and ImageSet< T >::isNonEmpty().

Referenced by transformDoG().

template<class T>
void ImageSet< T >::push_back Image< T > &  img  )  [inline]
 

push an image to the back of the set

Definition at line 215 of file ImageSet.H.

Referenced by BeoSub::Decode(), ObjRecBOF::extractGaborFeatures(), POMDP::init(), LGN::init(), Ganglion::init(), main(), BeoMap::makePanorama(), mexFunction(), ObjRecSPM::ObjRecSPM(), processTrackCommand(), renderScene2(), SimulationViewerStats::save1(), submain(), BeoSubQtMainForm::taskDecode(), and transformDoG().

template<class T>
void ImageSet< T >::push_front Image< T > &  img  )  [inline]
 

push an image to the front of the set

Definition at line 222 of file ImageSet.H.

template<class T>
void ImageSet< T >::reset uint  newDepth = 0  )  [inline]
 

Reset to a new number of images, all images will be empty (0-by-0 size).

Definition at line 177 of file ImageSet.H.

Referenced by Beobot2GistSalMasterI::Beobot2GistSalMasterI(), SimulationViewerStd::reset1(), SimulationViewerNerdCam::reset1(), DirectFeedChannel::reset1(), SimulationViewerI::SimulationViewerI(), VisualCortexEyeMvt::start1(), and DisparityChannel::start1().

template<class T>
uint ImageSet< T >::size  )  const [inline]
 

Return number of images in image set.

Definition at line 185 of file ImageSet.H.

Referenced by TCPmessage::addImageSet(), arrcat(), buildPyrGabor(), buildPyrOriented(), buildPyrOrientedFromLaplacian(), Regions::calcRegionLikelihood(), centerSurround(), centerSurroundDiff(), centerSurroundDiffSingleOpponent(), centerSurroundSingleOpponent(), clampedDiff(), DirectFeedChannel::computeOutput(), CudaImageSet< T >::CudaImageSet(), doAddWeighted(), doApplyBiases(), doClear(), doEnergyNorm(), MSTChannel::doInput(), JunctionChannel::doInput(), doLowThresh(), doLowThreshAbs(), doOneNormalize(), doRectify(), doSqrt(), SimulationViewerStd::drawMegaCombo(), ObjRecSPM::extractFeatures(), ObjRecBOF::extractGaborFeatures(), ScaleSpace::findKeypoints(), ScaleSpace::getNumBlurredImages(), ScaleSpace::getNumDoGImages(), VisualCortexEyeMvt::getOutput(), POMDP::getPerception(), POMDP::getPropAction(), getPyrPixel(), getPyrPixelNI(), ScaleSpace::getTwoSigmaImage(), IT::GHT(), ImageSet< T >::ImageSet(), ImageSet2cellArr(), ImgVec2mexArr(), DirectFeedChannel::inputPyramid(), intgBuildPyrOrientedFromLaplacian(), intgCenterSurround(), intgDoLowThresh(), intgDoLowThreshAbs(), intgDoRectify(), isDyadic(), isHomogeneous(), Layout< T >::Layout(), main(), makeImageArray(), BeoMap::makePanorama(), mean(), V4d::mergeBias(), DirectFeedChannel::numSubmaps(), operator *=(), operator+=(), operator-=(), operator/=(), ImageSet< T >::operator=(), processTrackCommand(), rangeOf(), reduce(), rescale(), BeoSubTaskDecoder::runDecoder(), SimulationViewerStats::save1(), RetinaStd::save1(), SingleChannel::saveResults(), IntegerSimpleChannel::saveResults(), SaliencyMT::setSMBias(), setupTrackingResultPacket(), SingleChannel::storeSubmapCache(), submain(), ImageSet< T >::subSet(), sum(), SingleChannelBeo::waitForOutput(), and weightedBlur().

template<class T>
ImageSet< T > ImageSet< T >::subSet const uint  a,
const uint  b
const [inline]
 

Return a new ImageSet with images in the half-open range [a,b[.

Definition at line 279 of file ImageSet.H.

References ASSERT, i, ImageSet< T >::itsLevels, and ImageSet< T >::size().

Referenced by arrcat(), and IntegerSimpleChannel::doInputInt().

template<class T>
void ImageSet< T >::swap ImageSet< T > &  that  )  [inline]
 

Swap contents with another ImageSet.

Definition at line 162 of file ImageSet.H.

References ImageSet< T >::itsLevels.


The documentation for this class was generated from the following file:
Generated on Sat Nov 7 13:35:27 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4