This class implements a set of images, often used as a dyadic pyramid. More...
#include <Image/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 (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[. |
This class implements a set of images, often used as a dyadic pyramid.
Definition at line 49 of file ImageSet.H.
Construct with a given number of empty images.
Definition at line 132 of file ImageSet.H.
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.
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().
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().
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().
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().
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(), ImageSet< T >::operator=(), and ImageSet< T >::operator[]().
Get mutable image from a given level.
Definition at line 202 of file ImageSet.H.
References ASSERT.
Referenced by ImageSet< T >::operator[]().
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().
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.
Referenced by ImageSet< T >::back(), centerSurround(), centerSurroundDiff(), centerSurroundDiffSingleOpponent(), centerSurroundSingleOpponent(), ImageSet< T >::front(), ChannelMaps::hasPyramid(), ImageSet< T >::isEmpty(), ImageSet< T >::pop_back(), and ImageSet< T >::pop_front().
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().
Get mutable image from a given level (shorthand for getImageMut()).
Definition at line 210 of file ImageSet.H.
References ImageSet< T >::getImageMut().
Get image from a given level (shorthand for getImage()).
Definition at line 197 of file ImageSet.H.
References ImageSet< T >::getImage().
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().
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().
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().
push an image to the front of the set
Definition at line 222 of file ImageSet.H.
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().
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().
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().
Swap contents with another ImageSet.
Definition at line 162 of file ImageSet.H.
Referenced by ImageSet< T >::clear(), and ImageSet< T >::reset().