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

Image< T > Class Template Reference

#include <Image/Image.H>

Inheritance diagram for Image< T >:

Inheritance graph
[legend]
List of all members.

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 73 of file Image.H.

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.

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.


Member Typedef Documentation

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

Read-only iterator.

Definition at line 267 of file Image.H.

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

Read/write iterator.

Definition at line 265 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 585 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 591 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 597 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 603 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 609 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 615 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 621 of file Image.H.

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

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

Destructor.

Definition at line 659 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 683 of file Image.H.

References WRITE_THRU.

Referenced by Ice2Image(), Image_xx_attach_detach_xx_1(), 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 744 of file Image.H.

Referenced by abs(), absDiff(), addRow(), average(), averageWeighted(), avgOrient(), binaryReverse(), blurAndDecY(), centerSurround(), chamfer34(), clampedDiff(), colorize(), colorStain(), SurpriseModelOD::combineFrom(), SurpriseModelPM::combineFrom(), composite(), SimulationViewerStats::computeAGStats(), AttentionGateStd::computeMinMaxXY(), concatArray(), concatX(), concatY(), contour2D(), convertToQPixmap(), convolveCleanHelper(), convolveCleanZero(), WeightFilter::convolveHmax(), convolveHmax(), convolveWithMaps(), convolveZeroHelper(), corrcoef(), correlation(), corrpatch(), countThresh(), crop(), deBayer(), decX(), decXY(), decY(), dilateImg(), distance(), distDegrade(), divideRow(), VarianceChannel::doInput(), MultiColorBandChannel::doInput(), MichelsonChannel::doInput(), IntensityBandChannel::doInput(), H2SVChannel::doInput(), EntropyChannel::doInput(), CIELabChannel::doInput(), dotprod(), drawContour2D(), BitObject::drawShape(), MotionEnergyPyrBuilder< T >::DrawVectors(), dumpImage(), emptyArea(), erodeImg(), exp(), featurePoolHmax(), FourierEngine< T >::fft(), filterAtLocationBatch(), findMax(), findMin(), findNonZero(), flipHoriz(), flipVertic(), gameOfLifeUpdate(), getAugmentedBeliefBayesImage(), getColor(), getError(), PnmParser::getFrame(), VisualObjectMatch::getFusedImage(), getLikelyhoodImage(), getMaskedMinMax(), getMaskedMinMaxAvg(), getMaskedMinMaxSumArea(), SurpriseImage< T >::getMean(), getMinMax(), getMinMaxAvg(), getMinMaxAvgEtc(), getNormalizedBayesImage(), POMDP::getObjProb(), LayerDecoder::getOutput(), SpectralResidualChannel::getOutput(), getPixelComponentImage(), getRange(), getSubSum(), getSubSumGen(), WinnerTakeAllTempNote::getV(), WinnerTakeAllStd::getV(), SaliencyMapStd::getV(), Image< T >::getVal(), Jet< T >::getVal(), Image< T >::getValInterp(), SurpriseImage< T >::getVar(), getVector(), getVectorColumn(), getVectorRow(), WinnerTakeAllTempNote::getVth(), lobot::global_flow(), gradient(), gradientmag(), gradientori(), gradientSobel(), hmaxActivation(), houghTrans(), hueDistance(), Image< T >::Image(), Image2mexArray(), Image2mexArrayUint8(), Image_xx_begin_end_xx_1(), Image_xx_default_construct_xx_1(), Image_xx_orientedFilter_xx_1(), SurpriseImage< T >::init(), inplaceAddWeighted(), inplaceEmbed(), inplacePaste(), inplacePasteGabor(), inplaceSetValMask(), SaliencyMapStd::input(), LayerModule::input(), VirtualVoxelSalMap< T >::inputNewImage(), WinnerTakeAllStdOptim::integrate(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllStd::integrate(), interpolate(), intgCenterSurround(), intgMaxNormalizeStd(), intgOrientedFilter(), intgQuadEnergy(), intgRescale(), intgShiftImage(), intX(), intXY(), intXYWithPad(), intY(), inverse(), isFinite(), isLocalMax(), joinLogampliPhase(), junctionFilterFull(), junctionFilterPartial(), learningCoeff(), PatchSet::load(), TrainingSet::load(), TrainingSet::loadRebalanced(), POMDP::locateObject(), log(), log10(), logPolarTransform(), logSig(), lowPass3x(), lowPass3y(), lowPass5x(), lowPass5xDecX(), lowPass5y(), lowPass5yDecY(), lowPass9x(), lowPass9y(), lowPassLpt3r(), lowPassLpt3w(), lowPassLpt5r(), lowPassLpt5w(), main(), makeBinary(), makeBinary2(), Nv2UiJob::makeInhibitionMarkup(), makeRGB(), makeSparceMap(), meanAbsDiff(), median3x(), median3y(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), multiScaleBatchFilter(), negexp(), normalize(), normalizeScaleRainbow(), normalizeWithScale(), operator *(), Image< T >::operator *(), Image< T >::operator *=(), operator+(), Image< T >::operator+(), Image< T >::operator+=(), operator-(), Image< T >::operator-(), Image< T >::operator-=(), operator/(), Image< T >::operator/(), Image< T >::operator/=(), Image< T >::operator=(), Image< T >::operator==(), Image< T >::operator[](), Image< T >::operator|=(), WeightFilter::optConvolve(), optConvolve(), orientedFilter(), Hmax::origGetC2(), overlay(), overlayStain(), pasteImage(), SurpriseImage< T >::preComputeHyperParams(), LayerDecoder::push(), quadEnergy(), quickInterpolate(), quickLocalAvg(), quickLocalAvg2x2(), quickLocalMax(), quickLocalMin(), rangeOf(), remapRange(), replaceVals(), rescaleBilinear(), rescaleNI(), retinexCompareNeighbors(), 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(), segmentColor(), BitObject::setMaxMinAvgIntensity(), RealVoxel< T >::setSlice(), shift(), shiftClean(), shiftImage(), dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::sigmoid(), segmentImageMC::SIsegment(), segmentImageTrackMC::SITsmoothImage(), segmentImageTrackMC::SITtrackImage(), RealVoxel< T >::sliceOp(), 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(), takeMax(), takeMin(), thresholdedMix(), toPower(), toPowerRegion(), toRGB(), trace(), BackpropNetwork::train(), transform(), transpose(), weightedBlur(), PnmWriter::writeAsciiBW(), writeImageToStream(), PlaintextWriter::writePlaintextGrayF32(), PlaintextWriter::writePlaintextGrayU8(), PnmWriter::writeRawBW(), WeightFilter::xFilter(), xFilter(), WeightFilter::yFilter(), yFilter(), and zoomXY().

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 752 of file Image.H.

Referenced by abs(), absDiff(), SwpeScorer::accum(), addNoise(), addRow(), apply(), average(), averageWeighted(), avgOrient(), binaryReverse(), SaliencyMapStd::blinkSuppression(), blurAndDecY(), centerSurround(), chamfer34(), clampedDiff(), Image< T >::clear(), convolutionMap< T >::CMcopyImage(), colorize(), colorStain(), composite(), WeightsMask::compute(), compute_spatial_histogram(), SimulationViewerStats::computeAGStats(), ComputeCMAP(), AttentionGateStd::computeFeatureDistance(), TaskRelevanceMapGistClassify::computeGistDist(), GistEstimatorFFT::computeGistFeatureVector(), SimulationViewerStats::computeLAMStats(), AffineTransform::computeTransform(), concatArray(), concatX(), concatY(), contour2D(), convertToImage(), convolveCleanHelper(), convolveCleanZero(), convolveHmax(), convolveWithMaps(), convolveZeroHelper(), corrEigenMatrix(), correlation(), crop(), deBayer(), decX(), decXY(), decY(), SaliencyMapStdOptim::depress(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), SaliencyMapStd::depress(), diff(), dilateImg(), distDegrade(), divideRow(), dogFilter(), dogFilterHmax(), VarianceChannel::doInput(), ScorrChannel::doInput(), PN03contrastChannel::doInput(), MichelsonChannel::doInput(), H2SVChannel::doInput(), EntropyChannel::doInput(), CIELabChannel::doInput(), downscaleFancy(), drawFilledPolygon(), drawFilledRect(), BitObject::drawShape(), erodeImg(), BeoLRF::evolve(), exp(), eye(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), featureClusterVision< FLOAT >::fCVprocessOutSaccadeData(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), fill(), filterAtLocation(), findMonteMap(), findNonZero(), flipHoriz(), flipVertic(), flood(), fromARGB(), fromMono(), fromRGB(), fromRGB555(), fromRGB565(), fromVideoHM12(), fromVideoYUV24(), fromVideoYUV410P(), fromVideoYUV411(), fromVideoYUV411P(), fromVideoYUV420P(), fromVideoYUV422(), fromVideoYUV422P(), fromVideoYUV444(), fromVideoYUV444P(), gaborFilter(), gaborFilter2(), gaborFilter3(), gaborFilterRGB(), GaborPatch::GaborPatch(), gameOfLifeUpdate(), gaussian2D(), get_textons(), SOFM::getActMap(), getAugmentedBeliefBayesImage(), AffineTransform::getCalibrated(), getComponents(), PnmParser::getFrame(), DpxParser::getFrame(), VisualObjectMatch::getFusedImage(), TaskRelevanceMapTigs2::getGistPCAMatrix(), getGrey(), getImage(), SearchArray::getImage(), TaskRelevanceMapTigs2::getImgPCAMatrix(), getJpegYUV(), getLikelyhoodImage(), SOFM::getMap(), SurpriseImage< T >::getMean(), getNormalizedBayesImage(), LayerDecoder::getOutput(), TcorrChannel::getOutput(), SpectralResidualChannel::getOutput(), TaskRelevanceMapTigs::getPCAMatrix(), TaskRelevanceMapGistClassify::getPCAMatrix(), getPixelComponent(), getPixelComponentImage(), getRGBY(), EnvSaliencyMap::getSalmap(), RealVoxel< T >::getSlice(), TaskRelevanceMapTigs2::getTigsMatrix(), TaskRelevanceMapTigs::getTigsMatrix(), VisualObjectMatch::getTransfTestImage(), WinnerTakeAllTempNote::getV(), WinnerTakeAllStd::getV(), SaliencyMapStd::getV(), SurpriseImage< T >::getVar(), WinnerTakeAllTempNote::getVth(), SOFM::getWeightsImage(), getYIQ(), IEEE1394grabber::grabPrealloc(), ColorMap::GRADIENT(), gradientmag(), gradientori(), grating(), ColorMap::GREY(), GREY_to_YUV24(), hack(), highThresh(), hmaxActivation(), houghTrans(), hueDistance(), Image< T >::Image(), Image_xx_beginw_endw_xx_1(), Image_xx_emptyArea_xx_1(), Image_xx_fft_xx_1(), Image_xx_orientedFilter_xx_1(), Image_xx_svd_gsl_xx_1(), Image_xx_svd_lapack_xx_1(), imageWriterThread(), WinnerTakeAllTempNote::inhibit(), WinnerTakeAllStd::inhibit(), SurpriseImage< T >::init(), FeedForwardNetwork::init(), BeobotVisualCortex::init(), FeedForwardNetwork::init3L(), SurpriseMap< T >::initModels(), inplaceAddBGnoise2(), inplaceAddWeighted(), inplaceAttenuateBorders(), inplaceBackpropSigmoid(), inplaceClamp(), inplaceClearRegion(), inplaceEmbed(), inplaceLowThresh(), inplaceLowThreshAbs(), inplaceNormalize(), inplacePaste(), inplacePasteGabor(), inplaceRectify(), inplaceReplaceVal(), inplaceSetBorders(), inplaceSetValMask(), inplaceSigmoid(), inplaceSquare(), WinnerTakeAllTempNote::input(), WinnerTakeAllStd::input(), SaliencyMapStd::input(), VirtualVoxelSalMap< T >::inputNewImage(), WinnerTakeAllStdOptim::integrate(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllStd::integrate(), interpolate(), intgCenterSurround(), intgGetRGBY(), intgInplaceAddBGnoise(), intgInplaceAttenuateBorders(), intgInplaceNormalize(), intgOrientedFilter(), intgQuadEnergy(), intgRescale(), intgScaleFromByte(), intgScaleLuminanceFromByte(), intgShiftImage(), intX(), intXY(), intXYWithPad(), intY(), inverse(), ColorSegmenter::isolateOrange(), ColorMap::JET(), joinLogampliPhase(), junctionFilterFull(), junctionFilterPartial(), log(), log10(), logmagnitude(), logPolarTransform(), logSig(), longRangeExcFilter(), lowPass3x(), lowPass3x_rgb(), lowPass3y(), lowPass3y_rgb(), lowPass5x(), lowPass5xDecX(), lowPass5y(), lowPass5yDecY(), lowPass9x(), lowPass9y(), lowPassLpt3r(), lowPassLpt3w(), lowPassLpt5r(), lowPassLpt5w(), luminance(), luminanceNormalize(), luminanceNTSC(), magnitude(), main(), makeBinary(), makeBinary2(), makeDash(), Nv2UiJob::makeInhibitionMarkup(), makeL(), makeMeter(), makeO(), BeoMap::makePanorama(), makePlus(), makeQ(), makeRGB(), makeT(), BeobotVisualCortex::masterCollect(), matrixMult(), median3x(), median3y(), mexArray2Image(), mexArray2RGBImage(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), multiScaleBatchFilter(), negexp(), SurpriseImage< T >::neighborhoods(), normalize(), normalized_histogram(), normalizeFloatRgb(), normalizeScaleRainbow(), normalizeWithScale(), operator *(), Image< T >::operator *(), Image< T >::operator *=(), operator+(), Image< T >::operator+(), Image< T >::operator+=(), operator-(), Image< T >::operator-(), Image< T >::operator-=(), 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|=(), WeightFilter::optConvolve(), optConvolve(), orientedFilter(), overlay(), overlayStain(), PnmParser::Rep::parseBW(), pasteImage(), phase(), VectorField::plotField(), SurpriseImage< T >::preComputeHyperParams(), quadEnergy(), quickInterpolate(), quickLocalAvg(), quickLocalAvg2x2(), quickLocalMax(), quickLocalMin(), randImage(), RandomInput::readFrame(), GameOfLifeInput::readFrame(), readImageFromStream(), remapRange(), replaceVals(), rescaleAndPromote(), rescaleBilinear(), rescaleNI(), SurpriseImage< T >::reset(), SurpriseImage< T >::resetUpdFac(), retinexCompareNeighbors(), RGB24_to_GREY(), RGB24_to_YUV24(), RGB32_to_YUV24(), rotate(), 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(), TrackFeature::run(), FeedForwardNetwork::run(), FeedForwardNetwork::run3L(), SaliencyMapStd::saccadicSuppression(), StimAnalyzer::SAcompImages(), saliencyChamfer34(), saveData(), saveGist(), scaleBlock(), 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(), scramble(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCseperateConv(), segmentColor(), Ganglion::setBias(), LayerDecoder::setDecoder(), SurpriseMapFFT< T >::setFFTModels(), LayerModule::setModule(), setupCases(), setupPcaIcaMatrix(), Image< T >::setVal(), Jet< T >::setVal(), shift(), shiftClean(), shiftImage(), segmentImageMC2::SIcalcMassCenter(), segmentImageMC::SIcalcMassCenter(), segmentImageMC2::SIgetValue(), segmentImageMC::SIgetValue(), dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::sigmoid(), segmentImageMerge2::SIMclusterColor(), BeobotVisualCortex::singleCPUprocess(), segmentImageMC2::SIresetCandidates(), segmentImageMC::SIresetCandidates(), segmentImageTrackMC::SITtrackImage(), segmentImageTrackMC::SITtrackImageAny(), spatialPoolMax(), splitPosNeg(), sqrt(), squared(), squash(), 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(), stain(), stainPosNeg(), stdevRow(), subtractRow(), SurpriseImage< T >::surprise(), takeMax(), takeMin(), thresholdedMix(), toPower(), toRGB(), trackPoint(), BackpropNetwork::train(), transform(), transpose(), vectorToImage(), weightedBlur(), FeedForwardNetwork::write(), FeedForwardNetwork::write3L(), WeightFilter::xFilter(), xFilter(), WeightFilter::yFilter(), yFilter(), YUV410P_to_YUV24(), YUV411_to_YUV24(), YUV411P_to_YUV24(), YUV420P_to_YUV24(), YUV422P_to_YUV24(), YUV444_to_YUV24(), YUV444P_to_YUV24(), YUYV_to_YUV24(), and zoomXY().

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

clear contents (or set to given value)

Definition at line 1298 of file Image.H.

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

Referenced by SwpeScorer::accum(), addLabel(), WinnerTakeAllFast::blinkSuppression(), SaliencyMapStdOptim::blinkSuppression(), dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::boxDownSizeClean(), tigs::boxify(), buildPyrRetinexLog(), CT2WSRegionTrainerForm::ChangeFrame(), CT2WSRegionTrainerForm::ClassifyImage(), SingleChannel::combineSubMaps(), BackpropNetwork::compute(), CT2WSRegionTrainerForm::computeGist(), concatLooseX(), concatLooseY(), density(), PsychoDisplay::displayNumbers(), SDLdisplay::displayText(), RegSaliency::doInput(), ScorrChannel::doInput(), doQuestion(), SimulationViewerStd::drawMegaCombo(), VisualEventSet::drawTokens(), V2::evolve(), HippocampusI::evolve(), CT2WSRegionTrainerForm::fileOpen(), World2DInput::generateWorld(), SubController::genPIDImage(), ArmController::genPIDImage(), SubController::genSubImage(), Hmax::getC2(), FeatureVector::getFeatureVectorImage(), RetinaI::getFrame(), SearchArray::getImage(), SoxChannel::getNonlinearResponse(), SpectralResidualChannel::getOutput(), NeoBrain::getSaliencyHisto(), EnvSaliencyMap::getSalmap(), getSearchCommand(), SingleChannelSurprise< SMODEL >::getSurpriseMap(), SimulationViewerCompress::getTraj(), Image_xx_blurAndDecY_xx_1(), Image_xx_clear_xx_1(), Image_xx_div_array_xx_1(), Image_xx_div_eq_array_xx_1(), Image_xx_mul_array_xx_1(), Image_xx_mul_eq_array_xx_1(), Image_xx_sha1_xx_1(), Image_xx_sha256_xx_1(), POMDP::init(), LGN::init(), Ganglion::init(), StructureModule::initialize(), SurpriseMap< T >::initModels(), inplaceNormalize(), WinnerTakeAllStdOptim::input(), VisualBufferStd::input(), GSlocalizer::input(), intgInplaceNormalize(), tigs::labelImage(), main(), makeBargraph(), SDLdisplay::makeBlittableSurface(), CT2WSRegionTrainerForm::MouseClick(), normalizeFloat(), normalizeFloatRgb(), BeobotVisualCortex::process(), processDorsalResult(), BeobotVisualCortex::processEnd(), processVentralResult(), Image< T >::resize(), SimulationViewerI::run(), BeoSubSaliency::run(), WinnerTakeAllFast::saccadicSuppression(), SaliencyMapStdOptim::saccadicSuppression(), WorkingMemory::setImage(), shiftClean(), submain(), Hmax::sumFilter(), SurpriseMapFFT< T >::surprise(), BackpropNetwork::train(), twofiftyfives(), PIDTuner::update(), ArmPlanner::updateDataImg(), VectorHistField::updateField(), StraightEdgeFinder::updateFrame(), and VectorField::VectorField().

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 1016 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 1009 of file Image.H.

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

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 1002 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]
 

Test whether point falls inside array boundaries.

Definition at line 995 of file Image.H.

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

Referenced by cartesian(), SurpriseModelOD::combineFrom(), SurpriseModelPM::combineFrom(), Image< T >::coordsOk(), V2::cornerDetection(), V4d::createDescriptor(), ObjRecSPM::createVectorsAndKeypoints(), ObjRecBOF::createVectorsAndKeypoints(), createVectorsAndKeypoints(), crop(), HippocampusI::displayMap(), POMDP::doAction(), drawCircle(), drawDisk(), drawDiskCheckTarget(), BitObject::drawOutline(), flood(), floodClean(), floodCleanBB(), PyrFoveator::foveate(), BlurFoveator::foveate(), ObjRec::generateNewSquareState(), ShapeModel::getDistVal(), ObjRec::getEdgeLikelihood(), VisualObjectMatch::getFusedImage(), getLocalMax(), VisualObjectMatch::getMatchImage(), ImageSpring< T >::getNeighbor(), getNSS(), EnvSaliencyMap::getSalmap(), VisualObjectMatch::getTransfTestImage(), Image< T >::getVal(), Image< T >::getValInterp(), ObjRec::houghLines(), WinnerTakeAllGreedy::integrate(), isLocalMax(), Context::localMax(), main(), pixelPatchCreateKeypoint(), BeoGPS::plotGPS(), Nv2UiJob::run(), segmentColor(), Foveator::setOrigin(), Image< T >::setVal(), V4d::showParticles(), V4::showParticles(), IT::showParticles(), submain(), SurpriseMap< T >::surprise(), NeoBrain::trackObject(), VisualTrackerI::trackObjects(), VisualTracker::trackObjects(), PIDTuner::update(), BeoPilot::updateGUI(), V4d::voteForFeature(), V4::voteForFeature(), and IT::voteForFeature().

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 699 of file Image.H.

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

Referenced by ForegroundDetectionChannel::doInput(), Ice2Image(), Image_xx_attach_detach_xx_1(), 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 691 of file Image.H.

Referenced by Image_xx_attach_detach_xx_1().

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 748 of file Image.H.

Referenced by abs(), colorize(), colorStain(), SurpriseModelOD::combineFrom(), composite(), SimulationViewerStats::computeAGStats(), AttentionGateStd::computeMinMaxXY(), convertToQPixmap(), convolveWithMaps(), corrcoef(), countThresh(), distance(), MultiColorBandChannel::doInput(), MichelsonChannel::doInput(), IntensityBandChannel::doInput(), H2SVChannel::doInput(), CIELabChannel::doInput(), dotprod(), MotionEnergyPyrBuilder< T >::DrawVectors(), emptyArea(), exp(), FourierEngine< T >::fft(), getAugmentedBeliefBayesImage(), getColor(), getMaskedMinMax(), getMaskedMinMaxAvg(), getMaskedMinMaxSumArea(), SurpriseImage< T >::getMean(), getMinMax(), getMinMaxAvg(), getMinMaxAvgEtc(), getNormalizedBayesImage(), LayerDecoder::getOutput(), getRange(), SaliencyMapStd::getV(), SurpriseImage< T >::getVar(), lobot::global_flow(), Image_xx_begin_end_xx_1(), Image_xx_default_construct_xx_1(), inplaceAddWeighted(), SaliencyMapStd::input(), LayerModule::input(), VirtualVoxelSalMap< T >::inputNewImage(), inverse(), isFinite(), learningCoeff(), PatchSet::load(), TrainingSet::load(), TrainingSet::loadRebalanced(), lowPass5yDecY(), lowPassLpt5w(), main(), negexp(), normalize(), normalizeScaleRainbow(), normalizeWithScale(), Image< T >::operator *(), Image< T >::operator+(), Image< T >::operator-(), Image< T >::operator/(), Image< T >::operator<<(), Image< T >::operator==(), Image< T >::operator>>(), LayerDecoder::push(), rangeOf(), RMSerr(), CINNICstatsRun::runStandardStats(), SimulationViewerStats::saveCompat(), SingleChannel::saveStats(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeLocalBias(), shift(), segmentImageTrackMC::SITsmoothImage(), segmentImageTrackMC::SITtrackImage(), splitPosNeg(), sqrt(), squash(), ScaleRemoveSurprise< FLOAT >::SRSgetBetaParts(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffImage(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffParts(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), ScaleSurpriseControl< FLOAT >::SSCgetDiffImage(), ScaleSurpriseControl< FLOAT >::SSCgetDiffParts(), stdev(), sum(), thresholdedMix(), toPower(), 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 756 of file Image.H.

Referenced by absDiff(), SwpeScorer::accum(), apply(), average(), averageWeighted(), binaryReverse(), SaliencyMapStd::blinkSuppression(), clampedDiff(), Image< T >::clear(), SimulationViewerStats::computeAGStats(), ComputeCMAP(), SimulationViewerStats::computeLAMStats(), convertToImage(), convolveWithMaps(), corrEigenMatrix(), BeoLRF::evolve(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), featureClusterVision< FLOAT >::fCVprocessOutSaccadeData(), fill(), findMonteMap(), findNonZero(), fromARGB(), fromMono(), fromRGB(), fromRGB555(), fromRGB565(), fromVideoYUV24(), fromVideoYUV411(), fromVideoYUV422(), fromVideoYUV444(), SOFM::getActMap(), getAugmentedBeliefBayesImage(), PnmParser::getFrame(), DpxParser::getFrame(), getGrey(), getImage(), SOFM::getMap(), getPixelComponent(), getPixelComponentImage(), WinnerTakeAllTempNote::getV(), WinnerTakeAllStd::getV(), WinnerTakeAllTempNote::getVth(), SOFM::getWeightsImage(), IEEE1394grabber::grabPrealloc(), GREY_to_YUV24(), highThresh(), Image< T >::Image(), Image_xx_beginw_endw_xx_1(), Image_xx_emptyArea_xx_1(), Image_xx_fft_xx_1(), Image_xx_svd_gsl_xx_1(), Image_xx_svd_lapack_xx_1(), WinnerTakeAllTempNote::inhibit(), WinnerTakeAllStd::inhibit(), SurpriseImage< T >::init(), BeobotVisualCortex::init(), SurpriseMap< T >::initModels(), inplaceBackpropSigmoid(), inplaceClamp(), inplaceLowThresh(), inplaceLowThreshAbs(), inplaceNormalize(), inplaceRectify(), inplaceReplaceVal(), inplaceSetValMask(), inplaceSigmoid(), inplaceSquare(), WinnerTakeAllTempNote::input(), WinnerTakeAllStd::input(), SaliencyMapStd::input(), intgInplaceNormalize(), intgQuadEnergy(), intgScaleFromByte(), intgScaleLuminanceFromByte(), log(), log10(), logmagnitude(), logSig(), luminance(), luminanceNTSC(), magnitude(), main(), makeBinary(), makeBinary2(), Nv2UiJob::makeInhibitionMarkup(), makeRGB(), normalizeFloatRgb(), operator *(), Image< T >::operator *=(), operator+(), Image< T >::operator+=(), operator-(), Image< T >::operator-=(), operator/(), Image< T >::operator/=(), Image< T >::operator<<=(), Image< T >::operator=(), Image< T >::operator>>=(), Image< T >::operator|=(), overlay(), overlayStain(), PnmParser::Rep::parseBW(), phase(), VectorField::plotField(), SurpriseImage< T >::preComputeHyperParams(), quadEnergy(), randImage(), RandomInput::readFrame(), GameOfLifeInput::readFrame(), readImageFromStream(), remapRange(), replaceVals(), SurpriseImage< T >::reset(), SurpriseImage< T >::resetUpdFac(), RGB24_to_GREY(), RGB24_to_YUV24(), RGB32_to_YUV24(), 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(), TrackFeature::run(), 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 >::SCinputConspicMap(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputRawImage(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCprocessFrameSeperable(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCseperateConv(), LayerDecoder::setDecoder(), LayerModule::setModule(), shift(), segmentImageMC2::SIgetValue(), segmentImageMC::SIgetValue(), dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::sigmoid(), segmentImageMerge2::SIMclusterColor(), segmentImageMC2::SIresetCandidates(), segmentImageMC::SIresetCandidates(), segmentImageTrackMC::SITtrackImage(), segmentImageTrackMC::SITtrackImageAny(), squared(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSprocessFrame(), stain(), stainPosNeg(), SurpriseImage< T >::surprise(), takeMax(), takeMin(), toRGB(), trackPoint(), transform(), FeedForwardNetwork::write(), FeedForwardNetwork::write3L(), YUV410P_to_YUV24(), YUV411_to_YUV24(), YUV411P_to_YUV24(), YUV420P_to_YUV24(), YUV422P_to_YUV24(), YUV444_to_YUV24(), YUV444P_to_YUV24(), and YUYV_to_YUV24().

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 664 of file Image.H.

References Image< T >::swap().

Referenced by BitObject::freeMem(), ImageSpring< T >::freeMem(), SurpriseMapFFT< T >::init(), SurpriseMap< T >::init(), SpectralResidualChannel::killCaches(), SingleChannel::killCaches(), IntegerSimpleChannel::killCaches(), IntegerComplexChannel::killCaches(), DirectFeedChannel::killCaches(), ComplexChannel::killCaches(), SaliencyMT::newInput(), VisualObject::operator=(), SaliencyMapStdOptim::reset(), AttentionGuidanceMapOpt::reset(), AttentionGuidanceMapStd::reset(), WinnerTakeAllStdOptim::reset1(), WinnerTakeAllTempNote::reset1(), WinnerTakeAllStd::reset1(), WinnerTakeAllAdapter::reset1(), TaskRelevanceMapKillStatic::reset1(), TaskRelevanceMapAdapter::reset1(), TargetChecker::reset1(), SimulationViewerStd::reset1(), SimulationViewerNerdCam::reset1(), ShapeEstimator::reset1(), SaliencyMapFast::reset1(), SaliencyMapTrivial::reset1(), SaliencyMapStd::reset1(), AttentionGateStd::reset1(), IntegerFlickerChannel::reset1(), FlickerChannel::reset1(), DirectFeedChannel::reset1(), TaskRelevanceMapKillStatic::saccadicSuppression(), segmentObjectClean(), 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 988 of file Image.H.

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

Returns read-only (const) pointer to internal image array.

Definition at line 981 of file Image.H.

Referenced by TCPmessage::addImage(), asRow(), basic_mm_mul(), basic_vm_mul(), Contour::calcLineLikelihood(), InputFrame::colorFloat(), concatLooseX(), concatLooseY(), convert_gray(), convertAVFrameToRGB(), convolve(), convolveCleanZero(), XWindow::XWinImage::copyPixelsFrom(), CudaImage< T >::CudaImage(), Image< T >::deepcopy(), lapack::dgemm(), lapack::dgemv(), PsychoDisplay::displayNumbers(), SDLdisplay::displayText(), lapack::dpotrf(), DpxFile::DpxFile(), drawLine(), ENV_SHOWIMG(), CudaImage< T >::exportToImage(), FourierEngine< T >::fft(), fromRGB(), InputFrame::fromRgb(), InputFrame::fromRgbDepth(), IntegerInput::fromVideo(), fromVideoYUV420P(), fromVideoYUV422(), fromVideoYUV422P(), genericRescale(), PfmParser::getFrame(), DpxParser::getFrame(), ViewPort::getFrame(), BeobotCamera::grab(), V4Lgrabber::grabRaw(), V4Lgrabber::grabSingleRaw(), FourierInvEngine< T >::ifft(), Image2Ice(), image2Orb(), ImageSpring< T >::ImageSpring(), img2ipl(), JpegParser::Impl::Impl(), EnvVisualCortex2::input(), EnvVisualCortex::input(), ImageTk< T >::Instance::Instance(), intgLowPass5xDecX(), intgLowPass5yDecY(), intgLowPass9x(), intgLowPass9y(), intgXFilterClean(), intgYFilterClean(), BPnnet::load(), TrainingSet::loadRebalanced(), lowPassX(), lowPassY(), main(), SDLdisplay::makeBlittableSurface(), matrixInv(), matrixPivot(), md5helper(), Hmax::origGetC2(), PnmParser::Rep::parseGrayU16(), PnmParser::Rep::parseGrayU8(), PnmParser::Rep::parseRgbU16(), PnmParser::Rep::parseRgbU8(), BeoSubPipe::pipeOrientation(), PixelBuffer2GenericFrame(), HashOutputSeries::Impl::printHash(), QuartzQuickTimeParser::QuartzQuickTimeParser(), SequenceFileStream::readFrame(), MgzDecoder::readFrame(), runCanny(), BeoSubCanny::runCanny(), BPnnet::save(), WeightFilter::sepFilter(), sepFilter(), Ganglion::setBias(), lapack::sgemm(), lapack::sgemv(), sha1helper(), sha256helper(), showStats(), svd_lapack(), svdf_lapack(), test_lowpass5(), test_lowpass9(), Context::testFrame(), vFlip(), RawWriter::writeFloat(), PfzWriter::writeFloat(), MgzEncoder::writeFrame(), RawWriter::writeGray(), PnmWriter::writeGray(), RawWriter::writeRGB(), and PnmWriter::writeRGB().

template<class T>
Rectangle Image< T >::getBounds  )  const [inline]
 

Get image bounds as a rectangle with upper-left point at (0,0) and dims matching the image dims.

Definition at line 815 of file Image.H.

Referenced by buildPyrRetinexLog(), doRescale(), doResizeImage(), SimulationViewerStd::drawEye(), SimulationViewerStd::drawHead(), drawRectEZ(), drawRectSquareCorners(), extractBitObjects(), TopologicalMap::getMapImage(), VisualObjectMatch::getOverlapRect(), getSalRegions(), SimulationViewerCompress::getTraj(), Image_xx_construct_and_clear_xx_1(), Image_xx_construct_from_array_xx_1(), Image_xx_default_construct_xx_1(), inplaceClearRegion(), VisualObjectMatch::isOverlapping(), main(), SDLdisplay::makeBlittableSurface(), InputMbariFrameSeries::readRGB(), and VisualEventSet::updateEvents().

template<class T>
const Dims & Image< T >::getDims  )  const [inline]
 

Get image width+height in Dims struct.

Definition at line 810 of file Image.H.

Referenced by abs(), absDiff(), SwpeScorer::accum(), Patch::addPatch(), addRow(), apply_sift_on_patches(), average(), avgOrient(), FeedForwardNetwork::backprop(), FeedForwardNetwork::backprop3L(), POMDP::bayesFilter(), BiasValImage::BiasValImage(), binaryReverse(), dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::boxDownSizeClean(), VisualBufferStd::bufferToRetinal(), SimEventVisualBufferOutput::bufferToRetinal(), buildPyrRetinexLog(), DescriptorVec::buildRawDV(), ShapeModel::calcDist(), RegSaliency::calcFlicker(), Geons3D::calcGeonLikelihood(), V1::cannyEdgeDetect(), cannyEdgeDetect(), centerSurround(), centerSurroundDiff(), centerSurroundDiffSingleOpponent(), chamfer34(), clampedDiff(), Image< T >::clear(), colGreyCombo(), InputFrame::colorFloat(), colorize(), colorStain(), RawVisualCortex::combineOutputs(), ComplexChannel::combineOutputs(), IntegerRawVisualCortex::combineOutputsInt(), composite(), WeightsMask::compute(), Weights2D::compute(), Weights1D::compute(), BeoSubSaliency::computeCMAP(), SaliencyMT::computeCMAP(), CT2WSRegionTrainerForm::computeGist(), TaskRelevanceMapGistClassify::computeGistDist(), contour2D(), crop(), deBayer(), TaskRelevanceMapTigs2::decode(), TaskRelevanceMapTigs::decode(), Image< T >::deepcopy(), MbariResultViewer::displayImage(), HippocampusI::displayMap(), displayPartImage(), Patch::distance(), distDegrade(), divideRow(), ObjDetChannel::doInput(), MichelsonChannel::doInput(), ContourChannel::doInput(), POMDP::doPolicy(), downSizeClean(), BitObject::drawBoundingBox(), XWindow::drawImage(), SimulationViewerStd::drawMegaCombo(), BitObject::drawOutline(), BitObject::drawShape(), VisualEventSet::drawTokens(), SMap::evolve(), BeoLRF::evolve(), VisualTrackerI::evolve(), HippocampusI::evolve(), V2::evolve2(), V1::evolveCanny(), V1::evolveSobel(), exp(), extractBitObjects(), FourierEngine< T >::fft(), Convolver::fftConvolve(), CT2WSRegionTrainerForm::fileOpen(), fill(), V2::findLines(), VisualBufferStd::findMostInterestingTarget(), findNonZero(), flattened_multi_level_histogram(), flood(), floodClean(), floodCleanBB(), foveate(), InputFrame::fromGrayFloat(), IntegerInput::fromGrayOnly(), InputFrame::fromRgbAndGrayFloat(), gameOfLifeUpdate(), MovingAvgLearner::getBiasMap(), EyeTrackerISCAN::getCalibrationSet(), V2::getDebugImage(), V1::getDebugImage(), SMap::getDebugImage(), Geons3D::getDebugImage(), Contour::getDebugImage(), Patch::getDims(), GenericFrame::getDims(), ObjRec::getEdgeLikelihood(), PnmParser::getFrame(), JpegParser::getFrameSpec(), getHaarFeature(), SearchArray::getImage(), DummyChannel::getMapDims(), SoxChannel::getNonlinearResponse(), getObj(), BitObject::getObjectDims(), TestImages::getObjMask(), RetinaSpaceVariant::getOutput(), RetinaStd::getOutput(), LayerDecoder::getOutput(), SpectralResidualChannel::getOutput(), getPartImage(), getPixelComponentImage(), Attentionator::getSaliencyMap(), Attentionator::getSalientPoint(), EnvSaliencyMap::getSalmap(), Image< T >::getSize(), SingleChannelSurprise< SMODEL >::getSurpriseMap(), Stimulus2D::getTotalTime(), SimulationViewerStd::getTraj(), SimulationViewerEyeMvt::getTraj(), SimulationViewerCompress::getTraj(), WinnerTakeAllTempNote::getV(), WinnerTakeAllStd::getV(), SaliencyMapStd::getV(), AttentionGuidanceMapOpt::getV(), AttentionGuidanceMapStd::getV(), WinnerTakeAllTempNote::getVth(), BeobotCamera::grab(), gradient(), gradientmag(), gradientori(), gradientSobel(), hmaxActivation(), ObjRec::houghLines(), FourierFeatureExtractor::illustrate(), Image_xx_construct_and_clear_xx_1(), Image_xx_construct_from_array_xx_1(), Image_xx_default_construct_xx_1(), Image_xx_fft_xx_1(), Image_xx_orientedFilter_xx_1(), ImageInfo::ImageInfo(), infoFFT(), VisualBufferStd::inhibit(), SurpriseMap< T >::initModels(), inplaceAddWeighted(), inplaceAttenuateBorders(), WinnerTakeAllStdOptim::input(), WinnerTakeAllTempNote::input(), WinnerTakeAllStd::input(), VisualBufferStd::input(), SaliencyMapStdOptim::input(), SaliencyMapStd::input(), ImageTk< T >::Instance::Instance(), integralImage(), WinnerTakeAllGreedy::integrate(), TaskRelevanceMapTigs2::integrate(), TaskRelevanceMapTigs::integrate(), TaskRelevanceMapGistClassify::integrate(), intgCenterSurround(), intgInplaceAttenuateBorders(), intgOrientedFilter(), intgQuadEnergy(), intgShiftImage(), intgXFilterClean(), intgYFilterClean(), invdiag(), inverse(), joinLogampliPhase(), junctionFilterFull(), junctionFilterPartial(), learnImage(), Patch::load(), Context::localMax(), POMDP::locateObject(), log(), log10(), logPolarTransform(), logSig(), main(), makeBinary(), makeBinary2(), SDLdisplay::makeBlittableSurface(), Nv2UiJob::makeInhibitionMarkup(), Nv2UiJob::makeInputMarkup(), POMDP::makeObservation(), POMDP::makePrediction(), makeRGB(), makeSumoDisplay(), mapCombine(), maxNormalizeLandmark(), maxNormalizeStdev(), maxNormalizeStdev0(), meanAbsDiff(), median3x(), median3y(), mexFunction(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), myDownSize(), negexp(), SurpriseImage< T >::neighborhoods(), Stimulus2D::next(), operator *(), operator+(), operator-(), operator/(), Image< T >::operator=(), orientedFilter(), overlay(), overlayStain(), POMDP::particleFilter(), ColorbarsInput::peekFrameSpec(), ObjRecSPM::predict(), SimulationViewerStd::prepMapForDisplay(), processSplitImage(), quadEnergy(), XMLInput::readFrame(), remapRange(), replaceVals(), TestSuite::Impl::requireImgEq(), TestSuite::Impl::requireImgEqFp(), BitObject::reset(), Image< T >::resize(), VisualBufferStd::retinalToBuffer(), SimEventVisualBufferOutput::retinalToBuffer(), retinexCompareNeighbors(), SimulationViewerI::run(), MissileLauncher::run(), Nv2UiJob::run(), BeoSubCanny::runCanny(), ColorTracker::runTracker(), saliencyChamfer34(), FourierFeatureExtractor::saveRawIllustrationParts(), segmentColor(), SeaBee3MainDisplayForm::setImage(), BitObject::setMaxMinAvgIntensity(), VisualTracker::setTargets(), BeoSubCanny::setupCanny(), setupGaborMask(), ColorTracker::setupTracker(), shift(), shiftImage(), SHOWIMG(), V4d::showParticles(), V4::showParticles(), shuffleImage(), dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::sigmoid(), Image< T >::size(), splitPosNeg(), sqrt(), squared(), squash(), stain(), stainPosNeg(), Beobot2GistSalMasterI::start1(), submain(), subtractRow(), SurpriseMapFFT< T >::surprise(), SurpriseMap< T >::surprise(), takeMax(), takeMin(), Context::testFrame(), thresholdedMix(), toPower(), toPowerRegion(), toRGB(), ObjRecSPM::train(), BackpropNetwork::train(), transform(), transformDoG(), SubGUI::update(), GeneralGUI::update(), BiasValImage::updateValues(), POMDP::valueIteration(), vFlip(), VisualObject::VisualObject(), watershed(), weightedBlur(), and writeImageToStream().

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

Get image height.

Definition at line 805 of file Image.H.

Referenced by SwpeScorer::accum(), KLScorer::accum(), TCPmessage::addImage(), addNoise(), addRow(), apply_sift_on_patches(), basic_mm_mul(), basic_vm_mul(), blurAndDecY(), dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::boxDownSizeClean(), buildPyrGabor(), buildPyrRetinexLog(), InferoTemporalSalBayes::buildRawDV(), DescriptorVec::buildRawDV(), V4d::buildRTables(), playlist::cachenext(), Geons3D::calcGeonLikelihood(), Contour::calcLineLikelihood(), TwoHalfDSketch::calcSketchLikelihood(), V4d::calculateOrientationVector(), ObjRecSPM::calculateOrientationVector(), ObjRecBOF::calculateOrientationVector(), calculateOrientationVector(), cartesian(), BeoSub::CenterBin(), centerSurround(), chamfer34(), CINNICstatsRun::checkSize(), CT2WSRegionTrainerForm::ClassifyImage(), convolutionMap< T >::CMcopyImage(), SurpriseModelOD::combineFrom(), SurpriseModelPM::combineFrom(), ComplexChannel::combineOutputs(), compareregions(), Weights2D::compute(), Weights1D::compute(), BackpropNetwork::compute(), compute_feature_map(), SimulationViewerStats::computeAGStats(), ComputeCMAP(), computeCMAP(), BeoSubSaliency::computeCMAP(), SaliencyMT::computeCMAP(), GistEstimatorStd::computeFeatureVector(), CT2WSRegionTrainerForm::computeGist(), TaskRelevanceMapGistClassify::computeGistDist(), GistEstimatorFFT::computeGistFeatureVector(), VisualObject::computeKeypoints(), ImageSpring< T >::computePos(), concatArray(), concatLooseX(), concatLooseY(), concatX(), concatY(), contour2D(), convertToQPixmap(), convGauss(), convolve(), convolveCleanHelper(), convolveCleanZero(), WeightFilter::convolveHmax(), convolveHmax(), CINNIC::convolveTest(), convolveZeroHelper(), Image< T >::coordsOk(), XWindow::XWinImage::copyPixelsFrom(), correlation(), count_pixels(), countClusters(), countParticles(), segmentImage::createMother(), crop(), dct(), deBayer(), decX(), decXY(), decY(), SaliencyMapStdOptim::depress(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), SaliencyMapStd::depress(), describeImage(), lapack::dgemm(), lapack::dgemv(), dilateImg(), ImageQtMainForm::displayImage(), SDLdisplay::displayImagePatch(), PsychoDisplay::displayNumbers(), SDLdisplay::displayText(), dispResults(), distDegrade(), divideRow(), SIFTChannel::doInput(), ScorrChannel::doInput(), ObjDetChannel::doInput(), DisparityChannel::doInput(), doRescale(), doResizeImage(), downSize(), downSizeClean(), drawArrow(), drawContour2D(), drawCross(), drawCrossOR(), drawFilledPolygon(), drawGrid(), XWindow::drawImage(), drawLine(), SimulationViewerStd::drawMegaCombo(), SimulationViewerNerdCam::drawMegaCombo(), ParticleFilterI::drawParticles(), drawPatch(), drawPatchBB(), drawPoint(), MotionEnergyPyrBuilder< T >::DrawVectors(), contourRun::dumpEnergySigmoid(), dumpImage(), ObjRec::edgesLiklyProb(), erodeImg(), SMap::evolve(), Geons2D::evolve(), V2::evolve2(), ObjRecSalBayes::evolveBrain(), V1::evolveCanny(), V1::evolveSobel(), ObjRecSPM::extractFeatures(), AttentionGateStd::extractFeatureValues(), ObjRecBOF::extractGaborFeatures(), HmaxFL::extractRandC1Patches(), ObjRecSPM::extractSiftFeatures(), ObjRecBOF::extractSIFTFeatures(), featureClusterVision< FLOAT >::fCVgetImageBaseStats(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), featureClusterVision< FLOAT >::fCVsetUpfCV(), featureClusterVision< FLOAT >::fCVuploadImage(), featurePoolHmax(), fftCompute(), CT2WSRegionTrainerForm::fileSaveGistVectors(), Histogram::fill(), fillEyeData(), fillMouthData(), fillNoseData(), lobot::filter(), filterAtLocation(), filterAtLocationBatch(), findAlign(), findBoundingRect(), V2::findLines(), findMax(), findMin(), VisualBufferStd::findMostInterestingTargetLocMax(), POMDP::findMultipleObjects(), POMDP::findObject(), flipHoriz(), flipVertic(), floodCleanBB(), BeoSub::FollowPipeLine(), formatMapForDisplay(), foveate(), freeFftwData(), InputFrame::fromRgbAndGrayFloat(), gameOfLifeUpdate(), generateInput(), genericRescale(), TestImages::getAllObjMask(), getAugmentedBeliefBayesImage(), Beobot2_GistSalLocalizerMasterI::getBeliefImage(), GSlocalizer::getBeliefImage(), CMap_i::getBiasCMAP(), LeastSquaresLearner::getBiasMap(), Hmax::getC1(), ImageSpring< T >::getClusteredImage(), getColor(), getDispImg(), Beobot2_GistSalLocalizerMasterI::getDisplayImage(), getDisplayImage(), ShapeModel::getDistVal(), ObjRec::getEdgeLikelihood(), getError(), TrainingSet::getFeatures(), EnvObjDetection::getFoa(), VisualObjectMatch::getFusedImage(), SearchArray::getImage(), segmentImage::getImageSizeY(), BeobotVisualCortex::getInputSize(), getIntSalPt(), VisualObject::getKeypointImage(), VisualObject::getKeypointImage2(), getLikelyhoodImage(), getMag(), VisualObjectMatch::getMatchImage(), getNormalizedBayesImage(), getObj(), TestImages::getObjectData(), TestImages::getObjMask(), POMDP::getObjProb(), RetinaSpaceVariant::getOutput(), RetinaStd::getOutput(), TcorrChannel::getOutput(), SpectralResidualChannel::getOutput(), VisualObjectMatch::getOverlapRect(), getPartImage(), getPartRect(), getPearsonRMatrix(), TrainingSet::getPositions(), ImageSpring< T >::getPositions(), getPrimeLev(), Beobot2_GistSalLocalizerMasterI::getSalImage(), getSalImage(), EnvSaliencyMap::getSalmap(), KLScorer::getScoreString(), getSearchCommand(), getSubSum(), getSubSum2(), getSubSumGen(), getSwpe(), TaskRelevanceMapTigs2::getTDMap(), NeoBrain::getTrackersLoc(), SimulationViewerStd::getTraj(), SimulationViewerCompress::getTraj(), VisualObjectMatch::getTransfTestImage(), AttentionGuidanceMapOpt::getV(), AttentionGuidanceMapStd::getV(), Image< T >::getValInterp(), getVector(), getVectorColumn(), getWindow(), IEEE1394grabber::grabPrealloc(), gradient(), gradientmag(), gradientori(), gradientSobel(), V4d::harrisDetector(), Histogram::Histogram(), histogram(), houghEllipse(), houghTrans(), houghTransform(), PyramidFeatureExtractor::illustrate(), Image2Ice(), image2matrix(), Image2mexArray(), Image2mexArrayUint8(), image2Orb(), Image_xx_construct_and_clear_xx_1(), Image_xx_construct_from_array_xx_1(), Image_xx_default_construct_xx_1(), Image_xx_orientedFilter_xx_1(), Image_xx_swap_xx_1(), Image_xx_zoomXY_xx_4(), ImageSpring< T >::ImageSpring(), img2ipl(), infoFFT(), FeedForwardNetwork::init(), FeedForwardNetwork::init3L(), ImageSpring< T >::initClustering(), Image< T >::initialized(), ObjRec::initialProposal(), SurpriseMap< T >::initModels(), inplaceAddBGnoise2(), inplaceEmbed(), inplacePaste(), inplacePasteGabor(), inplaceSetBorders(), inplaceSpeckleNoise(), WinnerTakeAllTempNote::input(), TaskRelevanceMapTigs2::inputFrame(), TaskRelevanceMapKillStatic::inputFrame(), VirtualVoxelSalMap< T >::inputNewImage(), insertLocalMax(), insertLocalVar(), inspect(), integralImage(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllStd::integrate(), TaskRelevanceMapGistClassify::integrate(), TaskRelevanceMapKillN::integrate(), interpolate(), intgCenterSurround(), intgDownSize(), intgInplaceAddBGnoise(), intgLowPass5xDecX(), intgLowPass5yDecY(), intgLowPass9x(), intgLowPass9y(), intgMaxNormalizeStd(), intgOrientedFilter(), intgRescale(), intgXFilterClean(), intgYFilterClean(), intX(), intXY(), intXYWithPad(), intY(), invdiag(), Image< T >::is1D(), isLocalMax(), Image< T >::isSameSize(), Image< T >::isSquare(), Image< T >::isTransposedVector(), junctionFilterFull(), junctionFilterPartial(), Layout< T >::Layout(), V2::lineSegmentDetection(), V2::ll_angle(), PatchSet::load(), Patch::load(), TrainingSet::load(), FeatureExtractor::load(), TrainingSet::loadRebalanced(), Context::localMax(), POMDP::locateObject(), logPolarTransform(), lowPass3x(), lowPass3y(), lowPass5x(), lowPass5xDecX(), lowPass5y(), lowPass5yDecY(), lowPass9x(), lowPass9y(), lowPassLpt3r(), lowPassLpt3w(), lowPassLpt5r(), lowPassLpt5w(), lowPassPixel(), lowPassX(), lowPassY(), main(), SDLdisplay::makeBlittableSurface(), BeoMap::makePanorama(), makeSumoDisplay(), mapCombine(), BeobotVisualCortex::masterCollect(), matrixMult(), meanRow(), median3x(), median3y(), ImageCanvas::mousePressEvent(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), multiScaleBatchFilter(), myDownSize(), nearest_universal_texton(), SurpriseImage< T >::neighborhoods(), BeobotVisualCortex::newVisualInput(), V1::nonMaxSuppressAndContTrace(), nonMaxSuppressAndContTrace(), normalizeFloat(), normalizeScaleRainbow(), normalizeWithScale(), omniDenebulize(), Image< T >::operator *(), Image< T >::operator+(), Image< T >::operator-(), Image< T >::operator/(), Image< T >::operator<<(), Image< T >::operator>>(), operator>>(), WeightFilter::optConvolve(), optConvolve(), orientedFilter(), Hmax::origGetC2(), POMDP::particleFilter(), pasteImage(), BeoSubPipe::pipeOrientation(), BeoGPS::plotGPS(), CINNICstatsRun::pointAndFloodImage(), CINNICstatsRun::polatSagi2AFC(), SVMClassifier::predict(), SimulationViewerStd::prepMapForDisplay(), CINNICstatsRun::preProcess(), Hmax::printCorners(), processImage(), processSalCue(), processSplitImage(), QuartzQuickTimeParser::QuartzQuickTimeParser(), quickInterpolate(), quickLocalAvg(), quickLocalAvg2x2(), quickLocalMax(), quickLocalMin(), CINNICstatsRun::randomMatch(), ColorbarsInput::readFrame(), HmaxFL::readInC1Patches(), V2::rect_nfa(), Image< T >::rectangleOk(), playlist::redraw(), V2::region_grow(), replicateHemifield(), rescaleBilinear(), rescaleNI(), BitObject::reset(), retinexCompareNeighbors(), covEstimate< T >::returnCovSlice(), segmentImage::returnNormalizedCandidates(), rotate(), 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(), SimulationViewerI::run(), MissileLauncher::run(), InferotemporalCortexI::run(), Nv2UiJob::run(), runCanny(), BeoSubCanny::runCanny(), CINNICstatsRun::runPointAndFlood(), CINNIC::RunSimpleImage(), CINNICstatsRun::runStandardStats(), saliencyChamfer34(), ObjRec::samplePosterior(), PatchSet::save(), SimulationViewerStats::save1(), SimulationViewerStats::saveCompat(), SearchArray::saveCoords(), SimulationViewerNerdCam::saveResults(), SingleChannel::saveStats(), scaleBlock(), 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(), segment(), segmentColor(), segmentProb(), Ganglion::setBias(), SurpriseMapFFT< T >::setFFTModels(), DescriptorVec::setFovea(), SeaBee3MainDisplayForm::setImage(), TrackFeature::setImg(), RealVoxel< T >::setSlice(), BeoSubCanny::setupCanny(), setupFFTW(), setupGaborMask(), ColorTracker::setupTracker(), lapack::sgemm(), lapack::sgemv(), shiftClean(), BiasImageForm::showSMap(), showStats(), 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::SITsmoothImage(), segmentImageTrackMC::SITtrackImage(), segmentImageTrackMC::SITtrackImageAny(), RealVoxel< T >::sliceOp(), spatialPoolMax(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSsetAntiWeights(), RetinaSpaceVariant::start2(), RetinaStd::start2(), stdevRow(), submain(), subtractRow(), sumXY(), SurpriseMapFFT< T >::surprise(), lapack::svd(), svd_lapack(), lapack::svdf(), svdf_lapack(), svdPseudoInv(), svdPseudoInvf(), templMatch(), test_lowpass5(), test_lowpass9(), BeobotBrainMT::threadCompute(), SimEventVisualBufferOutput::toString(), SimEventTargetMask::toString(), SimEventShapeEstimatorOutput::toString(), SimEventAttentionGateOutput::toString(), SimEventAttentionGuidanceMapOutput::toString(), SimEventTaskRelevanceMapOutput::toString(), SimEventSaliencyMapOutput::toString(), SimEventGistOutput::toString(), SimEventVisualCortexOutput::toString(), SimEventRetinaImage::toString(), V1::traceContour(), traceContour(), NeoBrain::trackObject(), VisualTrackerI::trackObjects(), VisualTracker::trackObjects(), VisualTracker::trackTemplObject(), SVMClassifier::train(), BackpropNetwork::train(), CT2WSRegionTrainerForm::TrainClassifier(), transform(), transformDoG(), transpose(), SubGUI::update(), GeneralGUI::update(), PIDTuner::update(), VisualEventSet::updateEvents(), FOEestimator::updateFOE(), ColorSegmenterI::updateFrame(), BeoPilot::updateGUI(), ImageObj< T >::updateString(), vFlip(), warp3D(), watershed(), weightedBlur(), HmaxFL::windowedPatchDistance(), PnmWriter::writeAsciiBW(), PfzWriter::writeFloat(), PnmWriter::writeGray(), Hmax::writeOutImage(), PlaintextWriter::writePlaintextGrayF32(), PlaintextWriter::writePlaintextGrayU8(), PnmWriter::writeRawBW(), PnmWriter::writeRGB(), writeText(), writeText2(), WeightFilter::xFilter(), xFilter(), WeightFilter::yFilter(), yFilter(), and zoomXY().

template<class T>
int Image< T >::getSize  )  const [inline]
 

Get image size (width * height).

Definition at line 790 of file Image.H.

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

Referenced by PercentileScorer::accum(), KLScorer::accum(), TCPmessage::addImage(), asRow(), avgOrient(), FeedForwardNetwork::backprop(), FeedForwardNetwork::backprop3L(), POMDP::bayesFilter(), beowulf_xx_basic_tcpmessage_xx_1(), cartesian(), chamfer34(), InputFrame::colorFloat(), ImageSpring< T >::computePos(), ImageSpring< T >::computeStiff(), convertToQPixmap(), corrcoef(), lapack::dgemv(), diag2image(), Convolver::fftConvolve(), findMonteMap(), flattened_multi_level_histogram(), flood(), ImageSpring< T >::freeMem(), POMDP::getAction(), POMDP::getEntropy(), PfmParser::getFrame(), getHistogram(), SearchArray::getImage(), ObjRec::getLineLikelihood(), getMinMaxAvg(), getMinMaxAvgEtc(), SpectralResidualChannel::getOutput(), ImageSpring< T >::getPositions(), KLScorer::getScoreString(), ObjRec::getSquareLikelihood(), Image< T >::getVal(), lobot::global_flow(), BeobotCamera::grab(), V4Lgrabber::grabRaw(), V4Lgrabber::grabSingleRaw(), hmaxActivation(), Image2Ice(), Image2mexArray(), image2Orb(), Image_xx_div_array_xx_1(), Image_xx_div_eq_array_xx_1(), Image_xx_div_eq_scalar_xx_1(), Image_xx_div_scalar_xx_1(), Image_xx_fft_xx_1(), Image_xx_minus_array_xx_1(), Image_xx_minus_eq_array_xx_1(), Image_xx_minus_eq_scalar_xx_1(), Image_xx_minus_scalar_xx_1(), Image_xx_mul_array_xx_1(), Image_xx_mul_eq_array_xx_1(), Image_xx_mul_eq_scalar_xx_1(), Image_xx_mul_scalar_xx_1(), Image_xx_plus_array_xx_1(), Image_xx_plus_eq_array_xx_1(), Image_xx_plus_eq_scalar_xx_1(), Image_xx_plus_scalar_xx_1(), ImageSpring< T >::init(), insertLocalAvg(), WinnerTakeAllStdOptim::integrate(), intX(), joinLogampliPhase(), learningCoeff(), BPnnet::load(), main(), makeBargraph(), md5helper(), mean(), meanAbsDiff(), SimEventShapeEstimatorOutput::objectArea(), operator>>(), Image< T >::operator[](), PnmParser::Rep::parseGrayU16(), PnmParser::Rep::parseGrayU8(), PnmParser::Rep::parseRgbU16(), PnmParser::Rep::parseRgbU8(), HashOutputSeries::Impl::printHash(), processImage(), processWholeImage(), pSNR(), QuartzQuickTimeParser::QuartzQuickTimeParser(), TrainingSet::recordSample(), RMSerr(), saliencyChamfer34(), BPnnet::save(), saveData(), scramble(), segment(), segmentLandmark(), segmentObject(), segmentObjectClean(), segmentProb(), WeightFilter::sepFilter(), sepFilter(), setupCases(), Image< T >::setVal(), lapack::sgemv(), sha1helper(), sha256helper(), POMDP::showTransitions(), shuffleImage(), stdev(), submain(), svd_lapack(), svdf_lapack(), test_lowpass5(), Context::testFrame(), BackpropNetwork::train(), POMDP::valueIteration(), RawWriter::writeFloat(), PfzWriter::writeFloat(), RawWriter::writeGray(), PnmWriter::writeGray(), RawWriter::writeRGB(), and PnmWriter::writeRGB().

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 901 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 893 of file Image.H.

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

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 885 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 877 of file Image.H.

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

Referenced by DescriptorVec::buildLocalDV(), DescriptorVec::buildParticleCountDV(), InferoTemporalSalBayes::buildRawDV(), DescriptorVec::buildRawDV(), V4d::buildRTables(), DescriptorVec::buildSingleChannelFV(), Geons3D::calcGeonLikelihood(), segmentImage::calcMassCenter(), TwoHalfDSketch::calcSketchLikelihood(), V4d::calculateOrientationVector(), ObjRecSPM::calculateOrientationVector(), ObjRecBOF::calculateOrientationVector(), calculateOrientationVector(), centerSurround(), CT2WSRegionTrainerForm::ClassifyImage(), compareregions(), Weights2D::compute(), Weights1D::compute(), compute_feature_map(), ComputeCMAP(), computeConvolutionMaps(), TaskRelevanceMapGistClassify::computeGistDist(), ImageSpring< T >::computeStiff(), convolveCleanZero(), CINNIC::convolveTest(), corrEigenMatrix(), count_pixels(), countClusters(), countParticles(), segmentImage::createMother(), crop(), cudaGetScalar(), dct(), TaskRelevanceMapTigs2::decode(), TaskRelevanceMapTigs::decode(), decXY(), density(), SaliencyMapStdOptim::depress(), SaliencyMapStd::depress(), diag2image(), GistEstimatorStd::diffGist(), GistEstimatorGen::diffGist(), dist2(), POMDP::doAction(), PN03contrastChannel::doInput(), downscaleFancy(), BitObject::drawBoundingBox(), drawDiskCheckTarget(), SimulationViewerStd::drawMaskOutline(), SimulationViewerNerdCam::drawMaskOutline(), BitObject::drawOutline(), ObjRec::edgesLiklyProb(), ENV_SHOWIMG(), erodeImg(), SMap::evolve(), V2::evolve2(), V1::evolveCanny(), V1::evolveSobel(), extractBitObjects(), ObjRecSPM::extractFeatures(), AttentionGateStd::extractFeatureValues(), ObjRecBOF::extractGaborFeatures(), featureClusterVision< FLOAT >::fCVgetImageBaseStats(), featureClusterVision< FLOAT >::fCVprocessOutSaccadeData(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), fftCompute(), CT2WSRegionTrainerForm::fileSaveGistVectors(), Histogram::fill(), lobot::filter(), findBoundingRect(), V2::findLines(), VisualBufferStd::findMostInterestingTargetLocMax(), flood(), floodClean(), floodCleanBB(), formatMapForDisplay(), BlurFoveator::foveate(), ObjRec::generateNewSquareState(), lobot::get_vector(), POMDP::getAction(), CMap_i::getBiasCMAP(), ImageSpring< T >::getClusteredImage(), V1::getDebugImage(), KalmanFilter::getEstimate(), getFftImage(), GistEstimatorStd::getGistImage(), GistEstimatorGen::getGistImage(), getHaarFeature(), segmentImage::getHSVvalue(), SearchArray::getImage(), getIntSalPt(), getLikelyhoodImage(), getLocalMax(), LPTFoveator::getLPT(), getMag(), getNSS(), getObj(), getPcaIcaFeatImage(), TaskRelevanceMapGistClassify::getPCAMatrix(), getPearsonRMatrix(), POMDP::getReward(), EnvSaliencyMap::getSalmap(), VisualObjectMatch::getSpatialDist(), ImageSpring< T >::getStats(), ImageSpring< T >::getStatsDist(), getSwpe(), TaskRelevanceMapTigs2::getTDMap(), TaskRelevanceMapTigs::getTDMap(), TaskRelevanceMapGistClassify::getTDMap(), SimulationViewerCompress::getTraj(), SaliencyMapStdOptim::getV(), SaliencyMapFast::getV(), SaliencyMapTrivial::getV(), SaliencyMapStd::getV(), Jet< T >::getVal(), Jet< T >::getValV(), POMDP::goalReached(), V4d::harrisDetector(), Histogram::Histogram(), houghEllipse(), ObjRec::houghLines(), houghTransform(), image2matrix(), Image_xx_assignment_to_self_xx_1(), Image_xx_attach_detach_xx_1(), Image_xx_begin_end_xx_1(), Image_xx_beginw_endw_xx_1(), Image_xx_clear_xx_1(), Image_xx_construct_and_clear_xx_1(), Image_xx_construct_from_array_xx_1(), Image_xx_copy_on_write_xx_1(), Image_xx_copy_xx_1(), Image_xx_div_array_xx_1(), Image_xx_div_eq_array_xx_1(), Image_xx_div_eq_scalar_xx_1(), Image_xx_div_scalar_xx_1(), Image_xx_indexing_xx_1(), Image_xx_lshift_eq_scalar_xx_1(), Image_xx_lshift_scalar_xx_1(), Image_xx_minus_array_xx_1(), Image_xx_minus_eq_array_xx_1(), Image_xx_minus_eq_scalar_xx_1(), Image_xx_minus_scalar_xx_1(), Image_xx_mul_array_xx_1(), Image_xx_mul_eq_array_xx_1(), Image_xx_mul_eq_scalar_xx_1(), Image_xx_mul_scalar_xx_1(), Image_xx_overlay_xx_1(), Image_xx_plus_array_xx_1(), Image_xx_plus_eq_array_xx_1(), Image_xx_plus_eq_scalar_xx_1(), Image_xx_plus_scalar_xx_1(), Image_xx_quadEnergy_xx_1(), Image_xx_rshift_eq_scalar_xx_1(), Image_xx_rshift_scalar_xx_1(), Image_xx_swap_xx_1(), Image_xx_type_convert_xx_1(), Image_xx_type_convert_xx_2(), Image_xx_type_convert_xx_3(), infoFFT(), ObjRec::initialProposal(), integralImage(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllGreedy::integrate(), PatchSet::load(), TrainingSet::loadRebalanced(), Context::localMax(), lowPassPixel(), main(), BeoMap::makePanorama(), Matlab::Matrix::Matrix(), matrixDet(), matrixMult(), matrixPivot(), maxNormalizeLandmark(), ImageCanvas::mousePressEvent(), Stimulus2D::next(), V1::nonMaxSuppressAndContTrace(), nonMaxSuppressAndContTrace(), omniDenebulize(), BeoSubQtMainForm::parseMessage(), CINNICstatsRun::pointAndFlood(), CINNICstatsRun::polatSagi2AFC(), SVMClassifier::predict(), CINNICstatsRun::preProcess(), Hmax::printCorners(), printRegion(), CINNICstatsRun::randomMatch(), segmentImage::returnNormalizedCandidates(), CINNICstatsRun::runStandardStats(), ObjRec::samplePosterior(), scaleBlock(), segment(), segmentColor(), segmentLandmark(), segmentObject(), segmentObjectClean(), segmentProb(), Ganglion::setInput(), SHOWIMG(), V4d::showParticles(), V4::showParticles(), IT::showParticles(), segmentImage2::SIcalcMassCenter(), segmentImageMC2::SIcreateMother(), segmentImageMC::SIcreateMother(), segmentImage2::SIcreateMother(), segmentImage2::SIgetHSVvalue(), segmentImageMC2::SIreturnNormalizedCandidates(), segmentImageMC::SIreturnNormalizedCandidates(), segmentImage2::SIreturnNormalizedCandidates(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), ScaleRemoveSurprise< FLOAT >::SRSgetBetaParts(), ScaleRemoveSurprise< FLOAT >::SRSgetDiffParts(), ScaleRemoveSurprise< FLOAT >::SRSsetAntiWeights(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), ScaleSurpriseControl< FLOAT >::SSCgetDiffParts(), SurpriseMap< T >::surprise(), toPowerRegion(), V1::traceContour(), traceContour(), SVMClassifier::train(), BPnnet::train(), CT2WSRegionTrainerForm::TrainClassifier(), transform(), transformDoG(), VectorHistField::updateField(), ColorSegmenterI::updateFrame(), HippocampusI::updateParticleSlamObservation(), POMDP::updatePerception(), POMDP::valueIteration(), TwoHalfDSketch::vanishingPoints(), V4d::voteForFeature(), V4::voteForFeature(), IT::voteForFeature(), warp3D(), watershed(), Hmax::writeOutImage(), and writeText2().

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 937 of file Image.H.

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

template<class T>
T Image< T >::getValInterp const float  x,
const float  y
const [inline]
 

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

Definition at line 909 of file Image.H.

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

Referenced by V4d::createDescriptor(), ObjRecSPM::createVectorsAndKeypoints(), ObjRecBOF::createVectorsAndKeypoints(), createVectorsAndKeypoints(), ShapeModel::getDistVal(), VisualObjectMatch::getFusedImage(), VisualObjectMatch::getTransfTestImage(), Image< T >::getValInterp(), Image< T >::getValInterpScaled(), pixelPatchCreateKeypoint(), and rotate().

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 944 of file Image.H.

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

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

Get image width.

Definition at line 800 of file Image.H.

Referenced by SwpeScorer::accum(), KLScorer::accum(), TCPmessage::addImage(), addNoise(), addRow(), apply_sift_on_patches(), BeoSub::ApproachPipeLine(), BeoSub::ApproachRedLight(), basic_mm_mul(), basic_vm_mul(), BiasValImage::BiasValImage(), blurAndDecY(), dummy_namespace_to_avoid_gcc411_bug_ContourChannel_C::boxDownSizeClean(), DescriptorVec::buildDV(), buildPyrGabor(), buildPyrRetinexLog(), InferoTemporalSalBayes::buildRawDV(), DescriptorVec::buildRawDV(), V4d::buildRTables(), playlist::cachenext(), ShapeModel::calcDist(), Geons3D::calcGeonLikelihood(), Contour::calcLineLikelihood(), TwoHalfDSketch::calcSketchLikelihood(), V4d::calculateOrientationVector(), ObjRecSPM::calculateOrientationVector(), ObjRecBOF::calculateOrientationVector(), calculateOrientationVector(), cartesian(), BeoSub::CenterBin(), centerSurround(), chamfer34(), CINNICstatsRun::checkSize(), CT2WSRegionTrainerForm::ClassifyImage(), convolutionMap< T >::CMcopyImage(), colorize(), SurpriseModelOD::combineFrom(), SurpriseModelPM::combineFrom(), ComplexChannel::combineOutputs(), compareregions(), Weights2D::compute(), Weights1D::compute(), BackpropNetwork::compute(), SubmapAlgorithmBiased::compute(), compute_feature_map(), SimulationViewerStats::computeAGStats(), ComputeCMAP(), computeCMAP(), BeoSubSaliency::computeCMAP(), SaliencyMT::computeCMAP(), computeConvolutionMaps(), CT2WSRegionTrainerForm::computeGist(), TaskRelevanceMapGistClassify::computeGistDist(), GistEstimatorFFT::computeGistFeatureVector(), VisualObject::computeKeypoints(), AttentionGateStd::computeMinMaxXY(), ImageSpring< T >::computePos(), concatArray(), concatLooseX(), concatLooseY(), concatX(), concatY(), contour2D(), convertToQPixmap(), convGauss(), convolve(), convolveCleanHelper(), convolveCleanZero(), WeightFilter::convolveHmax(), convolveHmax(), CINNIC::convolveTest(), convolveZeroHelper(), Image< T >::coordsOk(), XWindow::XWinImage::copyPixelsFrom(), correlation(), corrpatch(), count_pixels(), countClusters(), countParticles(), segmentImage::createMother(), crop(), dct(), deBayer(), decX(), decXY(), decY(), denoise(), SaliencyMapStdOptim::depress(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), SaliencyMapStd::depress(), describeImage(), lapack::dgemm(), lapack::dgemv(), dilateImg(), ImageQtMainForm::displayImage(), SDLdisplay::displayImagePatch(), PsychoDisplay::displayNumbers(), SDLdisplay::displayText(), dispResults(), dist2(), distDegrade(), divideRow(), POMDP::doAction(), SIFTChannel::doInput(), ScorrChannel::doInput(), ObjDetChannel::doInput(), DisparityChannel::doInput(), POMDP::doPolicy(), doRescale(), doResizeImage(), downscaleFancy(), downSize(), downSizeClean(), lapack::dpotrf(), drawArrow(), drawContour2D(), drawCross(), drawCrossOR(), drawDisk(), drawFilledPolygon(), drawFilledRect(), drawGrid(), XWindow::drawImage(), drawLine(), SimulationViewerNerdCam::drawMegaCombo(), ParticleFilterI::drawParticles(), drawPatch(), drawPatchBB(), drawPoint(), BitObject::drawShape(), MotionEnergyPyrBuilder< T >::DrawVectors(), contourRun::dumpEnergySigmoid(), dumpImage(), ObjRec::edgesLiklyProb(), erodeImg(), SMap::evolve(), HippocampusI::evolve(), V2::evolve2(), ObjRecSalBayes::evolveBrain(), V1::evolveCanny(), V1::evolveSobel(), ObjRecSPM::extractFeatures(), AttentionGateStd::extractFeatureValues(), ObjRecBOF::extractGaborFeatures(), HmaxFL::extractRandC1Patches(), ObjRecSPM::extractSiftFeatures(), ObjRecBOF::extractSIFTFeatures(), featureClusterVision< FLOAT >::fCVgetImageBaseStats(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), featureClusterVision< FLOAT >::fCVprocessOutSaccadeData(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), featureClusterVision< FLOAT >::fCVsetUpfCV(), featureClusterVision< FLOAT >::fCVuploadImage(), featurePoolHmax(), fftCompute(), CT2WSRegionTrainerForm::fileSaveGistVectors(), Histogram::fill(), fillEyeData(), fillMouthData(), fillNoseData(), lobot::filter(), filterAtLocation(), filterAtLocationBatch(), findAlign(), findBoundingRect(), V2::findLines(), findMax(), findMin(), findMonteMap(), VisualBufferStd::findMostInterestingTargetLocMax(), POMDP::findMultipleObjects(), POMDP::findObject(), flipHoriz(), flipVertic(), flood(), floodCleanBB(), BeoSub::FollowPipeLine(), formatMapForDisplay(), foveate(), LPTFoveator::foveate(), InputFrame::fromRgbAndGrayFloat(), gameOfLifeUpdate(), generateInput(), genericRescale(), get_row(), V2::get_theta(), TestImages::getAllObjMask(), getAugmentedBeliefBayesImage(), Beobot2_GistSalLocalizerMasterI::getBeliefImage(), GSlocalizer::getBeliefImage(), CMap_i::getBiasCMAP(), LeastSquaresLearner::getBiasMap(), Hmax::getC1(), ImageSpring< T >::getClusteredImage(), getColor(), getDispImg(), Beobot2_GistSalLocalizerMasterI::getDisplayImage(), getDisplayImage(), ShapeModel::getDistVal(), ObjRec::getEdgeLikelihood(), getError(), EnvObjDetection::getFoa(), VisualObjectMatch::getFusedImage(), SearchArray::getImage(), segmentImage::getImageSizeX(), ImageSpring< T >::getIndex(), BeobotVisualCortex::getInputSize(), getIntSalPt(), VisualObject::getKeypointImage(), VisualObject::getKeypointImage2(), getLikelyhoodImage(), VisualObjectMatch::getMatchImage(), getMinMaxAvgEtc(), SoxChannel::getNonlinearResponse(), getNormalizedBayesImage(), getObj(), TestImages::getObjectData(), TestImages::getObjMask(), POMDP::getObjProb(), RetinaSpaceVariant::getOutput(), RetinaStd::getOutput(), TcorrChannel::getOutput(), SpectralResidualChannel::getOutput(), VisualObjectMatch::getOverlapRect(), getPartImage(), getPartRect(), getPearsonRMatrix(), getPrimeLev(), getSalDispImg(), Beobot2_GistSalLocalizerMasterI::getSalImage(), getSalImage(), EnvSaliencyMap::getSalmap(), KLScorer::getScoreString(), getSearchCommand(), getSubSum(), getSubSum2(), getSubSumGen(), getSwpe(), TaskRelevanceMapTigs2::getTDMap(), NeoBrain::getTrackersLoc(), SimulationViewerStd::getTraj(), SimulationViewerEyeMvt::getTraj(), SimulationViewerCompress::getTraj(), VisualObjectMatch::getTransfTestImage(), AttentionGuidanceMapOpt::getV(), AttentionGuidanceMapStd::getV(), Image< T >::getVal(), Image< T >::getValInterp(), getVector(), getVectorColumn(), getVectorRow(), getWindow(), ImageSpring< T >::getXY(), IEEE1394grabber::grabPrealloc(), gradient(), gradientmag(), gradientori(), gradientSobel(), V4d::harrisDetector(), Beobot::highLevel(), Histogram::Histogram(), houghEllipse(), houghTrans(), houghTransform(), PyramidFeatureExtractor::illustrate(), Image2Ice(), image2matrix(), Image2mexArray(), Image2mexArrayUint8(), image2Orb(), image_patch(), Image_xx_construct_and_clear_xx_1(), Image_xx_construct_from_array_xx_1(), Image_xx_default_construct_xx_1(), Image_xx_orientedFilter_xx_1(), Image_xx_swap_xx_1(), Image_xx_zoomXY_xx_4(), ImageSpring< T >::ImageSpring(), img2ipl(), JpegParser::Impl::Impl(), infoFFT(), FeedForwardNetwork::init(), FeedForwardNetwork::init3L(), ImageSpring< T >::initClustering(), Image< T >::initialized(), ObjRec::initialProposal(), SurpriseMap< T >::initModels(), inplaceAddBGnoise2(), inplaceClearRegion(), inplaceEmbed(), inplacePaste(), inplacePasteGabor(), inplaceSetBorders(), inplaceSpeckleNoise(), WinnerTakeAllTempNote::input(), TaskRelevanceMapTigs2::inputFrame(), TaskRelevanceMapKillStatic::inputFrame(), VirtualVoxelSalMap< T >::inputNewImage(), insertLocalMax(), insertLocalVar(), inspect(), integralImage(), WinnerTakeAllStdOptim::integrate(), WinnerTakeAllTempNote::integrate(), WinnerTakeAllGreedy::integrate(), WinnerTakeAllStd::integrate(), TaskRelevanceMapGistClassify::integrate(), TaskRelevanceMapKillN::integrate(), interpolate(), intgCenterSurround(), intgDownSize(), intgInplaceAddBGnoise(), intgLowPass5xDecX(), intgLowPass5yDecY(), intgLowPass9x(), intgLowPass9y(), intgMaxNormalizeStd(), intgOrientedFilter(), intgRescale(), intgXFilterClean(), intgYFilterClean(), intX(), intXY(), intXYWithPad(), intY(), invdiag(), Image< T >::is1D(), V2::isaligned(), isLocalMax(), Image< T >::isSameSize(), Image< T >::isSquare(), Image< T >::isVector(), junctionFilterFull(), junctionFilterPartial(), Layout< T >::Layout(), V2::lineSegmentDetection(), V2::ll_angle(), PatchSet::load(), Patch::load(), TrainingSet::load(), FeatureExtractor::load(), TrainingSet::loadRebalanced(), Context::localMax(), POMDP::locateObject(), logPolarTransform(), lowPass3x(), lowPass3y(), lowPass5x(), lowPass5xDecX(), lowPass5y(), lowPass5yDecY(), lowPass9x(), lowPass9y(), lowPassLpt3r(), lowPassLpt3w(), lowPassLpt5r(), lowPassLpt5w(), lowPassPixel(), lowPassX(), lowPassY(), main(), SDLdisplay::makeBlittableSurface(), Nv2UiJob::makeInputMarkup(), makeMeter(), BeoMap::makePanorama(), Nv2UiJob::makeSalmapMarkup(), makeSumoDisplay(), mapCombine(), BeobotVisualCortex::masterCollect(), matrixDet(), matrixInv(), matrixPivot(), meanRow(), median3x(), median3y(), ImageCanvas::mousePressEvent(), MSTFilterFull(), MSTFilterPartial(), multiplyRow(), multiScaleBatchFilter(), myDownSize(), SurpriseImage< T >::neighborhoods(), BeobotVisualCortex::newVisualInput(), V1::nonMaxSuppressAndContTrace(), nonMaxSuppressAndContTrace(), normalizeFloat(), normalizeScaleRainbow(), normalizeWithScale(), omniDenebulize(), Image< T >::operator *(), Image< T >::operator+(), Image< T >::operator-(), Image< T >::operator/(), Image< T >::operator<<(), Image< T >::operator>>(), operator>>(), Image< T >::operator[](), WeightFilter::optConvolve(), optConvolve(), orientedFilter(), Hmax::origGetC2(), POMDP::particleFilter(), ParticleFilterI::ParticleFilterI(), pasteImage(), BeoSubPipe::pipeOrientation(), BeoGPS::plotGPS(), CINNICstatsRun::pointAndFloodImage(), CINNICstatsRun::polatSagi2AFC(), SingleChannel::postProcessMap(), SVMClassifier::predict(), SimulationViewerStd::prepMapForDisplay(), CINNICstatsRun::preProcess(), Hmax::printCorners(), processImage(), processSalCue(), processSplitImage(), BeoSub::PushRedLight(), QuartzQuickTimeParser::QuartzQuickTimeParser(), quickInterpolate(), quickLocalAvg(), quickLocalAvg2x2(), quickLocalMax(), quickLocalMin(), CINNICstatsRun::randomMatch(), HmaxFL::readInC1Patches(), V2::rect_nfa(), Image< T >::rectangleOk(), playlist::redraw(), V2::region2rect(), V2::region_grow(), replicateHemifield(), rescaleBilinear(), rescaleNI(), BitObject::reset(), retinexCompareNeighbors(), covEstimate< T >::returnCovSlice(), segmentImage::returnNormalizedCandidates(), rotate(), 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(), TrackFeature::run(), SimulationViewerI::run(), MissileLauncher::run(), InferotemporalCortexI::run(), Nv2UiJob::run(), Omni< T >::run(), runCanny(), BeoSubCanny::runCanny(), CINNICstatsRun::runPointAndFlood(), CINNIC::RunSimpleImage(), CINNICstatsRun::runStandardStats(), ColorTracker::runTracker(), saliencyChamfer34(), ObjRec::samplePosterior(), PatchSet::save(), SimulationViewerStats::save1(), SimulationViewerStats::saveCompat(), SearchArray::saveCoords(), SimulationViewerNerdCam::saveResults(), SingleChannel::saveStats(), scaleBlock(), 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(), segment(), segmentColor(), segmentProb(), Ganglion::setBias(), SurpriseMapFFT< T >::setFFTModels(), DescriptorVec::setFovea(), SeaBee3MainDisplayForm::setImage(), TrackFeature::setImg(), BitObject::setMaxMinAvgIntensity(), RealVoxel< T >::setSlice(), BeoSubCanny::setupCanny(), setupFFTW(), setupGaborMask(), ColorTracker::setupTracker(), Image< T >::setVal(), lapack::sgemm(), lapack::sgemv(), shiftClean(), showHough(), BiasImageForm::showObjectLabel(), BiasImageForm::showSMap(), showStats(), 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::SITsmoothImage(), segmentImageTrackMC::SITtrackImage(), segmentImageTrackMC::SITtrackImageAny(), RealVoxel< T >::sliceOp(), spatialPoolMax(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), ScaleRemoveSurprise< FLOAT >::SRSopenBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRSsetAntiWeights(), RetinaSpaceVariant::start2(), RetinaStd::start2(), stdevRow(), submain(), subtractRow(), sumXY(), SurpriseMapFFT< T >::surprise(), lapack::svd(), svd_lapack(), lapack::svdf(), svdf_lapack(), svdPseudoInv(), svdPseudoInvf(), templMatch(), test_lowpass5(), test_lowpass9(), BeobotBrainMT::threadCompute(), SimEventVisualBufferOutput::toString(), SimEventTargetMask::toString(), SimEventShapeEstimatorOutput::toString(), SimEventAttentionGateOutput::toString(), SimEventAttentionGuidanceMapOutput::toString(), SimEventTaskRelevanceMapOutput::toString(), SimEventSaliencyMapOutput::toString(), SimEventGistOutput::toString(), SimEventVisualCortexOutput::toString(), SimEventRetinaImage::toString(), trace(), V1::traceContour(), traceContour(), NeoBrain::trackObject(), VisualTrackerI::trackObjects(), VisualTracker::trackObjects(), trackPoint(), VisualTracker::trackTemplObject(), SVMClassifier::train(), BackpropNetwork::train(), CT2WSRegionTrainerForm::TrainClassifier(), transform(), transformDoG(), transpose(), PIDTuner::update(), ArmPlanner::updateDataImg(), VisualEventSet::updateEvents(), FOEestimator::updateFOE(), ColorSegmenterI::updateFrame(), BeoPilot::updateGUI(), POMDP::updateStateTransitions(), ImageObj< T >::updateString(), BiasValImage::updateValues(), vFlip(), Patch::w(), warp3D(), warp3Dmap(), watershed(), weightedBlur(), HmaxFL::windowedPatchDistance(), PnmWriter::writeAsciiBW(), PfzWriter::writeFloat(), PnmWriter::writeGray(), Hmax::writeOutImage(), PlaintextWriter::writePlaintextGrayF32(), PlaintextWriter::writePlaintextGrayU8(), PnmWriter::writeRawBW(), PnmWriter::writeRGB(), SimulationViewerNerdCam::writeStatusPage(), writeText(), writeText2(), WeightFilter::xFilter(), xFilter(), WeightFilter::yFilter(), yFilter(), and zoomXY().

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 1317 of file Image.H.

References Image< T >::itsHdl.

Referenced by SpectralResidualChannel::Downsizer::getDownsized(), Image_xx_beginw_endw_xx_1(), Image_xx_copy_on_write_xx_1(), Image_xx_copy_on_write_xx_2(), and Image_xx_copy_on_write_xx_3().

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 785 of file Image.H.

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

Referenced by append(), DirectFeedChannel::applyMaxNorm(), GenericFrame::asGrayF32(), GenericFrame::asGrayU16(), GenericFrame::asRgbF32(), GenericFrame::asRgbU16(), InferoTemporalSalBayes::attentionShift(), InferoTemporalHmax::attentionShift(), InferoTemporalStd::attentionShift(), SaliencyMapFast::blinkSuppression(), SaliencyMapTrivial::blinkSuppression(), buildPyrConvolve(), buildPyrGaussian(), buildPyrLaplacian(), buildPyrLocalAvg(), buildPyrLocalMax(), buildPyrOriented(), IntegerInput::byInt(), RegSaliency::calcFlicker(), chamfer34(), convolutionMap< T >::CMcheckInit2(), colGreyCombo(), InputFrame::colorFloat(), RawVisualCortex::combineOutputs(), ComplexChannel::combineOutputs(), IntegerRawVisualCortex::combineOutputsInt(), IntegerComplexChannel::combineOutputsInt(), SimulationViewerStats::computeAGStats(), BeoSubSaliency::computeCMAP(), SaliencyMT::computeCMAP(), CMap_i::computeFlickerCMAP(), VisualObject::computeKeypoints(), SceneRec::computeLocation(), concatX(), concatY(), contour2D(), convolveCleanHelper(), convolveCleanZero(), WeightFilter::convolveHmax(), convolveHmax(), convolveZeroHelper(), corrcoef(), correlation(), CT2WSRegionTrainerForm::CreateOutputImage(), dct(), SaliencyMapFast::depress(), SaliencyMapTrivial::depress(), dilateImg(), dispResults(), RegSaliency::doInput(), VarianceChannel::doInput(), TcorrChannel::doInput(), StereoChannel::doInput(), SpectralResidualChannel::doInput(), SoxChannel::doInput(), SOColorChannel::doInput(), SingleChannel::doInput(), SIFTChannel::doInput(), ScorrChannel::doInput(), RGBConvolveChannel::doInput(), PN03contrastChannel::doInput(), OrientationChannel::doInput(), ObjDetChannel::doInput(), MultiSpectralResidualChannel::doInput(), MultiConvolveChannel::doInput(), MultiColorBandChannel::doInput(), MotionChannel::doInput(), MichelsonChannel::doInput(), IntensityBandChannel::doInput(), InformationChannel::doInput(), HueChannel::doInput(), H2SVChannel::doInput(), ForegroundDetectionChannel::doInput(), FlickerChannel::doInput(), EntropyChannel::doInput(), DummyChannel::doInput(), MultiDirectFeedChannel::doInput(), DirectFeedChannel::doInput(), ContourChannel::doInput(), ColorChannel::doInput(), CIELabChannel::doInput(), IntegerSimpleChannel::doInputInt(), IntegerRawVisualCortex::doInputInt(), IntegerOrientationChannel::doInputInt(), IntegerColorChannel::doInputInt(), doRescale(), doResizeImage(), ImageCacheAvg< T >::doWhenAdd(), ImageCacheAvg< T >::doWhenRemove(), BitObject::drawBoundingBox(), drawCircle(), drawContour2D(), drawCorner(), drawCross(), drawCrossOR(), drawDisk(), drawDiskCheckTarget(), drawGrid(), drawLine(), BitObject::drawOutline(), drawPatch(), drawPatchBB(), drawRect(), drawRectEZ(), drawRectOR(), drawRectSquareCorners(), BitObject::drawShape(), erodeImg(), TwoHalfDSketch::evolve(), VisionBrainComponentI::evolve(), RetinaI::evolve(), InferotemporalCortexI::evolve(), Beobot2GistSalMasterI::evolve(), BeoCamera::evolve(), SeaBee3GUICommunicator::evolve(), SimulationViewerI::evolve(), SaliencyMapI::evolve(), MissileLauncher::evolve(), SceneUnderstanding::evolveBrain(), BiasImageForm::evolveBrain(), Convolver::fftConvolve(), CT2WSRegionTrainerForm::fileOpen(), findBoundingRect(), findMax(), findMin(), flood(), floodClean(), floodCleanBB(), formatMapForDisplay(), InputFrame::fromGrayFloat(), InputFrame::fromRgbAndGrayFloat(), MovingAvgLearner::getBiasMap(), MeanEyeposLearner::getBiasMap(), LeastSquaresLearner::getBiasMap(), KalmanFilter::getCost(), KalmanFilter::getCovariances(), getCroppedObject(), Geons3D::getDebugImage(), KalmanFilter::getEstimate(), DescriptorVec::getFoveaImage(), TigsInputFrameSeries::getFrame(), JpegParser::getFrame(), JpegParser::getFrameSpec(), RobotBrainStimulator::getImageSensor(), BotControl::getImageSensor(), BeobotVisualCortex::getInputSize(), EnvInferoTemporal::getLabeledImages(), SoxChannel::getLinearResponse(), getLocalMax(), getMaskedMinMax(), getMaskedMinMaxAvg(), getMaskedMinMaxSumArea(), SimulationViewerStd::getMegaComboMaps(), getMinMax(), getMinMaxAvg(), getMinMaxAvgEtc(), SoxChannel::getNonlinearResponse(), VisualCortexEyeMvt::getOutput(), RetinaSpaceVariant::getOutput(), RetinaStd::getOutput(), LayerDecoder::getOutput(), SpectralResidualChannel::getOutput(), SingleChannel::getOutput(), DirectFeedChannel::getOutput(), ComplexChannel::getOutput(), IntegerSimpleChannel::getOutputInt(), IntegerComplexChannel::getOutputInt(), Attentionator::getSaliencyMap(), EnvSaliencyMap::getSalmap(), BiasImageForm::getScene(), KalmanFilter::getSpeed(), KalmanFilter::getStateVector(), SimulationViewerStd::getTraj(), SimulationViewerNerdCam::getTraj(), SimulationViewerEyeMvt::getTraj(), SimulationViewerCompress::getTraj(), VisualObjectMatch::getTransfTestImage(), LayerModule::getUnit(), SaliencyMapStd::getV(), AttentionGuidanceMapOpt::getV(), AttentionGuidanceMapStd::getV(), goodness_map(), V4Lgrabber::grabRaw(), V4Lgrabber::grabSingleRaw(), InputFrame::hasDepthImage(), SingleChannel::hasOutputCache(), highThresh(), PyramidFeatureExtractor::illustrate(), Image2Ice(), image2Orb(), imageInitialized(), ImageSpring< T >::ImageSpring(), DescriptorVecDialog::init(), KalmanFilter::init(), inplaceAddBGnoise2(), inplaceAddWeighted(), inplaceAttenuateBorders(), inplaceClearRegion(), inplaceEmbed(), inplaceNormalize(), inplaceSetBorders(), inplaceSpeckleNoise(), WinnerTakeAllStdOptim::input(), WinnerTakeAllTempNote::input(), WinnerTakeAllStd::input(), VisualBufferStd::input(), SaliencyMapStdOptim::input(), SaliencyMapFast::input(), SaliencyMapTrivial::input(), SaliencyMapStd::input(), EnvVisualCortex2::input(), EnvVisualCortex::input(), LayerModule::input(), TaskRelevanceMapKillStatic::inputFrame(), VirtualVoxelSalMap< T >::inputNewImage(), interpolate(), intgBuildPyrGaussian(), intgBuildPyrLaplacian(), intgInplaceAddBGnoise(), intgInplaceAttenuateBorders(), intgInplaceNormalize(), intgMaxNormalizeStd(), intgRescale(), intgShiftImage(), intX(), intXY(), intXYWithPad(), intY(), isFinite(), KalmanFilter::isInitialized(), JpegParser::JpegParser(), learningCoeff(), main(), Nv2UiJob::makeInhibitionMarkup(), Nv2UiJob::makeInputMarkup(), mapCombine(), matrixMult(), maxNormalizeFancy(), maxNormalizeFancyFast(), maxNormalizeFancyLandmark(), maxNormalizeLandmark(), maxNormalizeStd(), mexFunction(), CT2WSRegionTrainerForm::MouseClick(), ImageCanvas::mousePressEvent(), Stimulus2D::next(), normalizeScaleRainbow(), normalizeWithScale(), VisualObject::operator=(), WeightFilter::optConvolve(), optConvolve(), VarianceChannel::outputAvailable(), SpectralResidualChannel::outputAvailable(), SobelChannel::outputAvailable(), SingleChannel::outputAvailable(), SIFTChannel::outputAvailable(), ScorrChannel::outputAvailable(), PN03contrastChannel::outputAvailable(), ObjDetChannel::outputAvailable(), MichelsonChannel::outputAvailable(), IntegerSimpleChannel::outputAvailable(), InformationChannel::outputAvailable(), ForegroundDetectionChannel::outputAvailable(), EntropyChannel::outputAvailable(), DummyChannel::outputAvailable(), ContourChannel::outputAvailable(), BeobotBrainMT::outputReady(), ImageCanvas::paintEvent(), Stimulus2D::peekFrameSpec(), RegSaliency::postChannel(), processImage(), processSalCue(), LayerDecoder::push(), quickInterpolate(), quickLocalAvg(), quickLocalMax(), quickLocalMin(), KalmanFilter::readFromStream(), rescaleBilinear(), rescaleNI(), BitObject::reset(), IntegerInput::rgInt(), RMSerr(), rotate(), LateralGeniculateNucleusI::run(), TrackFeature::run(), SimulationViewerI::run(), RetinaI::run(), MissileLauncher::run(), InferotemporalCortexI::run(), Nv2UiJob::run(), ImageShuttleI::run(), SaliencyMapFast::saccadicSuppression(), SaliencyMapTrivial::saccadicSuppression(), saliencyChamfer34(), SimulationViewerStats::save1(), RetinaSpaceVariant::save1(), RetinaStd::save1(), saveframes(), ImageCanvas::saveImg(), SimulationViewerNerdCam::saveResults(), segmentLandmark(), segmentObject(), segmentObjectClean(), SingleChannel::setClipPyramid(), shift(), shiftClean(), shiftImage(), showAllObjects(), BiasImageForm::showTraj(), BeobotVisualCortex::singleCPUprocess(), BeobotVisualCortex::slaveProcess(), submain(), templMatch(), BeobotBrainMT::threadCompute(), toRGB(), VisualTracker::trackTemplObject(), BackpropNetwork::train(), KalmanFilter::update(), updateDisplay(), OptimalGainsFinder::visitComplexChannel(), OptimalGainsFinder::visitSingleChannel(), VisualObject::VisualObject(), and KalmanFilter::writeToStream().

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 825 of file Image.H.

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

Referenced by WeightFilter::sepFilter(), and sepFilter().

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

Check if *this is the same size as the other thing.

The other thing can be any type that exposes getHeight() and getWidth()

Definition at line 820 of file Image.H.

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

Referenced by absDiff(), average(), averageWeighted(), clampedDiff(), SurpriseModelOD::combineFrom(), composite(), corrcoef(), distance(), dotprod(), doubleOpp(), ImageCacheAvg< T >::doWhenAdd(), drawContour2D(), featurePoolHmax(), findAlign(), getError(), getMaskedMinMax(), getMaskedMinMaxAvg(), getMaskedMinMaxSumArea(), RetinaStd::getOutput(), SurpriseImage< T >::init(), inplaceAddWeighted(), inplaceSetValMask(), intgQuadEnergy(), junctionFilterFull(), junctionFilterPartial(), learningCoeff(), makeRGB(), MSTFilterFull(), MSTFilterPartial(), Image< T >::operator *(), Image< T >::operator *=(), Image< T >::operator+(), Image< T >::operator+=(), Image< T >::operator-(), Image< T >::operator-=(), Image< T >::operator/(), Image< T >::operator/=(), Jet< T >::operator=(), Image< T >::operator|=(), overlay(), overlayStain(), quadEnergy(), RMSerr(), takeMax(), takeMin(), thresholdedMix(), and warp3D().

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

For testing/debugging only.

Check if the ArrayHandle is shared.

Definition at line 1326 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 840 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 835 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 830 of file Image.H.

References Image< T >::getWidth().

Referenced by diag2image().

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 1268 of file Image.H.

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

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 1188 of file Image.H.

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

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 1127 of file Image.H.

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

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

Multiply image by constant, clamp result as necessary.

Definition at line 1063 of file Image.H.

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

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 1238 of file Image.H.

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

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 1162 of file Image.H.

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

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 1103 of file Image.H.

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

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

Add constant to image, clamp result as necessary.

Definition at line 1043 of file Image.H.

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

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 1253 of file Image.H.

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

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 1175 of file Image.H.

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

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 1115 of file Image.H.

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

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

Subtract constant from image, clamp result as necessary.

Definition at line 1053 of file Image.H.

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

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 1283 of file Image.H.

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

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 1201 of file Image.H.

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

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 1139 of file Image.H.

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

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

Divide image by constant, clamp result as necessary.

Definition at line 1073 of file Image.H.

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

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 1214 of file Image.H.

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

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 1083 of file Image.H.

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

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 644 of file Image.H.

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

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 635 of file Image.H.

References Image< T >::swap().

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

template<class T>
bool Image< T >::operator== const Image< T > &  that  )  const
 

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

Definition at line 1034 of file Image.H.

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

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 1226 of file Image.H.

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

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 1093 of file Image.H.

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

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 869 of file Image.H.

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

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

Access image elements through C array index interface.

Definition at line 861 of file Image.H.

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

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

Access image elements through C array index interface.

Definition at line 853 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 845 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 1151 of file Image.H.

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

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

Test whether rectangle fits in image.

Definition at line 1024 of file Image.H.

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

Referenced by corrpatch(), drawFilledRect(), drawRect(), drawRectEZ(), drawRectSquareCorners(), SimulationViewerI::evolve(), inplaceClearRegion(), inplaceEmbed(), main(), and processSplitImage().

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

For testing/debugging only.

Returns the current reference count.

Definition at line 1322 of file Image.H.

Referenced by Image_xx_assignment_to_self_xx_1(), and Image_xx_destruct_xx_1().

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 732 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 708 of file Image.H.

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

Referenced by BPnnet::BPnnet(), centerSurround(), SimulationViewerStats::computeAGStats(), BeoSubSaliency::computeCMAP(), SaliencyMT::computeCMAP(), computeConvolutionMaps(), Graph::computeDistances(), AttentionGateStd::computeFeatureDistance(), CINNIC::convolveTest(), corrEigenMatrix(), segmentImag