
#include <Image/Image.H>
Inheritance diagram for Image< T >:

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 Dims & | getDims () 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. | |
| T | getValInterp (const float x, const float y) const |
| Get pixel value at (x, y) in image with bilinear interpolation. | |
| T | getValInterp (const Point2D< float > &p) const |
| Get pixel value at (x, y) in image with bilinear interpolation. | |
| T | 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. | |
|
|||||
|
Read-only iterator.
|
|
|||||
|
Read/write iterator.
|
|
||||||||||||||||||||
|
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. |
|
||||||||||||||||
|
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. |
|
||||||||||||||||||||
|
Allocates memory for given size, and optionally zero-clear that memory.
|
|
||||||||||||||||
|
Constructor that only allocates memory for given size.
|
|
|||||||||
|
Construct an empty (0-by-0) image (useful for arrays of Images).
|
|
||||||||||
|
Copy constructor. e.g.: Image<byte> im(other); // or Image<byte> im = other; // with other also of type Image<byte> |
|
||||||||||||||
|
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(). |
|
|||||||||
|
Destructor.
|
|
||||||||||||||||||||
|
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(). |
|
|||||||||
|
|||||||||
|
||||||||||
|
||||||||||||||||
|
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(). |
|
||||||||||
|
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. |
|
||||||||||||||||
|
Test whether point falls inside array boundaries.
Definition at line 1002 of file Image.H. References Image< T >::getHeight(), and Image< T >::getWidth(). |
|
||||||||||
|
|||||||||
|
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(). |
|
|||||||||
|
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(). |
|
|||||||||
|
|||||||||
|
|||||||||
|
|||||||||
|
Returns read/write (non-const) pointer to internal image array.
|
|
|||||||||
|
|||||||||
|
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(). |
|
|||||||||
|
|||||||||
|
|||||||||
|
||||||||||||||||||||||||
|
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(). |
|
||||||||||
|
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. |
|
||||||||||||||||
|
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(). |
|
||||||||||
|
||||||||||
|
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. |
|
||||||||||||||||
|
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(). |
|
||||||||||||||||
|
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. |
|
|||||||||
|
||||||||||
|
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(). |
|
|||||||||
|
|||||||||
|
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(). |
|
||||||||||||||
|
|||||||||
|
For testing/debugging only. Check if the ArrayHandle is shared. Definition at line 1326 of file Image.H. Referenced by fill(). |
|
|||||||||
|
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(). |
|
|||||||||
|
Check if the image is a transposed vector, i.e., height == 1.
Definition at line 835 of file Image.H. References Image< T >::getHeight(). |
|
|||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||
|
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=(). |
|
||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||
|
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. |
|
||||||||||
|
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. |
|
||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
||||||||||||||
|
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(). |
|
||||||||||
|
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(). |
|
|||||||||
|
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(). |
|
||||||||||||||||||||
|
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(). |
|
||||||||||||||||
|
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 |