ImageSet< T > Class Template Reference

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

#include <Image/ImageSet.H>

Collaboration diagram for ImageSet< T >:
Collaboration graph
[legend]

List of all members.

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 (const Image< T > &img)
 push an image to the back of the set
void push_front (const 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[.

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.


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

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.

References ImageSet< T >::swap().

Referenced by doClear(), Structure< T >::evolve(), SingleChannel::reset1(), IntegerSimpleChannel::reset1(), and SingleChannel::setClipPyramid().

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]
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 ImageSet< T >::operator[]().

template<class T >
bool ImageSet< T >::isEmpty (  )  const [inline]
template<class T >
bool ImageSet< T >::isNonEmpty (  )  const [inline]
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(), 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().

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

push an image to the back of the set

Definition at line 215 of file ImageSet.H.

Referenced by Structure< T >::addSub(), main(), BeoMap::makePanorama(), DPM::readModel(), SimulationViewerStats::save1(), and submain().

template<class T>
void ImageSet< T >::push_front ( const 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.

References ImageSet< T >::swap().

Referenced by SimulationViewerNerdCam::reset1(), SimulationViewerStd::reset1(), DirectFeedChannel::reset1(), 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(), SimEventAttentionGuidanceMapOutput::agm(), SimEventAttentionGuidanceMapOutput::allAgm(), OriChamferMatching::buildIntegralDistances(), buildPyrGabor(), centerSurround(), centerSurroundDiff(), centerSurroundDiffSingleOpponent(), centerSurroundSingleOpponent(), clampedDiff(), DirectFeedChannel::computeOutput(), doAddWeighted(), doApplyBiases(), doClear(), doEnergyNorm(), MSTChannel::doInput(), JunctionChannel::doInput(), doLowThresh(), doLowThreshAbs(), doOneNormalize(), doRectify(), doSqrt(), doSquared(), SimulationViewerStd::drawMegaCombo(), ScaleSpace::findKeypoints(), Geons3D::getEdgeProb(), ScaleSpace::getNumBlurredImages(), ScaleSpace::getNumDoGImages(), VisualCortexEyeMvt::getOutput(), getScaleSpacePixel(), ScaleSpace::getTwoSigmaImage(), V4d::GHT(), ImageSet< T >::ImageSet(), ImageSet2cellArr(), ImgVec2mexArr(), Structure< T >::input(), Structure< T >::inputExc(), Structure< T >::inputInh(), DirectFeedChannel::inputPyramid(), main(), makeImageArray(), BeoMap::makePanorama(), mean(), V4d::mergeBias(), SimEventAttentionGuidanceMapOutput::numMaps(), DirectFeedChannel::numSubmaps(), operator*=(), operator+=(), operator-=(), operator/=(), ImageSet< T >::operator=(), rangeOf(), reduce(), rescale(), BeoSubTaskDecoder::runDecoder(), SimulationViewerStats::save1(), RetinaAdapter::save1(), SingleChannel::saveResults(), IntegerSimpleChannel::saveResults(), splitPosNeg(), SimulationViewerEyeMvtNeuro::start1(), SingleChannel::storeSubmapCache(), ImageSet< T >::subSet(), sum(), SimEventAttentionGuidanceMapOutput::toString(), RetinaCT::transform(), OriChamferMatching::updateOriCost(), and SingleChannelBeo::waitForOutput().

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, and ImageSet< T >::size().

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

Swap contents with another ImageSet.

Definition at line 162 of file ImageSet.H.

Referenced by ImageSet< T >::clear(), and ImageSet< T >::reset().


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:43:22 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3