[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
ImageArray Class Template Reference | ![]() |
---|
Fundamental class template for arrays of equal-sized images. More...
#include "vigra/imagecontainer.hxx"
Inheritance diagram for ImageArray:
Public Types | |
typedef ImageType | value_type |
Public Methods | |
ImageArray (unsigned int numImages, const Diff2D &imageSize) | |
ImageArray (unsigned int numImages=0) | |
ImageArray (unsigned int numImages, const ImageType &image) | |
template<class InputIterator> | ImageArray (InputIterator begin, InputIterator end) |
reference | operator[] (size_type index) |
const_reference | operator[] (size_type index) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
size_type | size () const |
size_type | max_size () const |
bool | empty () |
bool | operator== (const ImageArray< ImageType > &other) |
iterator | insert (iterator pos, const_reference image) |
void | insert (iterator pos, size_type count, const_reference image) |
template<class InputIterator> void | insert (iterator pos, InputIterator begin, InputIterator end) |
iterator | erase (iterator pos) |
iterator | erase (iterator begin, iterator end) |
void | clear () |
void | resize (size_type newSize) |
void | resize (size_type newSize, ImageType &image) |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
void | push_back (const_reference image) |
void | pop_back () |
void | swap (const_reference other) |
size_type | capacity () const |
void | reserve (size_type n) |
Size2D | imageSize () const |
virtual void | resizeImages (const Diff2D &newSize) |
void | resizeImages (int width, int height) |
Detailed Description |
An ImageArray manages an array of images of the type given as template parameter. Use it like a std::vector<ImageType>, it has the same interface, only operator< is missing from ImageArray. It offers additional functions for resizing the images and querying their common size. See imageSize() for additional notes.
#include "vigra/imagecontainer.hxx"
Namespace: vigra
|
the type of the contained values/images |
|
init an array of numImages equal-sized images |
|
Init an array of numImages equal-sized images, the size depends on ImageType's default constructor. |
|
fill constructor: Init an array with numImages copies of the given image. (STL-Sequence interface) |
|
range constructor: Construct an array containing copies of the images in [begin, end). Those images must all have the same size, see imageSize(). (STL-Sequence interface) |
|
return the last image. (STL-Vector interface) |
|
return the last image. (STL-Vector interface) |
|
Returns an iterator pointing to the first image (STL-Container interface) |
|
Returns an iterator pointing to the first image (STL-Container interface) |
|
number of image objects for which memory has been allocated (STL-Vector interface) |
|
Empty this array. (STL-Sequence interface) |
|
Returns true if and only if there are no contained images. (STL-Container interface) |
|
Returns an iterator pointing behind the last image (STL-Container interface) |
|
Returns an iterator pointing behind the last image (STL-Container interface) |
|
Removes the images from [begin, end) from this array. (STL-Sequence interface) |
|
Removes the image at pos from this array. (STL-Sequence interface) |
|
return the first image. (STL-Sequence interface) |
|
return the first image. (STL-Sequence interface) |
|
Query the size of the contained images. ImageArray will maintain an array of equal-sized images of this size. However, do not resize the contained images manually. ImageArray currently has no way to detect or prevent this. |
|
Insert copies of images from [begin, end) at/before pos. (STL-Sequence interface) |
|
Insert count copies of image at/before pos. (STL-Sequence interface) |
|
Insert image at/before pos. (STL-Sequence interface) |
|
Query maximum size of this ImageArray, that is: the max. parameter you may pass to resize(). (STL-Container interface) |
|
Returns true if and only if both ImageArrays have exactly the same contents and all images did compare equal with the corresponding image in the other ImageArray. (STL-Forward Container interface) |
|
Operator for a vector-like access to the contained images (STL-Vector interface) |
|
Operator for a vector-like access to the contained images (STL-Vector interface) |
|
remove last image from array (STL-Back Insertion Sequence interface) |
|
append image to array (STL-Back Insertion Sequence interface) |
|
Returns a reverse_iterator pointing to the first image of the reversed view of this array (STL-Reversable Container interface) |
|
Returns a reverse_iterator pointing to the first image of the reversed view of this array (STL-Reversable Container interface) |
|
Returns a reverse_iterator pointing behind the last image of the reversed view of this array (STL-Reversable Container interface) |
|
Returns a reverse_iterator pointing behind the last image of the reversed view of this array (STL-Reversable Container interface) |
|
increase capacity(). (STL-Vector interface) |
|
Resize this ImageArray, throwing the last images away if you make the array smaller or appending new copies of image at the end of the array if you make it larger. precondition: |
|
Resize this ImageArray, throwing the last images away if you make the array smaller or appending new images of the right size at the end of the array if you make it larger. (STL-Sequence interface) |
|
Resize all images to a common new size (No-op if
(Convenience function, same as calling |
|
Resize all images to a common new size (No-op if Reimplemented in GaborFilterFamily. |
|
Query size of this ImageArray, that is: the number of images. (STL-Container interface) |
|
swap contents of this array with the contents of other (STL-Container interface) |
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|