Image< T > Class Template Reference

Generic image template class. More...

#include <Image/Image.H>

Inheritance diagram for Image< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Constructors, destructors, assignment

 Image (const T *inarray, int width, int height)
 Construct from C array.
 Image (const T *inarray, const Dims &dims)
 Construct from C array.
 Image (int width, int height, InitPolicy init)
 Allocates memory for given size, and optionally zero-clear that memory.
 Image (const Dims &dims, InitPolicy init)
 Constructor that only allocates memory for given size.
 Image ()
 Construct an empty (0-by-0) image (useful for arrays of Images).
 Image (const Image< T > &A)
 Copy constructor.
template<class T2 >
 Image (const Image< T2 > &A)
 Conversion copy constructor.
Image< T > & operator= (const Image< T > &A)
 Assigment operator.
template<class T2 >
Image< T > & operator= (const Image< T2 > &A)
 Conversion assigment operator.
 ~Image ()
 Destructor.
void freeMem ()
 Free memory and switch to uninitialized state.
Memory management functions

void swap (Image< T > &other)
 Swap the contents of two images.
void attach (T *array, const int width, const int height)
 Use existing memory.
void detach ()
 Detach previously attach()'ed image.
Image< T > deepcopy () const
 Return a new image object with a deep copy of the underlying data.
void resize (const Dims &dims, const bool clear=false)
 Free mem and realloc new array (array contents are lost).
void resize (const int width, const int height, const bool clear=false)
 Free mem and realloc new array (array contents are lost).
Access functions

bool initialized () const
 Check whether image is non-empty (i.e., non-zero height and width).
int getSize () const
 Get image size (width * height).
uint size () const
 Get image size (width * height).
int getWidth () const
 Get image width.
int getHeight () const
 Get image height.
const DimsgetDims () const
 Get image width+height in Dims struct.
Rectangle getBounds () const
 Get image bounds as a rectangle with upper-left point at (0,0) and dims matching the image dims.
template<class C >
bool isSameSize (const C &other) const
 Check if *this is the same size as the other thing.
bool is1D () const
 Check if the image is 1D, i.e., width == 1 or height == 1.
bool isVector () const
 Check if the image is a vector, i.e., width == 1.
bool isTransposedVector () const
 Check if the image is a transposed vector, i.e., height == 1.
bool isSquare () const
 Check if the image is square, i.e., width == height.
T & operator[] (const int index)
 Access image elements through C array index interface.
const T & operator[] (const int index) const
 Access image elements through C array index interface.
T & operator[] (const Point2D< int > &p)
 Access image elements through C array index interface.
const T & operator[] (const Point2D< int > &p) const
 Access image elements through C array index interface.
const T & getVal (const int index) const
 Get pixel value at index in image.
const T & getVal (const int x, const int y) const
 Get pixel value at (x, y) in image.
const T & getVal (const Point2D< int > &p) const
 Get pixel value at specified coordinates in image.
template<class T2 >
void getVal (const int x, const int y, T2 &val) const
 Get value at (x,y), put in val rather that return it.
getValInterp (const float x, const float y) const
 Get pixel value at (x, y) in image with bilinear interpolation.
getValInterp (const Point2D< float > &p) const
 Get pixel value at (x, y) in image with bilinear interpolation.
getValInterpScaled (const Point2D< int > &p, const Dims &pdims) const
 Get pixel value with bilinear interpolation at a location (x,y) specified in a different Dims scale.
template<class T2 >
void setVal (const int index, const T2 &value)
 Set value in image at index.
template<class T2 >
void setVal (const int x, const int y, const T2 &value)
 Set value in image at (x, y).
template<class T2 >
void setVal (const Point2D< int > &p, const T2 &value)
 Set value in image at Point2D<int>
const T * getArrayPtr () const
 Returns read-only (const) pointer to internal image array.
T * getArrayPtr ()
 Returns read/write (non-const) pointer to internal image array.
bool coordsOk (const Point2D< int > &P) const
 Test whether point falls inside array boundaries.
bool coordsOk (const int i, const int j) const
 Test whether point falls inside array boundaries.
bool coordsOk (const Point2D< float > &p) const
 Test whether point falls inside array boundaries.
bool coordsOk (const float i, const float j) const
 Test whether point falls inside array boundaries.
bool rectangleOk (const Rectangle &rect) const
 Test whether rectangle fits in image.
Operator overloads and basic image manipulations

Note that many other image manipulation functions are available in Image_ColorOps.H, Image_FilterOps.H, Image_IO.H, Image_MathOps.H, Image_Omni.H, Image_ShapeOps.H, Image_Transforms.H, and Image_Conversions.H.

bool operator== (const Image< T > &that) const
 Equality: true if the images are the same size and all pixels are equal.
Image< T > & operator+= (const T &val)
 Add constant to image, clamp result as necessary.
Image< T > & operator-= (const T &val)
 Subtract constant from image, clamp result as necessary.
Image< T > & operator*= (const T &val)
 Multiply image by constant, clamp result as necessary.
Image< T > & operator/= (const T &val)
 Divide image by constant, clamp result as necessary.
Image< T > & operator<<= (const unsigned int nbits)
 Bit-shift left by constant (type T must have operator<<()).
Image< T > & operator>>= (const unsigned int nbits)
 Bit-shift right by constant (type T must have operator>>()).
template<class T2 >
Image< T > & operator+= (const Image< T2 > &A)
 Add image to image, clamp result as necessary.
template<class T2 >
Image< T > & operator-= (const Image< T2 > &A)
 Subtract image from image, clamp result as necessary.
template<class T2 >
Image< T > & operator*= (const Image< T2 > &A)
 Multiply image by image, point-by-point, clamp result as necessary.
template<class T2 >
Image< T > & operator/= (const Image< T2 > &A)
 Divide image by image, point-by-point, clamp result as necessary.
template<class T2 >
Image< T > & operator|= (const Image< T2 > &A)
 Bitwise-or image by image, point-by-point, clamp result as necessary.
template<class T2 >
Image< typename promote_trait
< T, T2 >::TP > 
operator+ (const T2 &val) const
 Add scalar to each point in *this and return result.
template<class T2 >
Image< typename promote_trait
< T, T2 >::TP > 
operator- (const T2 &val) const
 Subtract scalar from each point in *this and return result.
template<class T2 >
Image< typename promote_trait
< T, T2 >::TP > 
operator* (const T2 &val) const
 Multiply scalar each point in *this by scalar and return result.
template<class T2 >
Image< typename promote_trait
< T, T2 >::TP > 
operator/ (const T2 &val) const
 Divide each point in *this by scalar and return result.
Image< T > operator<< (const unsigned int nbits) const
 Bit-shift left by constant and return result (type T must have operator<<()).
Image< T > operator>> (const unsigned int nbits) const
 Bit-shift right by constant and return result (type T must have operator>>()).
template<class T2 >
Image< typename promote_trait
< T, T2 >::TP > 
operator+ (const Image< T2 > &img) const
 Point-wise add img to image and return result.
template<class T2 >
Image< typename promote_trait
< T, T2 >::TP > 
operator- (const Image< T2 > &img) const
 Point-wise subtract img from *this and return result.
template<class T2 >
Image< typename promote_trait
< T, T2 >::TP > 
operator* (const Image< T2 > &img) const
 Point-wise multiply *this by img and return result.
template<class T2 >
Image< typename promote_trait
< T, T2 >::TP > 
operator/ (const Image< T2 > &img) const
 Point-wise divide *this by img and return result.
void clear (const T &val=T())
 clear contents (or set to given value)
Functions for testing/debugging only

bool hasSameData (const Image< T > &b) const
 For testing/debugging only.
long refCount () const throw ()
 For testing/debugging only.
bool isShared () const throw ()
 For testing/debugging only.

Iterators

There are const and non-const versions of iterators, which are returned by begin()/end() and beginw()/endw(), respectively. The "w" in beginw()/endw() is a mnemonic for "write" or "writeable". Beware that the non-const versions of these functions will invoke the copy-on-write mechanism (see ArrayHandle), so a deep copy of all the image data will be made if the current image object is not the unique owner of its image data. Thus, begin()/end() should always be used unless write access is specifically needed. (It is for this reason that we don't overload the const/non-const functions with the same names (even though this is possible in C++, as done in the STL containers)).

Debugging iterators (CheckedIterator) will be used if the macro INVT_MEM_DEBUG is define'd. A checked iterator will check that it is within its proper bounds every time that it is dereferenced with either operator*() or operator->(). Note that the existence of the checked iterators means you cannot rely on an image iterator being a raw pointer. Instead, getArrayPtr() is available in case you unconditionally need a raw pointer to the image data.



typedef T * iterator
 Read/write iterator.
typedef const T * const_iterator
 Read-only iterator.
const_iterator begin () const
 Returns a read-only iterator to the beginning of the image data.
const_iterator end () const
 Returns a read-only iterator to one-past-the-end of the image data.
iterator beginw ()
 Returns a read-write iterator to the beginning of the image data.
iterator endw ()
 Returns a read-write iterator to one-past-the-end of the image data.

Detailed Description

template<class T>
class Image< T >

Generic image template class.

This is a generic image template class that can handle grayscale as well as color or multispectral images. All Image methods should be instantiable for any type T that has the basic arithmetic operators. Note that some external Image functions will only work for scalar types (e.g. if comparison operators are needed), and other will only work for composite types such as PixRGB (e.g. if luminance() is needed).

Note also that many other image manipulation functions are defined as non-member functions in Image/ColorOps.H, Image/FilterOps.H, Image/IO.H, Image/MathOps.H, Image/Omni.H, Image/ShapeOps.H, and Image/Transforms.H.

Definition at line 74 of file Image.H.


Member Typedef Documentation

template<class T>
typedef const T* Image< T >::const_iterator

Read-only iterator.

Definition at line 268 of file Image.H.

template<class T>
typedef T* Image< T >::iterator

Read/write iterator.

Definition at line 266 of file Image.H.


Constructor & Destructor Documentation

template<class T>
Image< T >::Image ( const T *  inarray,
int  width,
int  height 
) [inline]

Construct from C array.

Build from C array; an internal copy of the C array will be allocated, so the C array can (and should) be freed without affecting the Image.

Definition at line 605 of file Image.H.

template<class T>
Image< T >::Image ( const T *  inarray,
const Dims dims 
) [inline]

Construct from C array.

Build from C array; an internal copy of the C array will be allocated, so the C array can (and should) be freed without affecting the Image.

Definition at line 611 of file Image.H.

template<class T>
Image< T >::Image ( int  width,
int  height,
InitPolicy  init 
) [inline]

Allocates memory for given size, and optionally zero-clear that memory.

Definition at line 617 of file Image.H.

template<class T>
Image< T >::Image ( const Dims dims,
InitPolicy  init 
) [inline, explicit]

Constructor that only allocates memory for given size.

Definition at line 623 of file Image.H.

template<class T>
Image< T >::Image (  )  [inline]

Construct an empty (0-by-0) image (useful for arrays of Images).

Definition at line 629 of file Image.H.

template<class T>
Image< T >::Image ( const Image< T > &  A  )  [inline]

Copy constructor.

e.g.:

      Image<byte> im(other);
      // or
      Image<byte> im = other; // with other also of type Image<byte>

Definition at line 635 of file Image.H.

template<class T >
template<class T2 >
Image< T >::Image ( const Image< T2 > &  A  )  [inline]

Conversion copy constructor.

e.g.:

      Image<byte> im(other);
      // or
      Image<byte> im = other; // with other of type Image<float>

Definition at line 641 of file Image.H.

References Image< T >::begin(), Image< T >::beginw(), and Image< T >::endw().

template<class T >
Image< T >::~Image (  )  [inline]

Destructor.

Definition at line 679 of file Image.H.


Member Function Documentation

template<class T>
void Image< T >::attach ( T *  array,
const int  width,
const int  height 
) [inline]

Use existing memory.

This is potentially dangerous and should really be avoided. The only case where this really is useful is to attach an image to an existing memory segment that is shared or into which data is streaming via DMA.

Definition at line 703 of file Image.H.

References WRITE_THRU.

Referenced by AudioGrabber::grab(), and orb2Image().

template<class T >
Image< T >::const_iterator Image< T >::begin (  )  const [inline]

Returns a read-only iterator to the beginning of the image data.

Definition at line 764 of file Image.H.

Referenced by abs(), addRow(), alphaBlend(), average(), averageWeighted(), avgOrient(), SpaceVariantTransform::begin(), binaryReverse(), blurAndDecY(), JunctionHOG::calculateJunctionHistogram(), centerSurround(), chamfer34(), colorize(), colorStain(), SurpriseModelOD::combineFrom(), SurpriseModelPM::combineFrom(), composite(), SimulationViewerStats::computeAGStats(), AttentionGateStd::computeMinMaxXY(), contour2D(), convertToQPixmap(), convolveCleanZero(), convolveHmax(), DPM::convolveModel(), convolveWithMaps(), corrcoef(), correlation(), corrpatch(), countThresh(), createMask(), dilateImg(), distance(), DPM::distanceTrans(), distDegrade(), divideRow(), VarianceChannel::doInput(), MultiColorBandChannel::doInput(), MichelsonChannel::doInput(), IntensityBandChannel::doInput(), H2SVChannel::doInput(), EntropyChannel::doInput(), CIELabChannel::doInput(), dotprod(), BitObject::drawShape(), SpatioTemporalEnergyPyrBuilder< T >::DrawVectors(), MotionEnergyPyrBuilder< T >::DrawVectors(), emptyArea(), erodeImg(), exp(), featurePoolHmax(), FourierEngine< T >::fft(), filterAtLocationBatch(), findMax(), findMin(), flipHoriz(), flipVertic(), getAugmentedBeliefBayesImage(), VisualObjectMatch::getFusedImage(), getJpegYUV(), getLikelyhoodImage(), getMaskedMinMax(), getMaskedMinMaxAvg(), getMaskedMinMaxSumArea(), SurpriseImage< T >::getMean(), getMinMax(), getMinMaxAvg(), getMinMaxAvgEtc(), getNormalizedBayesImage(), POMDP::getObjProb(), SpectralResidualChannel::getOutput(), getPixelComponentImage(), getRGBY(), getSubSum(), getSubSumGen(), getTensor(), getTensorMag(), WinnerTakeAllTempNote::getV(), WinnerTakeAllStd::getV(), SaliencyMapStd::getV(), Image< T >::getVal(), Jet< T >::getVal(), Image< T >::getValInterp(), SurpriseImage< T >::getVar(), getVector(), getVectorColumn(), getVectorRow(), getYIQ(), gradient(), gradientmag(), gradientori(), gradientSobel(), hmaxActivation(), hueDistance(), Image< T >::Image(), Image2mexArray(), Image2mexArrayUint8(), SurpriseImage< T >::init(), inplaceAddWeighted(), inplacePasteGabor(), inplaceSetValMask(), SaliencyMapStd::input(), WinnerTakeAllStdOptim::integrate(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllStd::integrate(), intgGetRGBY(), intgScaleLuminanceFromByte(), inverse(), isFinite(), isLocalMax(), junctionFilterFull(), junctionFilterPartial(), learningCoeff(), TrainingSet::load(), TrainingSet::loadRebalanced(), log(), log10(), logSig(), lowPassLpt3r(), lowPassLpt3w(), lowPassLpt5r(), lowPassLpt5w(), lobot::LRFData::LRFData(), makeBinary(), makeBinary2(), makeRGB(), makeSparceMap(), mosaic(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), multiScaleBatchFilter(), negexp(), normalizeScaleRainbow(), normalizeWithScale(), Image< T >::operator*(), Image< T >::operator*=(), Image< T >::operator+(), Image< T >::operator+=(), Image< T >::operator-(), Image< T >::operator-=(), Image< T >::operator/(), Image< T >::operator/=(), Image< T >::operator<<(), Image< T >::operator=(), Image< T >::operator==(), Image< T >::operator>>(), Image< T >::operator[](), Image< T >::operator|=(), optConvolve(), Hmax::origGetC2(), overlayStain(), pasteImage(), SurpriseImage< T >::preComputeHyperParams(), LayerDecoder::push(), rangeOf(), SpaceVariantTransform::rbegin(), remapRange(), replaceVals(), RMSerr(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetOutImage(), CINNICstatsRun::runStandardStats(), SimulationViewerStats::saveCompat(), SingleChannel::saveStats(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeLocalBias(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeNewBeta(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetOutImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSharpened(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputConspicMap(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCprocessFrameSeperable(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCseperateConv(), BitObject::setMaxMinAvgIntensity(), segmentImageMC::SIsegment(), segmentImageTrackMC::SITtrackImage(), spatialPoolMax(), splitPosNeg(), sqrt(), squared(), squash(), ScaleRemoveSurprise< FLOAT >::SRSgetBetaParts(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffImage(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffParts(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), ScaleSurpriseControl< FLOAT >::SSCgetDiffImage(), ScaleSurpriseControl< FLOAT >::SSCgetDiffParts(), stain(), stainPosNeg(), stdev(), stdevRow(), subtractRow(), sum(), sumXY(), SurpriseImage< T >::surprise(), takeLinkedMax(), takeMin(), toPower(), toPowerRegion(), toRGB(), trace(), transform(), transpose(), PnmWriter::writeAsciiBW(), writeImageToStream(), and PnmWriter::writeRawBW().

template<class T >
Image< T >::iterator Image< T >::beginw (  )  [inline]

Returns a read-write iterator to the beginning of the image data.

Definition at line 772 of file Image.H.

Referenced by addNoise(), addPowerNoise(), addRow(), apply(), averageWeighted(), avgOrient(), SaliencyMapStd::blinkSuppression(), blurAndDecY(), centerSurround(), Image< T >::clear(), convolutionMap< T >::CMcopyImage(), SimulationViewerStats::computeAGStats(), AttentionGateStd::computeFeatureDistance(), TaskRelevanceMapGistClassify::computeGistDist(), GistEstimatorFFT::computeGistFeatureVector(), SimulationViewerStats::computeLAMStats(), convertToImage(), convolveCleanZero(), convolveHmax(), DPM::convolveModel(), convolveWithMaps(), corrEigenMatrix(), correlation(), SaliencyMapStd::depress(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), SaliencyMapStdOptim::depress(), dilateImg(), divideRow(), dogFilter(), dogFilterHmax(), MichelsonChannel::doInput(), PN03contrastChannel::doInput(), H2SVChannel::doInput(), CIELabChannel::doInput(), ScorrChannel::doInput(), VarianceChannel::doInput(), EntropyChannel::doInput(), downscaleFancy(), BitObject::drawShape(), erodeImg(), BeoLRF::evolve(), eye(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), fill(), filterAtLocation(), GeometricHashing::findInHash(), findMonteMap(), fixationMask(), flipHoriz(), flipVertic(), flood(), fromMono(), fromVideoHM12(), fromVideoYUV410P(), fromVideoYUV411P(), fromVideoYUV422P(), gaborFilter(), gaborFilter2(), gaborFilter3(), gaussian2D(), getAugmentedBeliefBayesImage(), getComponents(), Layer< T, W >::getDisplayOutput(), getDKL(), DpxParser::getFrame(), VisualObjectMatch::getFusedImage(), getJpegYUV(), getLAB(), getLikelyhoodImage(), HOG::getMaxGradient(), SurpriseImage< T >::getMean(), getNormalizedBayesImage(), SpectralResidualChannel::getOutput(), LayerDecoder::getOutput(), TcorrChannel::getOutput(), getRGBY(), getRGBYsimple(), getSearchCommand(), VisualObjectMatch::getTransfTestImage(), SurpriseImage< T >::getVar(), getYIQ(), IEEE1394grabber::grabPrealloc(), ColorMap::GRADIENT(), grating(), ColorMap::GREY(), Image< T >::Image(), SurpriseImage< T >::init(), BeobotVisualCortex::init(), FeedForwardNetwork::init(), FeedForwardNetwork::init3L(), inplaceAddBGnoise2(), inplaceAddWeighted(), inplaceClamp(), inplaceLowThresh(), inplaceLowThreshAbs(), inplaceNormalize(), inplacePasteGabor(), inplaceRectify(), inplaceReplaceVal(), inplaceSetValMask(), inplaceSigmoid(), inplaceSquare(), WinnerTakeAllTempNote::input(), WinnerTakeAllStd::input(), SaliencyMapStd::input(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllStdOptim::integrate(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllStd::integrate(), intgGetRGBY(), ColorMap::JET(), ColorMap::LINES(), longRangeExcFilter(), lowPassLpt3r(), lowPassLpt3w(), lowPassLpt5r(), lowPassLpt5w(), luminance(), luminanceNormalize(), luminanceNTSC(), main(), BeoMap::makePanorama(), VectorField::makeUnitLength(), BeobotVisualCortex::masterCollect(), matrixMult(), mexArray2Image(), mexArray2RGBImage(), multiplyRow(), multiScaleBatchFilter(), SurpriseImage< T >::neighborhoods(), normalizeFloatRgb(), normalizeLAB(), normalizeScaleRainbow(), VectorField::normalizeTo(), normalizeWithScale(), VectorHistField::obstacleTemplate(), Image< T >::operator*(), Image< T >::operator*=(), Image< T >::operator+(), Image< T >::operator+=(), Image< T >::operator-(), Image< T >::operator-=(), Image< T >::operator/(), Image< T >::operator/=(), Image< T >::operator<<(), Image< T >::operator<<=(), Image< T >::operator=(), Image< T >::operator>>(), Image< T >::operator>>=(), Image< T >::operator[](), Image< T >::operator|=(), optConvolve(), PnmParser::Rep::parseBW(), pasteImage(), VectorField::plotField(), VectorField::plotGridField(), SurpriseImage< T >::preComputeHyperParams(), RandomInput::readFrame(), GameOfLifeInput::readFrame(), readImageFromStream(), GeometricHashing::readTable(), SurpriseImage< T >::reset(), SurpriseImage< T >::resetUpdFac(), VectorField::rotateField(), VectorField::rotateGoalField(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSfindConvolutionEndPoints(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetOutImage(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinit(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputRawImage(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrame(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrameSeperable(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSseperateConv(), FeedForwardNetwork::run(), FeedForwardNetwork::run3L(), SaliencyMapStd::saccadicSuppression(), StimAnalyzer::SAcompImages(), saliencyChamfer34(), saveData(), saveGist(), VectorField::scaleFieldBy(), VectorField::scaleGoalFieldBy(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeLocalBias(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeNewBeta(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCfindConvolutionEndPoints(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetBetaImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetFrame(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetLocalBiasImages(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetOutImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetRawInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSeperableParts(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSharpened(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinit(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputConspicMap(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputRawImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCprocessFrameSeperable(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCseperateConv(), FovealTransform::setup(), setupPcaIcaMatrix(), setupVentralPacket(), Jet< T >::setVal(), Image< T >::setVal(), segmentImageMC2::SIcalcMassCenter(), segmentImageMC::SIcalcMassCenter(), segmentImageMC2::SIgetValue(), segmentImageMC::SIgetValue(), segmentImageMerge2::SIMclusterColor(), BeobotVisualCortex::singleCPUprocess(), segmentImageMC2::SIresetCandidates(), segmentImageMC::SIresetCandidates(), segmentImageTrackMC::SITtrackImage(), spatialPoolMax(), splitPosNeg(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSgetBetaParts(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffImage(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffParts(), ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSprocessFrame(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), ScaleSurpriseControl< FLOAT >::SSCgetDiffImage(), ScaleSurpriseControl< FLOAT >::SSCgetDiffParts(), subtractRow(), SurpriseImage< T >::surprise(), takeLinkedMax(), toRGB(), trackPoint(), transpose(), VectorHistField::updateField(), FeedForwardNetwork::write(), and FeedForwardNetwork::write3L().

template<class T>
void Image< T >::clear ( const T &  val = T()  )  [inline]
template<class T >
bool Image< T >::coordsOk ( const float  i,
const float  j 
) const [inline]

Test whether point falls inside array boundaries.

This test is intended to be used before you attempt a getValInterp()

Definition at line 1036 of file Image.H.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class T >
bool Image< T >::coordsOk ( const Point2D< float > &  p  )  const [inline]

Test whether point falls inside array boundaries.

This test is intended to be used before you attempt a getValInterp()

Definition at line 1029 of file Image.H.

References Image< T >::coordsOk(), and Point2D< T >::i.

template<class T >
bool Image< T >::coordsOk ( const int  i,
const int  j 
) const [inline]

Test whether point falls inside array boundaries.

Definition at line 1022 of file Image.H.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class T >
bool Image< T >::coordsOk ( const Point2D< int > &  P  )  const [inline]
template<class T >
Image< T > Image< T >::deepcopy (  )  const [inline]

Return a new image object with a deep copy of the underlying data.

This function is necessary for safe use of attach()/detach(). That is, unfortunately attach()/detach() are not safe for use with shared image objects -- consider the following code:

      double d[4] = { 0.0, 1.0, 2.0, 3.0};

      // create an Image that is attach()'ed to the double array
      Image<double> a;
      a.attach(&d[0], 2, 2);

      const Image<double> b = a;
      // now 'b' thinks it has a safe lock on some const values:

      d[0] = -1.0;
      // OOPS! By changing values in the 'd' array directly, we'll now
      // have changed things to that b[0] == -1.0, even though 'b' was
      // declared as 'const'

The solution to this problem is to prohibit the copy done in 'b=a' above (this triggers an LFATAL() in ArrayData::acquire()). That assures us that any ArrayData that has a StoragePolicy of WRITE_THRU will be un-shareable.

So, back to the point -- the correct way to write the code above would be to use deepcopy():

      double d[4] = { 0.0, 1.0, 2.0, 3.0};

      Image<double> a;
      a.attach(&d[0], 2, 2);

      const Image<double> b = a.deepcopy();

      d[0] = -1.0;
      // Now, 'b' is insulated from any changes to 'd' since we've
      // done a deep copy, so even now we'll still have b[0]==0.0

Definition at line 719 of file Image.H.

References Image< T >::getArrayPtr(), and Image< T >::getDims().

Referenced by ForegroundDetectionChannel::doInput(), and orb2Image().

template<class T >
void Image< T >::detach (  )  [inline]

Detach previously attach()'ed image.

The main purpose of detach() is to make sure that this Image object does not continue to point at attach()'ed memory after that memory has been freed. Nevertheless, this function is not strictly necessary to ensure correct memory handling, since the Image destructor will only try to free memory if that memory is owned (i.e., not attach()'ed). All that it does is release any association with a previously attach()'ed memory block, by setting the current image to a new empty (zero-by-zero) ArrayData object. We assume that attached memory will be destroyed later.

Definition at line 711 of file Image.H.

Referenced by AudioGrabber::grab().

template<class T >
Image< T >::const_iterator Image< T >::end (  )  const [inline]

Returns a read-only iterator to one-past-the-end of the image data.

Definition at line 768 of file Image.H.

Referenced by abs(), alphaBlend(), colorize(), colorStain(), SurpriseModelOD::combineFrom(), composite(), SimulationViewerStats::computeAGStats(), AttentionGateStd::computeMinMaxXY(), convertToQPixmap(), convolveWithMaps(), corrcoef(), countThresh(), createMask(), distance(), MultiColorBandChannel::doInput(), MichelsonChannel::doInput(), IntensityBandChannel::doInput(), H2SVChannel::doInput(), CIELabChannel::doInput(), dotprod(), SpatioTemporalEnergyPyrBuilder< T >::DrawVectors(), MotionEnergyPyrBuilder< T >::DrawVectors(), emptyArea(), SpaceVariantTransform::end(), exp(), FourierEngine< T >::fft(), getAugmentedBeliefBayesImage(), getDKL(), getJpegYUV(), getLAB(), getMaskedMinMax(), getMaskedMinMaxAvg(), getMaskedMinMaxSumArea(), SurpriseImage< T >::getMean(), getMinMax(), getMinMaxAvg(), getMinMaxAvgEtc(), getNormalizedBayesImage(), getRGBY(), getRGBYsimple(), getTensorMag(), SaliencyMapStd::getV(), SurpriseImage< T >::getVar(), getYIQ(), hueDistance(), inplaceAddWeighted(), SaliencyMapStd::input(), intgGetRGBY(), inverse(), isFinite(), learningCoeff(), TrainingSet::load(), TrainingSet::loadRebalanced(), lowPassLpt5w(), lobot::LRFData::LRFData(), luminanceNormalize(), VectorField::makeUnitLength(), mosaic(), negexp(), normalizeScaleRainbow(), VectorField::normalizeTo(), normalizeWithScale(), Image< T >::operator*(), Image< T >::operator+(), Image< T >::operator-(), Image< T >::operator/(), Image< T >::operator<<(), Image< T >::operator==(), Image< T >::operator>>(), rangeOf(), SpaceVariantTransform::rend(), RMSerr(), VectorField::rotateField(), VectorField::rotateGoalField(), CINNICstatsRun::runStandardStats(), SimulationViewerStats::saveCompat(), SingleChannel::saveStats(), VectorField::scaleFieldBy(), VectorField::scaleGoalFieldBy(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeLocalBias(), splitPosNeg(), sqrt(), squash(), ScaleRemoveSurprise< FLOAT >::SRSgetBetaParts(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffImage(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffParts(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), ScaleSurpriseControl< FLOAT >::SSCgetDiffImage(), ScaleSurpriseControl< FLOAT >::SSCgetDiffParts(), stdev(), sum(), toPower(), VectorHistField::updateField(), and PnmWriter::writeRawBW().

template<class T >
Image< T >::iterator Image< T >::endw (  )  [inline]

Returns a read-write iterator to one-past-the-end of the image data.

Definition at line 776 of file Image.H.

Referenced by apply(), averageWeighted(), SaliencyMapStd::blinkSuppression(), Image< T >::clear(), SimulationViewerStats::computeAGStats(), SimulationViewerStats::computeLAMStats(), corrEigenMatrix(), BeoLRF::evolve(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), fill(), findMonteMap(), getAugmentedBeliefBayesImage(), DpxParser::getFrame(), IEEE1394grabber::grabPrealloc(), Image< T >::Image(), SurpriseImage< T >::init(), BeobotVisualCortex::init(), inplaceClamp(), inplaceLowThresh(), inplaceLowThreshAbs(), inplaceNormalize(), inplaceRectify(), inplaceReplaceVal(), inplaceSetValMask(), inplaceSigmoid(), inplaceSquare(), WinnerTakeAllTempNote::input(), WinnerTakeAllStd::input(), SaliencyMapStd::input(), luminance(), luminanceNTSC(), main(), normalizeFloatRgb(), normalizeLAB(), Image< T >::operator*=(), Image< T >::operator+=(), Image< T >::operator-=(), Image< T >::operator/=(), Image< T >::operator<<=(), Image< T >::operator=(), Image< T >::operator>>=(), Image< T >::operator|=(), PnmParser::Rep::parseBW(), VectorField::plotField(), VectorField::plotGridField(), SurpriseImage< T >::preComputeHyperParams(), RandomInput::readFrame(), GameOfLifeInput::readFrame(), readImageFromStream(), SurpriseImage< T >::reset(), SurpriseImage< T >::resetUpdFac(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetOutImage(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinit(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputRawImage(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrame(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrameSeperable(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSseperateConv(), FeedForwardNetwork::run(), FeedForwardNetwork::run3L(), SaliencyMapStd::saccadicSuppression(), StimAnalyzer::SAcompImages(), saveGist(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeLocalBias(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeNewBeta(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetBetaImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetFrame(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetLocalBiasImages(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetOutImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetRawInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSeperableParts(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSharpened(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinit(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputRawImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCprocessFrameSeperable(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCseperateConv(), FovealTransform::setup(), segmentImageMC2::SIgetValue(), segmentImageMC::SIgetValue(), segmentImageMerge2::SIMclusterColor(), segmentImageMC2::SIresetCandidates(), segmentImageMC::SIresetCandidates(), segmentImageTrackMC::SITtrackImage(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSprocessFrame(), SurpriseImage< T >::surprise(), takeLinkedMax(), toRGB(), trackPoint(), FeedForwardNetwork::write(), and FeedForwardNetwork::write3L().

template<class T >
void Image< T >::freeMem (  )  [inline]

Free memory and switch to uninitialized state.

Note that it is NOT necessary to call this function to ensure proper cleanup, that will be done in the destructor by default. Rather, freeMem() is offered just as a performance optimization, to allow you to release a potentially large chunk of memory when you are finished using it.

Reimplemented in ImageSpring< T >, and ImageSpring< Jet< float > >.

Definition at line 684 of file Image.H.

References Image< T >::swap().

Referenced by BitObject::freeMem(), SurpriseMapFFT< T >::init(), SurpriseMap< T >::init(), SingleChannel::killCaches(), ComplexChannel::killCaches(), IntegerSimpleChannel::killCaches(), DirectFeedChannel::killCaches(), IntegerComplexChannel::killCaches(), SpectralResidualChannel::killCaches(), SaliencyMT::newInput(), VisualObject::operator=(), AttentionGuidanceMapStd::reset(), AttentionGuidanceMapOpt::reset(), SaliencyMapStdOptim::reset(), SaliencyMapStd::reset1(), SimulationViewerNerdCam::reset1(), TargetChecker::reset1(), AttentionGateStd::reset1(), SimulationViewerAdapter::reset1(), TaskRelevanceMapKillStatic::reset1(), WinnerTakeAllStd::reset1(), WinnerTakeAllTempNote::reset1(), WinnerTakeAllAdapter::reset1(), FlickerChannel::reset1(), IntegerFlickerChannel::reset1(), SimulationViewerStd::reset1(), SaliencyMapFast::reset1(), SaliencyMapTrivial::reset1(), ShapeEstimator::reset1(), WinnerTakeAllStdOptim::reset1(), DirectFeedChannel::reset1(), TaskRelevanceMapAdapter::reset1(), TaskRelevanceMapKillStatic::saccadicSuppression(), VisualObject::VisualObject(), BeobotSensation::~BeobotSensation(), BPnnet::~BPnnet(), and Jet< T >::~Jet().

template<class T >
T * Image< T >::getArrayPtr (  )  [inline]

Returns read/write (non-const) pointer to internal image array.

Definition at line 1008 of file Image.H.

template<class T >
const T * Image< T >::getArrayPtr (  )  const [inline]
template<class T >
Rectangle Image< T >::getBounds (  )  const [inline]
template<class T >
const Dims & Image< T >::getDims (  )  const [inline]

Get image width+height in Dims struct.

Definition at line 830 of file Image.H.

Referenced by abs(), addRow(), alphaBlend(), InferoTemporalSIFT::attentionShift(), average(), avgOrient(), FeedForwardNetwork::backprop(), FeedForwardNetwork::backprop3L(), binaryReverse(), VisualBufferStd::bufferToRetinal(), SimEventVisualBufferOutput::bufferToRetinal(), buildPyrRetinexLog(), DescriptorVec::buildRawDV(), ShapeModel::calcDist(), RegSaliency::calcFlicker(), centerSurround(), centerSurroundDiff(), centerSurroundDiffSingleOpponent(), chamfer34(), SingleChannelBeoServer::check(), Image< T >::clear(), colGreyCombo(), colorize(), colorStain(), ComplexChannel::combineOutputs(), RawVisualCortex::combineOutputs(), IntegerRawVisualCortex::combineOutputsInt(), composite(), SaliencyMT::computeCMAP(), BeoSubSaliency::computeCMAP(), TaskRelevanceMapGistClassify::computeGistDist(), GistEstimatorFFT::computeGistFeatureVector(), contour2D(), DPM::convolveModel(), createMask(), Image< T >::deepcopy(), MbariResultViewer::displayImage(), HippocampusI::displayMap(), DPM::distanceTrans(), distDegrade(), divideRow(), SimulationViewerStd::doEventRetinaImage(), MichelsonChannel::doInput(), ContourChannel::doInput(), downSizeClean(), BitObject::drawBoundingBox(), SimulationViewerEyeHand::drawHand(), SimulationViewerHand::drawHand(), XWindow::drawImage(), SimulationViewerStd::drawMegaCombo(), BitObject::drawOutline(), BitObject::drawShape(), VisualEventSet::drawTokens(), BeoLRF::evolve(), exp(), extractBitObjects(), FourierEngine< T >::fft(), fill(), VisualBufferStd::findMostInterestingTarget(), flood(), floodClean(), floodCleanBB(), EyeTrackerISCAN::getCalibrationSet(), getCleanOpticFlow(), ImageSpring< T >::getClusteredImage(), SpaceVariantTransform::getCTDims(), GenericFrame::getDims(), Geons3D::getEdgeProb(), PopulationHeadingMap::getFOE(), JpegParser::getFrameSpec(), GeometricHashing::getHashTableImage(), GHough::getInvVotes(), getLucasKanadeOpticFlow(), DummyChannel::getMapDims(), SurpriseImage< T >::getMean(), DPM::getModelImage(), SoxChannel::getNonlinearResponse(), BitObject::getObjectDims(), TestImages::getObjMask(), SpectralResidualChannel::getOutput(), RetinaAdapter::getOutput(), getPixelComponentImage(), SpaceVariantModule::getScaleSpace(), Image< T >::getSize(), SingleChannelSurprise< SMODEL >::getSurpriseMap(), SpaceVariantTransform::getSVDims(), getTensor(), getTensorEigen(), getTensorMag(), Stimulus2D::getTotalTime(), SimulationViewerEyeHand::getTraj(), SimulationViewerHand::getTraj(), SimulationViewerEyeMvtNeuro::getTraj(), SimulationViewerStd::getTraj(), SimulationViewerEyeRegion::getTraj(), SimulationViewerCompress::getTraj(), SimulationViewerEyeMvt::getTraj(), AttentionGuidanceMapOpt::getV(), AttentionGuidanceMapStd::getV(), WinnerTakeAllStd::getV(), WinnerTakeAllTempNote::getV(), SaliencyMapStd::getV(), SurpriseImage< T >::getVar(), BeobotCamera::grab(), gradient(), gradientmag(), gradientori(), gradientSobel(), hmaxActivation(), infoFFT(), VisualBufferStd::inhibit(), SurpriseMap< T >::initModels(), inplaceAddWeighted(), WinnerTakeAllTempNote::input(), WinnerTakeAllStdOptim::input(), WinnerTakeAllStd::input(), SaliencyMapStdOptim::input(), VisualBufferStd::input(), SaliencyMapStd::input(), SimLayer::input(), SimLayer::inputExc(), SimLayer::inputInh(), TaskRelevanceMapTigs2::integrate(), WinnerTakeAllGreedy::integrate(), TaskRelevanceMapGistClassify::integrate(), TaskRelevanceMapTigs::integrate(), intgGetRGBY(), inverse(), SpaceVariantModule::inverseMap(), SpaceVariantModule::inverseTransform(), junctionFilterFull(), junctionFilterPartial(), log(), log10(), logSig(), main(), makeBinary(), makeBinary2(), SDLdisplay::makeBlittableSurface(), POMDP::makeObservation(), makeRGB(), mapCombine(), maxNormalizeLandmark(), maxNormalizeStdev(), maxNormalizeStdev0(), mosaic(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), negexp(), SurpriseImage< T >::neighborhoods(), Stimulus2D::next(), VectorHistField::obstacleTemplate(), Image< T >::operator=(), overlayStain(), ShiftedImage::peekFrameSpec(), ColorbarsInput::peekFrameSpec(), RetinaAdapter::postInputFrame(), RetinaCT::postInputFrame(), UKF::predictState(), SimulationViewerStd::prepMapForDisplay(), XMLInput::readFrame(), remapRange(), replaceVals(), BitObject::reset(), Image< T >::resize(), VisualBufferStd::retinalToBuffer(), SimEventVisualBufferOutput::retinalToBuffer(), saliencyChamfer34(), BitObject::setMaxMinAvgIntensity(), VisualTracker::setTargets(), BeoSubCanny::setupCanny(), ColorTracker::setupTracker(), Image< T >::size(), splitPosNeg(), sqrt(), squared(), squash(), stain(), stainPosNeg(), submain(), subtractRow(), SurpriseMapFFT< T >::surprise(), SurpriseMap< T >::surprise(), SurpriseImage< T >::surprise(), takeMin(), toPower(), toPowerRegion(), toRGB(), SpaceVariantModule::transform(), transform(), SpaceVariantDoGModule::transformDoG(), SpaceVariantDoGModule::transformDoGPyramid(), SpaceVariantEdgeModule::transformEdge(), SpaceVariantEdgeModule::transformEdgePyramid(), SpaceVariantModule::transformPyramid(), VectorHistField::updateField(), VectorField::VectorField(), VisualObject::VisualObject(), and writeImageToStream().

template<class T >
int Image< T >::getHeight ( void   )  const [inline]

Get image height.

Definition at line 825 of file Image.H.

Referenced by TCPmessage::addImage(), addNoise(), addPowerNoise(), addRow(), blurAndDecY(), buildPyrGabor(), buildPyrRetinexLog(), DescriptorVec::buildRawDV(), JunctionHOG::calculateJunctionHistogram(), cartesian(), BeoSub::CenterBin(), centerSurround(), chamfer34(), CINNICstatsRun::checkSize(), convolutionMap< T >::CMcopyImage(), SurpriseModelOD::combineFrom(), SurpriseModelPM::combineFrom(), ComplexChannel::combineOutputs(), SimulationViewerStats::computeAGStats(), SaliencyMT::computeCMAP(), BeoSubSaliency::computeCMAP(), computeCMAP(), RawGistEstimatorStd::computeFeatureVector(), TaskRelevanceMapGistClassify::computeGistDist(), GistEstimatorFFT::computeGistFeatureVector(), VisualObject::computeKeypoints(), CUDAVisualObject::computeKeypoints(), ImageSpring< T >::computePos(), contour2D(), convertToQPixmap(), convolve(), convolveCleanZero(), DPM::convolveComponent(), convolveHmax(), DPM::convolveModel(), CINNIC::convolveTest(), Image< T >::coordsOk(), correlation(), countParticles(), ColorHist::createFeatureVector(), HistogramOfGradients::createHistogramFromGradient(), GHough::createInvRTable(), segmentImage::createMother(), LocalBinaryPatterns::createRawHistogram(), GHough::createRTable(), SpaceVariantModule::cropTransform(), dct(), SaliencyMapStd::depress(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), SaliencyMapStdOptim::depress(), dilateImg(), ContourBoundaryDetector::displayGradImage(), SDLdisplay::displayImagePatch(), dispResults(), DPM::distanceTrans(), distDegrade(), divideRow(), DisparityChannel::doInput(), ScorrChannel::doInput(), downscaleFancy(), downSize(), downSizeClean(), XWindow::drawImage(), SimulationViewerNerdCam::drawMegaCombo(), MotionEnergyPyrBuilder< T >::DrawVectors(), SpatioTemporalEnergyPyrBuilder< T >::DrawVectors(), contourRun::dumpEnergySigmoid(), erodeImg(), StereoRetinaI::evolve(), AttentionGateStd::extractFeatureValues(), HmaxFL::extractRandC1Patch(), featureClusterVision< FLOAT >::fCVgetImageBaseStats(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), featureClusterVision< FLOAT >::fCVsetUpfCV(), featureClusterVision< FLOAT >::fCVuploadImage(), featurePoolHmax(), Histogram::fill(), filterAtLocation(), filterAtLocationBatch(), findBoundingRect(), GeometricHashing::findInHash(), findMax(), findMin(), VisualBufferStd::findMostInterestingTargetLocMax(), fixationMask(), flipHoriz(), flipVertic(), floodCleanBB(), BeoSub::FollowPipeLine(), formatMapForDisplay(), TestImages::getAllObjMask(), getAugmentedBeliefBayesImage(), GSlocalizer::getBeliefImage(), Beobot2_GistSalLocalizerMasterI::getBeliefImage(), getCleanOpticFlow(), ImageSpring< T >::getClusteredImage(), ShapeModel::getDistVal(), Geons3D::getEdgeProb(), getEllipseFromCov(), FoeDetector::getFoe(), VisualObjectMatch::getFusedImage(), segmentImage::getImageSizeY(), BeobotVisualCortex::getInputSize(), GHough::getInvVotes(), VisualObject::getKeypointImage(), VisualObject::getKeypointImage2(), getLikelyhoodImage(), getLucasKanadeOpticFlow(), VisualObjectMatch::getMatchImage(), HOG::getMaxGradient(), MiddleTemporal::getMTfeaturesDisplay(), getNormalizedBayesImage(), TestImages::getObjMask(), POMDP::getObjProb(), SpectralResidualChannel::getOutput(), RetinaAdapter::getOutput(), TcorrChannel::getOutput(), VisualObjectMatch::getOverlapRect(), getPearsonRMatrix(), ImageSpring< T >::getPositions(), getSalImage(), getSearchCommand(), getSubSum(), getSubSumGen(), Geons3D::getSurfaceProb(), getTensor(), SimulationViewerEyeMvtNeuro::getTraj(), SimulationViewerStd::getTraj(), SimulationViewerCompress::getTraj(), VisualObjectMatch::getTransfTestImage(), AttentionGuidanceMapOpt::getV(), AttentionGuidanceMapStd::getV(), Image< T >::getValInterp(), getVector(), getVectorColumn(), IEEE1394grabber::grabPrealloc(), gradient(), gradientmag(), gradientori(), gradientSobel(), Histogram::Histogram(), Image2mexArray(), Image2mexArrayUint8(), image2Orb(), ImageSpring< T >::ImageSpring(), img2ipl(), infoFFT(), FeedForwardNetwork::init(), FeedForwardNetwork::init3L(), ImageSpring< T >::initClustering(), Image< T >::initialized(), SurpriseMap< T >::initModels(), inplaceAddBGnoise2(), inplacePasteGabor(), inplaceSpeckleNoise(), WinnerTakeAllTempNote::input(), TaskRelevanceMapKillStatic::inputFrame(), TaskRelevanceMapTigs2::inputFrame(), TaskRelevanceMapKillN::integrate(), WinnerTakeAllGreedy::integrate(), TaskRelevanceMapGistClassify::integrate(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllStd::integrate(), Image< T >::is1D(), isLocalMax(), Image< T >::isSameSize(), Image< T >::isSquare(), Image< T >::isTransposedVector(), junctionFilterFull(), junctionFilterPartial(), TrainingSet::load(), TrainingSet::loadRebalanced(), ViewPort3D::loadTexture(), lowPassLpt3r(), lowPassLpt3w(), lowPassLpt5r(), lowPassLpt5w(), lowPassPixel(), main(), SDLdisplay::makeBlittableSurface(), BeoMap::makePanorama(), mapCombine(), BeobotVisualCortex::masterCollect(), matrixMult(), maxNormalizeFancy(), maxNormalizeFancyFast(), maxNormalizeFancyLandmark(), maxNormalizeStd(), meanRow(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), multiScaleBatchFilter(), SurpriseImage< T >::neighborhoods(), BeobotVisualCortex::newVisualInput(), nonMaxSuppr(), nonMaxSurp(), normalizeFloat(), normalizeScaleRainbow(), normalizeWithScale(), VectorHistField::obstacleTemplate(), omniDenebulize(), Image< T >::operator*(), Image< T >::operator+(), Image< T >::operator-(), Image< T >::operator/(), Image< T >::operator<<(), Image< T >::operator>>(), optConvolve(), Hmax::origGetC2(), pasteImage(), CINNICstatsRun::pointAndFloodImage(), CINNICstatsRun::polatSagi2AFC(), SVMClassifier::predict(), SimulationViewerStd::prepMapForDisplay(), CINNICstatsRun::preProcess(), CINNICstatsRun::randomMatch(), ColorbarsInput::readFrame(), Image< T >::rectangleOk(), BitObject::reset(), segmentImage::returnNormalizedCandidates(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetOutImage(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicBY(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicCO(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicDR(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicFL(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicGA(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicIN(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicMO(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicOR(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicRG(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputSalMap(), CINNICstatsRun::runPointAndFlood(), CINNIC::RunSimpleImage(), CINNICstatsRun::runStandardStats(), saliencyChamfer34(), SimulationViewerStats::save1(), SimulationViewerStats::saveCompat(), SimulationViewerNerdCam::saveResults(), SingleChannel::saveStats(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeNewBeta(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetOutImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSharpened(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputConspicMap(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputSalMap(), ShiftedImage::setConfigInfo(), DescriptorVec::setFovea(), SalientRegionSegmenter::setImage(), BeoSubCanny::setupCanny(), ColorTracker::setupTracker(), HMM< T >::show(), segmentImageMC2::SIcalcMassCenter(), segmentImageMC::SIcalcMassCenter(), segmentImageMC2::SIcreateMother(), segmentImageMC::SIcreateMother(), segmentImage2::SIcreateMother(), segmentImageMC2::SIgetImageSizeY(), segmentImageMC::SIgetImageSizeY(), segmentImage2::SIgetImageSizeY(), BeobotVisualCortex::singleCPUprocess(), segmentImageMC2::SIreturnNormalizedCandidates(), segmentImageMC::SIreturnNormalizedCandidates(), segmentImage2::SIreturnNormalizedCandidates(), segmentImageTrackMC::SITdrawHistoValues(), segmentImageTrackMC::SITtrackImage(), Histogram::smooth(), spatialPoolMax(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSsetAntiWeights(), RetinaAdapter::start1(), stdevRow(), subtractRow(), sumXY(), SurpriseMapFFT< T >::surprise(), svdPseudoInv(), svdPseudoInvf(), templMatch(), BeobotBrainMT::threadCompute(), SimEventTaskRelevanceMapOutput::toString(), SimEventGistOutput::toString(), SimEventTargetMask::toString(), SimEventVisualCortexOutput::toString(), SimEventShapeEstimatorOutput::toString(), SimEventSaliencyMapOutput::toString(), SimEventAttentionGateOutput::toString(), SimEventVisualBufferOutput::toString(), SimEventRetinaImage::toString(), VisualTracker::trackObjects(), VisualTracker::trackTemplObject(), SVMClassifier::train(), SpaceVariantModule::transform(), transpose(), VisualEventSet::updateEvents(), VectorHistField::updateField(), FOEestimator::updateFOE(), ColorSegmenterI::updateFrame(), SeaBee3GUIIce::updateMessage(), warp3D(), HmaxFL::windowedPatchDistance(), PnmWriter::writeAsciiBW(), PnmWriter::writeGray(), PnmWriter::writeRawBW(), PnmWriter::writeRGB(), and GeometricHashing::writeTable().

template<class T >
int Image< T >::getSize (  )  const [inline]
template<class T >
template<class T2 >
void Image< T >::getVal ( const int  x,
const int  y,
T2 &  val 
) const [inline]

Get value at (x,y), put in val rather that return it.

Definition at line 921 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::coordsOk(), and Image< T >::getWidth().

template<class T >
const T & Image< T >::getVal ( const Point2D< int > &  p  )  const [inline]

Get pixel value at specified coordinates in image.

Definition at line 913 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::coordsOk(), Image< T >::getWidth(), and Point2D< T >::i.

template<class T >
const T & Image< T >::getVal ( const int  x,
const int  y 
) const [inline]

Get pixel value at (x, y) in image.

Definition at line 905 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::coordsOk(), and Image< T >::getWidth().

template<class T >
const T & Image< T >::getVal ( const int  index  )  const [inline]

Get pixel value at index in image.

Reimplemented in Jet< T >, and Jet< float >.

Definition at line 897 of file Image.H.

References ASSERT, Image< T >::begin(), and Image< T >::getSize().

Referenced by HMM< T >::backward(), DescriptorVec::buildParticleCountDV(), DescriptorVec::buildRawDV(), DescriptorVec::buildSingleChannelFV(), segmentImage::calcMassCenter(), LocalBinaryPatterns::colorSum(), computeConvolutionMaps(), TaskRelevanceMapGistClassify::computeGistDist(), ImageSpring< T >::computeStiff(), convolveCleanZero(), CINNIC::convolveTest(), corrEigenMatrix(), countParticles(), GHough::createInvRTable(), segmentImage::createMother(), GHough::createRTable(), dct(), SaliencyMapStd::depress(), SaliencyMapStdOptim::depress(), RawGistEstimatorStd::diffGist(), GistEstimatorGen::diffGist(), ContourBoundaryDetector::displayGradImage(), PN03contrastChannel::doInput(), downscaleFancy(), BitObject::drawBoundingBox(), drawDiskCheckTarget(), SimulationViewerNerdCam::drawMaskOutline(), SimulationViewerStd::drawMaskOutline(), BitObject::drawOutline(), erodeImg(), RG_Lane::evolve(), Gist_Navigation::evolve(), extractBitObjects(), AttentionGateStd::extractFeatureValues(), featureClusterVision< FLOAT >::fCVgetImageBaseStats(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), Histogram::fill(), findBoundingRect(), VisualBufferStd::findMostInterestingTargetLocMax(), flood(), floodClean(), floodCleanBB(), formatMapForDisplay(), HMM< T >::forward(), BlurFoveator::foveate(), SpaceVariantTransform::from(), ImageSpring< T >::getClusteredImage(), Geons3D::getEdgeProb(), getEllipseFromCov(), KalmanFilter::getEstimate(), RawGistEstimatorStd::getGistImage(), GistEstimatorGen::getGistImage(), segmentImage::getHSVvalue(), GHough::getInvVotes(), UKF::getLikelihood(), getLikelyhoodImage(), getLocalAvg(), getLocalMax(), LPTFoveator::getLPT(), ParticleTracker::getNextState(), EyeFilter::getNextState(), EyeFilter::getObservation(), ParticleTracker::getObservation(), getPcaIcaFeatImage(), getPearsonRMatrix(), SpaceVariantTransform::getRFSize(), VisualObjectMatch::getSpatialDist(), ImageSpring< T >::getStats(), ImageSpring< T >::getStatsDist(), Geons3D::getSurfaceProb(), getTensor(), getTensorEigen(), SimulationViewerCompress::getTraj(), SaliencyMapTrivial::getV(), SaliencyMapFast::getV(), SaliencyMapStdOptim::getV(), SaliencyMapStd::getV(), VectorField::getVectorAt(), Histogram::Histogram(), infoFFT(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllTempNote::integrate(), HMM< T >::iteratePath(), TrainingSet::loadRebalanced(), lowPassPixel(), main(), BeoMap::makePanorama(), matrixDet(), matrixMult(), matrixPivot(), maxNormalizeLandmark(), maxNormalizeStd(), Stimulus2D::next(), nonMaxSuppr(), nonMaxSurp(), omniDenebulize(), CINNICstatsRun::pointAndFlood(), CINNICstatsRun::polatSagi2AFC(), SVMClassifier::predict(), UKF::predictObservation(), UKF::predictState(), CINNICstatsRun::preProcess(), CINNICstatsRun::randomMatch(), segmentImage::returnNormalizedCandidates(), CINNICstatsRun::runStandardStats(), segmentLandmark(), segmentObject(), segmentObjectClean(), TensorField::setMax(), HMM< T >::show(), segmentImage2::SIcalcMassCenter(), segmentImageMC2::SIcreateMother(), segmentImageMC::SIcreateMother(), segmentImage2::SIcreateMother(), segmentImage2::SIgetHSVvalue(), segmentImageMC2::SIreturnNormalizedCandidates(), segmentImageMC::SIreturnNormalizedCandidates(), segmentImage2::SIreturnNormalizedCandidates(), Histogram::smooth(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), ScaleRemoveSurprise< FLOAT >::SRSgetBetaParts(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffParts(), ScaleRemoveSurprise< FLOAT >::SRSsetAntiWeights(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), ScaleSurpriseControl< FLOAT >::SSCgetDiffParts(), SurpriseMap< T >::surprise(), SpaceVariantTransform::to(), toPowerRegion(), SVMClassifier::train(), BPnnet::train(), UKF::update(), ColorSegmenterI::updateFrame(), HippocampusI::updateParticleSlamObservation(), warp3D(), and GeometricHashing::writeTable().

template<class T >
T Image< T >::getValInterp ( const Point2D< float > &  p  )  const [inline]

Get pixel value at (x, y) in image with bilinear interpolation.

Definition at line 957 of file Image.H.

References Image< T >::getValInterp(), and Point2D< T >::i.

template<class T >
T Image< T >::getValInterp ( const float  x,
const float  y 
) const [inline]
template<class T >
T Image< T >::getValInterpScaled ( const Point2D< int > &  p,
const Dims pdims 
) const [inline]

Get pixel value with bilinear interpolation at a location (x,y) specified in a different Dims scale.

We first scale the coordinates into the proper Dims for this image, and then use getValInterp()

Definition at line 964 of file Image.H.

References Image< T >::getValInterp(), Dims::h(), Point2D< T >::i, max(), and Dims::w().

template<class T >
int Image< T >::getWidth ( void   )  const [inline]

Get image width.

Definition at line 820 of file Image.H.

Referenced by TCPmessage::addImage(), addNoise(), addPowerNoise(), addRow(), blurAndDecY(), DescriptorVec::buildDV(), buildPyrGabor(), buildPyrRetinexLog(), DescriptorVec::buildRawDV(), ShapeModel::calcDist(), JunctionHOG::calculateJunctionHistogram(), cartesian(), BeoSub::CenterBin(), centerSurround(), chamfer34(), CINNICstatsRun::checkSize(), convolutionMap< T >::CMcopyImage(), colorize(), SurpriseModelOD::combineFrom(), SurpriseModelPM::combineFrom(), ComplexChannel::combineOutputs(), SubmapAlgorithmBiased::compute(), SimulationViewerStats::computeAGStats(), SaliencyMT::computeCMAP(), BeoSubSaliency::computeCMAP(), computeCMAP(), computeConvolutionMaps(), GistEstimatorFFT::computeGistFeatureVector(), VisualObject::computeKeypoints(), CUDAVisualObject::computeKeypoints(), AttentionGateStd::computeMinMaxXY(), ImageSpring< T >::computePos(), contour2D(), convertToQPixmap(), convolve(), convolveCleanZero(), DPM::convolveComponent(), convolveHmax(), DPM::convolveModel(), CINNIC::convolveTest(), Image< T >::coordsOk(), correlation(), corrpatch(), countParticles(), ColorHist::createFeatureVector(), HistogramOfGradients::createHistogramFromGradient(), GHough::createInvRTable(), segmentImage::createMother(), LocalBinaryPatterns::createRawHistogram(), GHough::createRTable(), SpaceVariantModule::cropTransform(), dct(), SaliencyMapStd::depress(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), SaliencyMapStdOptim::depress(), dilateImg(), PsychoDisplay::displayFixationIcon(), ContourBoundaryDetector::displayGradImage(), SDLdisplay::displayImagePatch(), dispResults(), DPM::distanceTrans(), distDegrade(), divideRow(), DisparityChannel::doInput(), ScorrChannel::doInput(), downscaleFancy(), downSize(), downSizeClean(), XWindow::drawImage(), SimulationViewerNerdCam::drawMegaCombo(), BitObject::drawShape(), MotionEnergyPyrBuilder< T >::DrawVectors(), SpatioTemporalEnergyPyrBuilder< T >::DrawVectors(), contourRun::dumpEnergySigmoid(), erodeImg(), StereoRetinaI::evolve(), AttentionGateStd::extractFeatureValues(), HmaxFL::extractRandC1Patch(), featureClusterVision< FLOAT >::fCVgetImageBaseStats(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), featureClusterVision< FLOAT >::fCVsetUpfCV(), featureClusterVision< FLOAT >::fCVuploadImage(), featurePoolHmax(), Histogram::fill(), filterAtLocation(), filterAtLocationBatch(), findBoundingRect(), GeometricHashing::findInHash(), findMax(), findMin(), findMonteMap(), VisualBufferStd::findMostInterestingTargetLocMax(), fixationMask(), flipHoriz(), flipVertic(), flood(), floodCleanBB(), BeoSub::FollowPipeLine(), formatMapForDisplay(), LPTFoveator::foveate(), TestImages::getAllObjMask(), getAugmentedBeliefBayesImage(), GSlocalizer::getBeliefImage(), Beobot2_GistSalLocalizerMasterI::getBeliefImage(), getCleanOpticFlow(), ImageSpring< T >::getClusteredImage(), ShapeModel::getDistVal(), Geons3D::getEdgeProb(), getEllipseFromCov(), FoeDetector::getFoe(), VisualObjectMatch::getFusedImage(), segmentImage::getImageSizeX(), ImageSpring< T >::getIndex(), BeobotVisualCortex::getInputSize(), GHough::getInvVotes(), VisualObject::getKeypointImage(), VisualObject::getKeypointImage2(), getLikelyhoodImage(), getLucasKanadeOpticFlow(), VisualObjectMatch::getMatchImage(), HOG::getMaxGradient(), getMinMaxAvgEtc(), MiddleTemporal::getMTfeaturesDisplay(), SoxChannel::getNonlinearResponse(), getNormalizedBayesImage(), TestImages::getObjMask(), POMDP::getObjProb(), SpectralResidualChannel::getOutput(), RetinaAdapter::getOutput(), TcorrChannel::getOutput(), VisualObjectMatch::getOverlapRect(), getPearsonRMatrix(), ImageSpring< T >::getPositions(), getSalImage(), getSearchCommand(), getSubSum(), getSubSumGen(), Geons3D::getSurfaceProb(), getTensor(), SimulationViewerEyeHand::getTraj(), SimulationViewerHand::getTraj(), SimulationViewerEyeMvtNeuro::getTraj(), SimulationViewerStd::getTraj(), SimulationViewerEyeRegion::getTraj(), SimulationViewerCompress::getTraj(), SimulationViewerEyeMvt::getTraj(), VisualObjectMatch::getTransfTestImage(), AttentionGuidanceMapOpt::getV(), AttentionGuidanceMapStd::getV(), Image< T >::getVal(), Image< T >::getValInterp(), getVector(), getVectorColumn(), getVectorRow(), ImageSpring< T >::getXY(), IEEE1394grabber::grabPrealloc(), gradient(), gradientmag(), gradientori(), gradientSobel(), Beobot::highLevel(), Histogram::Histogram(), Image2mexArray(), Image2mexArrayUint8(), image2Orb(), ImageSpring< T >::ImageSpring(), img2ipl(), infoFFT(), FeedForwardNetwork::init(), FeedForwardNetwork::init3L(), ImageSpring< T >::initClustering(), Image< T >::initialized(), SurpriseMap< T >::initModels(), inplaceAddBGnoise2(), inplacePasteGabor(), inplaceSpeckleNoise(), WinnerTakeAllTempNote::input(), TaskRelevanceMapKillStatic::inputFrame(), TaskRelevanceMapTigs2::inputFrame(), TaskRelevanceMapKillN::integrate(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllStdOptim::integrate(), TaskRelevanceMapGistClassify::integrate(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllStd::integrate(), Image< T >::is1D(), isLocalMax(), Image< T >::isSameSize(), Image< T >::isSquare(), Image< T >::isVector(), junctionFilterFull(), junctionFilterPartial(), TrainingSet::load(), TrainingSet::loadRebalanced(), ViewPort3D::loadTexture(), lowPassLpt3r(), lowPassLpt3w(), lowPassLpt5r(), lowPassLpt5w(), lowPassPixel(), main(), SDLdisplay::makeBlittableSurface(), BeoMap::makePanorama(), mapCombine(), BeobotVisualCortex::masterCollect(), matrixDet(), matrixInv(), matrixPivot(), maxNormalizeFancy(), maxNormalizeFancyFast(), maxNormalizeFancyLandmark(), maxNormalizeStd(), meanRow(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), multiScaleBatchFilter(), SurpriseImage< T >::neighborhoods(), BeobotVisualCortex::newVisualInput(), nonMaxSuppr(), nonMaxSurp(), normalizeFloat(), normalizeScaleRainbow(), normalizeWithScale(), VectorHistField::obstacleTemplate(), omniDenebulize(), Image< T >::operator*(), Image< T >::operator+(), Image< T >::operator-(), Image< T >::operator/(), Image< T >::operator<<(), Image< T >::operator>>(), Image< T >::operator[](), optConvolve(), Hmax::origGetC2(), pasteImage(), CINNICstatsRun::pointAndFloodImage(), CINNICstatsRun::polatSagi2AFC(), SingleChannel::postProcessMap(), SVMClassifier::predict(), UKF::predictObservation(), UKF::predictState(), SimulationViewerStd::prepMapForDisplay(), CINNICstatsRun::preProcess(), CINNICstatsRun::randomMatch(), GeometricHashing::readTable(), Image< T >::rectangleOk(), BitObject::reset(), segmentImage::returnNormalizedCandidates(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetOutImage(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicBY(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicCO(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicDR(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicFL(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicGA(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicIN(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicMO(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicOR(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputConspicRG(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinputSalMap(), Omni< T >::run(), CINNICstatsRun::runPointAndFlood(), CINNIC::RunSimpleImage(), CINNICstatsRun::runStandardStats(), saliencyChamfer34(), SimulationViewerStats::save1(), SimulationViewerStats::saveCompat(), SimulationViewerNerdCam::saveResults(), SingleChannel::saveStats(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeNewBeta(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetOutImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSharpened(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputConspicMap(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputSalMap(), ShiftedImage::setConfigInfo(), DescriptorVec::setFovea(), SalientRegionSegmenter::setImage(), BitObject::setMaxMinAvgIntensity(), BeoSubCanny::setupCanny(), ColorTracker::setupTracker(), Image< T >::setVal(), HMM< T >::show(), segmentImageMC2::SIcalcMassCenter(), segmentImageMC::SIcalcMassCenter(), segmentImageMC2::SIcreateMother(), segmentImageMC::SIcreateMother(), segmentImage2::SIcreateMother(), segmentImageMC2::SIgetImageSizeX(), segmentImageMC::SIgetImageSizeX(), segmentImage2::SIgetImageSizeX(), segmentImageMerge2::SIMclusterColor(), BeobotVisualCortex::singleCPUprocess(), segmentImageMC2::SIreturnNormalizedCandidates(), segmentImageMC::SIreturnNormalizedCandidates(), segmentImage2::SIreturnNormalizedCandidates(), segmentImageTrackMC::SITdrawHistoValues(), segmentImageTrackMC::SITtrackImage(), Histogram::smooth(), spatialPoolMax(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSsetAntiWeights(), RetinaAdapter::start1(), stdevRow(), subtractRow(), sumXY(), SurpriseMapFFT< T >::surprise(), svdPseudoInv(), svdPseudoInvf(), templMatch(), BeobotBrainMT::threadCompute(), SimEventTaskRelevanceMapOutput::toString(), SimEventGistOutput::toString(), SimEventTargetMask::toString(), SimEventVisualCortexOutput::toString(), SimEventShapeEstimatorOutput::toString(), SimEventSaliencyMapOutput::toString(), SimEventAttentionGateOutput::toString(), SimEventVisualBufferOutput::toString(), SimEventRetinaImage::toString(), trace(), VisualTracker::trackObjects(), trackPoint(), VisualTracker::trackTemplObject(), SVMClassifier::train(), SpaceVariantModule::transform(), transpose(), UKF::update(), VisualEventSet::updateEvents(), VectorHistField::updateField(), FOEestimator::updateFOE(), ColorSegmenterI::updateFrame(), SeaBee3GUIIce::updateMessage(), warp3D(), warp3Dmap(), HmaxFL::windowedPatchDistance(), PnmWriter::writeAsciiBW(), PnmWriter::writeGray(), PnmWriter::writeRawBW(), PnmWriter::writeRGB(), SimulationViewerNerdCam::writeStatusPage(), and GeometricHashing::writeTable().

template<class T>
bool Image< T >::hasSameData ( const Image< T > &  b  )  const [inline]

For testing/debugging only.

See if we are pointing to the same ArrayData<T> as is the other Image<T>.

Definition at line 1337 of file Image.H.

template<class T >
bool Image< T >::initialized (  )  const [inline]

Check whether image is non-empty (i.e., non-zero height and width).

Definition at line 805 of file Image.H.

References Image< T >::getHeight(), and Image< T >::getWidth().

Referenced by DirectFeedChannel::applyMaxNorm(), GenericFrame::asGrayF32(), GenericFrame::asRgbF32(), InferoTemporalSalBayes::attentionShift(), InferoTemporalStd::attentionShift(), InferoTemporalSIFT::attentionShift(), InferoTemporalHmax::attentionShift(), SaliencyMapTrivial::blinkSuppression(), SaliencyMapFast::blinkSuppression(), RegSaliency::calcFlicker(), RegSaliency::calcIntensity(), RegSaliency::calcMotion(), RegSaliency::calcOrientation(), HistogramOfGradients::calculateGradient(), chamfer34(), convolutionMap< T >::CMcheckInit2(), colGreyCombo(), ComplexChannel::combineOutputs(), RawVisualCortex::combineOutputs(), IntegerRawVisualCortex::combineOutputsInt(), IntegerComplexChannel::combineOutputsInt(), SimulationViewerStats::computeAGStats(), SaliencyMT::computeCMAP(), BeoSubSaliency::computeCMAP(), VisualObject::computeKeypoints(), CUDAVisualObject::computeKeypoints(), SceneRec::computeLocation(), contour2D(), convolveCleanZero(), convolveHmax(), DPM::convolveModel(), corrcoef(), correlation(), dct(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), dilateImg(), dispResults(), AttentionGuidanceMap::doClockTick(), MichelsonChannel::doInput(), MotionChannel::doInput(), MultiColorBandChannel::doInput(), PN03contrastChannel::doInput(), DepthMotionChannel::doInput(), SpectralResidualChannel::doInput(), DummyChannel::doInput(), H2SVChannel::doInput(), RGBConvolveChannel::doInput(), SingleChannel::doInput(), SOColorChannel::doInput(), OrientationChannel::doInput(), MotionOpticalFlowChannel::doInput(), CIELabChannel::doInput(), FlickerChannel::doInput(), MultiSpectralResidualChannel::doInput(), ObjDetChannel::doInput(), StereoChannel::doInput(), TcorrChannel::doInput(), MultiConvolveChannel::doInput(), ScorrChannel::doInput(), SIFTChannel::doInput(), MultiDirectFeedChannel::doInput(), ForegroundDetectionChannel::doInput(), VarianceChannel::doInput(), HueChannel::doInput(), DirectFeedChannel::doInput(), EntropyChannel::doInput(), IntensityBandChannel::doInput(), FlickerNBackChannel::doInput(), InformationChannel::doInput(), MotionSpatioTemporalChannel::doInput(), SoxChannel::doInput(), ContourChannel::doInput(), ColorChannel::doInput(), RegSaliency::doInput(), DirectionSpatioTemporalChannel::doInput(), ImageCacheAvg< T >::doWhenAdd(), ImageCacheAvg< T >::doWhenRemove(), BitObject::drawBoundingBox(), drawDiskCheckTarget(), BitObject::drawOutline(), BitObject::drawShape(), erodeImg(), StereoVision::evolve(), VisionBrainComponentI::evolve(), Beobot2GistSalMasterI::evolve(), BeoCamera::evolve(), InferotemporalCortexI::evolve(), SeaBee3GUICommunicator::evolve(), RetinaI::evolve(), SceneUnderstanding::evolveBrain(), findBoundingRect(), findMax(), findMin(), flood(), floodClean(), floodCleanBB(), formatMapForDisplay(), PopulationHeadingMap::getFOE(), DescriptorVec::getFoveaImage(), JpegParser::getFrame(), JpegParser::getFrameSpec(), BotControl::getImageSensor(), BeobotVisualCortex::getInputSize(), UKF::getLikelihood(), SoxChannel::getLinearResponse(), getLocalAvg(), getLocalMax(), getMaskedMinMax(), getMaskedMinMaxAvg(), getMaskedMinMaxSumArea(), SimulationViewerStd::getMegaComboMaps(), getMinMax(), getMinMaxAvg(), getMinMaxAvgEtc(), SoxChannel::getNonlinearResponse(), ComplexChannel::getOutput(), SpectralResidualChannel::getOutput(), SingleChannel::getOutput(), RetinaAdapter::getOutput(), VisualCortexEyeMvt::getOutput(), DirectFeedChannel::getOutput(), SpaceVariantModule::getScaleSpace(), ImageSpring< T >::getStats(), ImageSpring< T >::getStatsDist(), SimulationViewerEyeHand::getTraj(), SimulationViewerEyeMvtNeuro::getTraj(), SimulationViewerStd::getTraj(), SimulationViewerNerdCam::getTraj(), SimulationViewerEyeRegion::getTraj(), SimulationViewerCompress::getTraj(), SimulationViewerEyeMvt::getTraj(), VisualObjectMatch::getTransfTestImage(), AttentionGuidanceMapOpt::getV(), AttentionGuidanceMapStd::getV(), SaliencyMapStd::getV(), goodness_map(), V4Lgrabber::grabRaw(), V4L2grabber::grabRaw(), V4L2grabber::grabSingleRaw(), V4Lgrabber::grabSingleRaw(), SingleChannel::hasOutputCache(), highThresh(), image2Orb(), ImageSpring< T >::ImageSpring(), inplaceAddBGnoise2(), inplaceAddWeighted(), inplaceNormalize(), inplaceSpeckleNoise(), SaliencyMapFast::input(), WinnerTakeAllTempNote::input(), WinnerTakeAllStdOptim::input(), WinnerTakeAllStd::input(), EnvVisualCortexFloat::input(), SaliencyMapTrivial::input(), SaliencyMapStdOptim::input(), VisualBufferStd::input(), EnvVisualCortex::input(), SaliencyMapStd::input(), TaskRelevanceMapKillStatic::inputFrame(), intgGetRGBY(), isFinite(), JpegParser::JpegParser(), learningCoeff(), main(), mapCombine(), matrixMult(), maxNormalizeFancy(), maxNormalizeFancyFast(), maxNormalizeFancyLandmark(), maxNormalizeLandmark(), maxNormalizeStd(), Stimulus2D::next(), normalizeScaleRainbow(), normalizeWithScale(), VisualObject::operator=(), optConvolve(), DummyChannel::outputAvailable(), MichelsonChannel::outputAvailable(), SobelChannel::outputAvailable(), ContourChannel::outputAvailable(), DirectionOpticalFlowChannel::outputAvailable(), ScorrChannel::outputAvailable(), SpectralResidualChannel::outputAvailable(), EntropyChannel::outputAvailable(), ForegroundDetectionChannel::outputAvailable(), SingleChannel::outputAvailable(), InformationChannel::outputAvailable(), PN03contrastChannel::outputAvailable(), ObjDetChannel::outputAvailable(), SIFTChannel::outputAvailable(), VarianceChannel::outputAvailable(), IntegerSimpleChannel::outputAvailable(), BeobotBrainMT::outputReady(), Stimulus2D::peekFrameSpec(), RegSaliency::postChannel(), UKF::predictObservation(), UKF::predictState(), BitObject::reset(), RMSerr(), RetinaI::run(), RegSaliency::runSaliency(), SaliencyMapFast::saccadicSuppression(), SaliencyMapTrivial::saccadicSuppression(), saliencyChamfer34(), RetinaAdapter::save1(), SimulationViewerStats::save1(), SimulationViewerNerdCam::saveResults(), segmentLandmark(), segmentObject(), segmentObjectClean(), SingleChannel::setClipPyramid(), SingleSvChannel::setClipPyramid(), showAllObjects(), BeobotVisualCortex::singleCPUprocess(), BeobotVisualCortex::slaveProcess(), templMatch(), BeobotBrainMT::threadCompute(), toRGB(), VisualTracker::trackTemplObject(), SpaceVariantModule::transform(), SpaceVariantDoGModule::transformDoG(), SpaceVariantDoGModule::transformDoGPyramid(), SpaceVariantEdgeModule::transformEdge(), SpaceVariantEdgeModule::transformEdgePyramid(), SpaceVariantModule::transformPyramid(), OptimalGainsFinder::visitComplexChannel(), OptimalGainsFinder::visitSingleChannel(), and VisualObject::VisualObject().

template<class T >
bool Image< T >::is1D (  )  const [inline]

Check if the image is 1D, i.e., width == 1 or height == 1.

Definition at line 845 of file Image.H.

References Image< T >::getHeight(), and Image< T >::getWidth().

template<class T >
template<class C >
bool Image< T >::isSameSize ( const C &  other  )  const [inline]
template<class T >
bool Image< T >::isShared (  )  const throw () [inline]

For testing/debugging only.

Check if the ArrayHandle is shared.

Definition at line 1346 of file Image.H.

Referenced by fill().

template<class T >
bool Image< T >::isSquare (  )  const [inline]

Check if the image is square, i.e., width == height.

Definition at line 860 of file Image.H.

References Image< T >::getHeight(), and Image< T >::getWidth().

Referenced by matrixDet(), matrixInv(), matrixPivot(), and trace().

template<class T >
bool Image< T >::isTransposedVector (  )  const [inline]

Check if the image is a transposed vector, i.e., height == 1.

Definition at line 855 of file Image.H.

References Image< T >::getHeight().

template<class T >
bool Image< T >::isVector (  )  const [inline]

Check if the image is a vector, i.e., width == 1.

Definition at line 850 of file Image.H.

References Image< T >::getWidth().

template<class T >
template<class T2 >
Image< typename promote_trait< T, T2 >::TP > Image< T >::operator* ( const Image< T2 > &  img  )  const [inline]

Point-wise multiply *this by img and return result.

Definition at line 1288 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), Image< T >::isSameSize(), and NO_INIT.

template<class T >
template<class T2 >
Image< typename promote_trait< T, T2 >::TP > Image< T >::operator* ( const T2 &  val  )  const [inline]

Multiply scalar each point in *this by scalar and return result.

Definition at line 1208 of file Image.H.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), and NO_INIT.

template<class T >
template<class T2 >
Image< T > & Image< T >::operator*= ( const Image< T2 > &  A  )  [inline]

Multiply image by image, point-by-point, clamp result as necessary.

Definition at line 1147 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::endw(), and Image< T >::isSameSize().

template<class T>
Image< T > & Image< T >::operator*= ( const T &  val  )  [inline]

Multiply image by constant, clamp result as necessary.

Definition at line 1083 of file Image.H.

References Image< T >::beginw(), and Image< T >::endw().

template<class T >
template<class T2 >
Image< typename promote_trait< T, T2 >::TP > Image< T >::operator+ ( const Image< T2 > &  img  )  const [inline]

Point-wise add img to image and return result.

Definition at line 1258 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), Image< T >::isSameSize(), and NO_INIT.

template<class T >
template<class T2 >
Image< typename promote_trait< T, T2 >::TP > Image< T >::operator+ ( const T2 &  val  )  const [inline]

Add scalar to each point in *this and return result.

Definition at line 1182 of file Image.H.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), and NO_INIT.

template<class T >
template<class T2 >
Image< T > & Image< T >::operator+= ( const Image< T2 > &  A  )  [inline]

Add image to image, clamp result as necessary.

Definition at line 1123 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::endw(), and Image< T >::isSameSize().

template<class T>
Image< T > & Image< T >::operator+= ( const T &  val  )  [inline]

Add constant to image, clamp result as necessary.

Definition at line 1063 of file Image.H.

References Image< T >::beginw(), and Image< T >::endw().

template<class T >
template<class T2 >
Image< typename promote_trait< T, T2 >::TP > Image< T >::operator- ( const Image< T2 > &  img  )  const [inline]

Point-wise subtract img from *this and return result.

Definition at line 1273 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), Image< T >::isSameSize(), and NO_INIT.

template<class T >
template<class T2 >
Image< typename promote_trait< T, T2 >::TP > Image< T >::operator- ( const T2 &  val  )  const [inline]

Subtract scalar from each point in *this and return result.

Definition at line 1195 of file Image.H.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), and NO_INIT.

template<class T >
template<class T2 >
Image< T > & Image< T >::operator-= ( const Image< T2 > &  A  )  [inline]

Subtract image from image, clamp result as necessary.

Definition at line 1135 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::endw(), and Image< T >::isSameSize().

template<class T>
Image< T > & Image< T >::operator-= ( const T &  val  )  [inline]

Subtract constant from image, clamp result as necessary.

Definition at line 1073 of file Image.H.

References Image< T >::beginw(), and Image< T >::endw().

template<class T >
template<class T2 >
Image< typename promote_trait< T, T2 >::TP > Image< T >::operator/ ( const Image< T2 > &  img  )  const [inline]

Point-wise divide *this by img and return result.

Definition at line 1303 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), Image< T >::isSameSize(), and NO_INIT.

template<class T >
template<class T2 >
Image< typename promote_trait< T, T2 >::TP > Image< T >::operator/ ( const T2 &  val  )  const [inline]

Divide each point in *this by scalar and return result.

Definition at line 1221 of file Image.H.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), and NO_INIT.

template<class T >
template<class T2 >
Image< T > & Image< T >::operator/= ( const Image< T2 > &  A  )  [inline]

Divide image by image, point-by-point, clamp result as necessary.

Definition at line 1159 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::endw(), and Image< T >::isSameSize().

template<class T>
Image< T > & Image< T >::operator/= ( const T &  val  )  [inline]

Divide image by constant, clamp result as necessary.

Definition at line 1093 of file Image.H.

References Image< T >::beginw(), and Image< T >::endw().

template<class T >
Image< T > Image< T >::operator<< ( const unsigned int  nbits  )  const [inline]

Bit-shift left by constant and return result (type T must have operator<<()).

Definition at line 1234 of file Image.H.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), and NO_INIT.

template<class T >
Image< T > & Image< T >::operator<<= ( const unsigned int  nbits  )  [inline]

Bit-shift left by constant (type T must have operator<<()).

Definition at line 1103 of file Image.H.

References Image< T >::beginw(), and Image< T >::endw().

template<class T >
template<class T2 >
Image< T > & Image< T >::operator= ( const Image< T2 > &  A  )  [inline]

Conversion assigment operator.

e.g.:

      Image<byte> im1; Image<float> im2; im2 = im1;

Definition at line 664 of file Image.H.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::endw(), Image< T >::getDims(), and NO_INIT.

template<class T>
Image< T > & Image< T >::operator= ( const Image< T > &  A  )  [inline]

Assigment operator.

e.g.:

      Image<byte> im1, im2; im2 = im1;

Reimplemented in Jet< T >, and Jet< float >.

Definition at line 655 of file Image.H.

References Image< T >::swap().

template<class T>
bool Image< T >::operator== ( const Image< T > &  that  )  const [inline]

Equality: true if the images are the same size and all pixels are equal.

Definition at line 1054 of file Image.H.

References Image< T >::begin(), Image< T >::end(), and Image< T >::isSameSize().

template<class T >
Image< T > Image< T >::operator>> ( const unsigned int  nbits  )  const [inline]

Bit-shift right by constant and return result (type T must have operator>>()).

Definition at line 1246 of file Image.H.

References Image< T >::begin(), Image< T >::beginw(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getWidth(), and NO_INIT.

template<class T >
Image< T > & Image< T >::operator>>= ( const unsigned int  nbits  )  [inline]

Bit-shift right by constant (type T must have operator>>()).

Definition at line 1113 of file Image.H.

References Image< T >::beginw(), and Image< T >::endw().

template<class T >
const T & Image< T >::operator[] ( const Point2D< int > &  p  )  const [inline]

Access image elements through C array index interface.

Definition at line 889 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::coordsOk(), Image< T >::getWidth(), and Point2D< T >::i.

template<class T >
T & Image< T >::operator[] ( const Point2D< int > &  p  )  [inline]

Access image elements through C array index interface.

Definition at line 881 of file Image.H.

References ASSERT, Image< T >::beginw(), Image< T >::coordsOk(), Image< T >::getWidth(), and Point2D< T >::i.

template<class T >
const T & Image< T >::operator[] ( const int  index  )  const [inline]

Access image elements through C array index interface.

Definition at line 873 of file Image.H.

References ASSERT, Image< T >::begin(), and Image< T >::getSize().

template<class T >
T & Image< T >::operator[] ( const int  index  )  [inline]

Access image elements through C array index interface.

Definition at line 865 of file Image.H.

References ASSERT, Image< T >::beginw(), and Image< T >::getSize().

template<class T >
template<class T2 >
Image< T > & Image< T >::operator|= ( const Image< T2 > &  A  )  [inline]

Bitwise-or image by image, point-by-point, clamp result as necessary.

Definition at line 1171 of file Image.H.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::endw(), and Image< T >::isSameSize().

template<class T >
bool Image< T >::rectangleOk ( const Rectangle rect  )  const [inline]

Test whether rectangle fits in image.

Definition at line 1044 of file Image.H.

References Rectangle::bottomI(), Image< T >::getHeight(), Image< T >::getWidth(), Rectangle::left(), Rectangle::rightI(), and Rectangle::top().

Referenced by corrpatch().

template<class T >
long Image< T >::refCount (  )  const throw () [inline]

For testing/debugging only.

Returns the current reference count.

Definition at line 1342 of file Image.H.

template<class T >
void Image< T >::resize ( const int  width,
const int  height,
const bool  clear = false 
) [inline]

Free mem and realloc new array (array contents are lost).

Use rescale() instead if you want to preserve image contents.

Definition at line 752 of file Image.H.

References Image< T >::resize().

template<class T >
void Image< T >::resize ( const Dims dims,
const bool  clear = false 
) [inline]

Free mem and realloc new array (array contents are lost).

Use rescale() instead if you want to preserve image contents.

Definition at line 728 of file Image.H.

References Image< T >::clear(), Image< T >::getDims(), NO_INIT, and ZEROS.

Referenced by BPnnet::BPnnet(), centerSurround(), SimulationViewerStats::computeAGStats(), BeoSubSaliency::computeCMAP(), SaliencyMT::computeCMAP(), computeConvolutionMaps(), Graph::computeDistances(), AttentionGateStd::computeFeatureDistance(), GistEstimatorFFT::computeGistFeatureVector(), CINNIC::convolveTest(), corrEigenMatrix(), segmentImage::createMother(), SimulationViewerStd::doEventRetinaImage(), SimulationViewerEyeMvtNeuro::doEventRetinaImage(), VarianceChannel::doInput(), ScorrChannel::doInput(), PN03contrastChannel::doInput(), MichelsonChannel::doInput(), H2SVChannel::doInput(), EntropyChannel::doInput(), CIELabChannel::doInput(), downscaleFancy(), SimulationViewerStd::drawMegaCombo(), SimulationViewerNerdCam::drawMegaCombo(), VisualEventSet::drawTokens(), contourRun::dumpEnergySigmoid(), Gist_Navigation::evolve(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), featureClusterVision< FLOAT >::fCVsetUpfCV(), flood(), floodClean(), floodCleanBB(), formatMapForDisplay(), getAugmentedBeliefBayesImage(), GistEstimatorGen::getFeatureVector(), getLikelyhoodImage(), HOG::getMaxGradient(), SimulationViewerStd::getMegaComboMaps(), getNormalizedBayesImage(), TcorrChannel::getOutput(), SpectralResidualChannel::getOutput(), getPearsonRMatrix(), getSearchCommand(), SimulationViewerStd::getTraj(), SimulationViewerEyeRegion::getTraj(), SimulationViewerEyeMvtNeuro::getTraj(), SimulationViewerEyeMvt::getTraj(), SimulationViewerEyeHand::getTraj(), SimulationViewerCompress::getTraj(), VisualObjectMatch::getTransfTestImage(), GistEstimatorFFT::GistEstimatorFFT(), GistEstimatorStd::GistEstimatorStd(), BeobotCamera::grab(), KalmanFilter::init(), FeedForwardNetwork::init(), Jet< T >::init(), ImageSpring< T >::init(), BeobotVisualCortex::init(), WinnerTakeAllStdOptim::input(), WinnerTakeAllTempNote::input(), WinnerTakeAllStd::input(), VisualBufferStd::input(), SaliencyMapStdOptim::input(), SaliencyMapStd::input(), TaskRelevanceMapSocial::inputFrame(), Jet< T >::Jet(), main(), BeoMap::makePanorama(), maxNormalizeLandmark(), normalizeScaleRainbow(), normalizeWithScale(), Hmax::origGetC2(), CINNICstatsRun::pointAndFloodImage(), RawGistEstimatorStd::RawGistEstimatorStd(), readImageFromStream(), Image< T >::resize(), covEstimate< T >::returnCovSlice(), segmentImage::returnNormalizedCandidates(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSfindConvolutionEndPoints(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSgetOutImage(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSinit(), BeoSubTaskDecoder::runDecoder(), CINNICstatsRun::runPointAndFlood(), CINNIC::RunSimpleImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeNewBeta(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCfindConvolutionEndPoints(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetBetaImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetFrame(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetLocalBiasImages(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetOutImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetRawInImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSeperableParts(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCgetSharpened(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinit(), segmentImage::segment(), segmentImage::setFrame(), CINNICstatsRun::setStuff(), BeoSubCanny::setupCanny(), segmentImageMC2::SIcreateMother(), segmentImageMC::SIcreateMother(), segmentImage2::SIcreateMother(), BeobotVisualCortex::singleCPUprocess(), segmentImageMC2::SIreturnNormalizedCandidates(), segmentImageMC::SIreturnNormalizedCandidates(), segmentImage2::SIreturnNormalizedCandidates(), segmentImage2::SIsegment(), segmentImageMC2::SIsetFrame(), segmentImageMC::SIsetFrame(), segmentImage2::SIsetFrame(), segmentImageTrackMC::SITdrawHistoValues(), segmentImageTrackMC::SITsmoothImage(), segmentImageTrackMC::SITtrackImage(), segmentImageTrackMC::SITtrackImageAny(), StimMaker::SM_init(), splitPosNeg(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSgetBetaParts(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffImage(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffParts(), ScaleRemoveSurprise< FLOAT >::SRSinit(), ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), ScaleSurpriseControl< FLOAT >::SSCgetBiasParts(), ScaleSurpriseControl< FLOAT >::SSCgetDiffImage(), ScaleSurpriseControl< FLOAT >::SSCgetDiffParts(), ScaleSurpriseControl< FLOAT >::SSCgetSeperableParts(), ScaleSurpriseControl< FLOAT >::SSCinit(), VisualBufferStd::start1(), BeobotCamera::start2(), ColorSegmenterI::updateFrame(), and CINNIC::viewNeuronTemplate().

template<class T >
template<class T2 >
void Image< T >::setVal ( const Point2D< int > &  p,
const T2 &  value 
) [inline]

Set value in image at Point2D<int>

Definition at line 993 of file Image.H.

References ASSERT, Image< T >::beginw(), Image< T >::coordsOk(), Image< T >::getWidth(), and Point2D< T >::i.

template<class T >
template<class T2 >
void Image< T >::setVal ( const int  x,
const int  y,
const T2 &  value 
) [inline]

Set value in image at (x, y).

Definition at line 985 of file Image.H.

References ASSERT, Image< T >::beginw(), Image< T >::coordsOk(), and Image< T >::getWidth().

template<class T >
template<class T2 >
void Image< T >::setVal ( const int  index,
const T2 &  value 
) [inline]

Set value in image at index.

Definition at line 977 of file Image.H.

References ASSERT, Image< T >::beginw(), and Image< T >::getSize().

Referenced by TestJoyStickListener::axis(), binomialKernel(), TestJoyStickListener::button(), computeConvolutionMaps(), Graph::computeDistances(), TaskRelevanceMapGistClassify::computeGistDist(), CINNIC::convolveTest(), corrEigenMatrix(), segmentImage::createMother(), dct(), ContourBoundaryDetector::displayGradImage(), HippocampusI::displayMap(), downscaleFancy(), BitObject::drawBoundingBox(), drawDiskCheckTarget(), BitObject::drawOutline(), contourRun::dumpEnergySigmoid(), Gist_Navigation::evolve(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), flood(), floodClean(), floodCleanBB(), BlurFoveator::foveate(), LPTFoveator::foveate(), PyrFoveator::foveate(), gaussian(), gaussianBlob(), gaussianBlobUnnormalized(), TestImages::getAllObjMask(), Hmax::getC2(), CameraIntrinsicParam::getCameraMatrix(), AutomateXWin::getImage(), getLikelyhoodImage(), LPTFoveator::getLPT(), Localization::getNormalizer(), getPearsonRMatrix(), VisualObjectMatch::getSpatialDist(), getTensorEigen(), highlightRegions(), Histogram::Histogram(), FeedForwardNetwork::init(), KalmanFilter::init(), inplaceSpeckleNoise(), LPTFoveator::invLPT(), lowPassPixel(), main(), BeoMap::makePanorama(), matrixDet(), nonMaxSuppr(), CINNICstatsRun::pointAndFlood(), Localization::predict(), UKF::predictObservation(), UKF::predictState(), CINNICstatsRun::preProcess(), BPnnet::randomizeWeights(), segmentImage::returnNormalizedCandidates(), CINNICstatsRun::runStandardStats(), Stimulus2D::setConfigInfo(), TensorField::setMax(), HMM< T >::setStateEmission(), HMM< T >::setStateTransition(), FovealTransform::setup(), VectorField::setVectorAt(), segmentImageMC2::SIcreateMother(), segmentImageMC::SIcreateMother(), segmentImage2::SIcreateMother(), BeobotVisualCortex::singleCPUprocess(), segmentImageMC2::SIreturnNormalizedCandidates(), segmentImageMC::SIreturnNormalizedCandidates(), segmentImage2::SIreturnNormalizedCandidates(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), MultiConvolveChannel::start1(), toPowerRegion(), HMM< T >::train(), BPnnet::train(), ColorSegmenterI::updateFrame(), HippocampusI::updateParticleSlamObservation(), CINNIC::viewNeuronTemplate(), and warp3D().

template<class T >
uint Image< T >::size (  )  const [inline]
template<class T>
void Image< T >::swap ( Image< T > &  other  )  [inline]

Swap the contents of two images.

Definition at line 696 of file Image.H.

Referenced by Image< T >::freeMem(), Image< T >::operator=(), and Jet< T >::operator=().


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