[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
BasicImage Class Template Reference | ![]() |
---|
Fundamental class template for images. More...
#include "vigra/basicimage.hxx"
Public Types | |
typedef PIXELTYPE | value_type |
typedef PIXELTYPE | PixelType |
typedef PIXELTYPE & | reference |
typedef PIXELTYPE const & | const_reference |
typedef PIXELTYPE * | pointer |
typedef PIXELTYPE const * | const_pointer |
typedef PIXELTYPE * | iterator |
typedef PIXELTYPE * | ScanOrderIterator |
typedef PIXELTYPE const * | const_iterator |
typedef PIXELTYPE const * | ConstScanOrderIterator |
typedef BasicImageIterator< PIXELTYPE, PIXELTYPE ** > | traverser |
typedef BasicImageIterator< PIXELTYPE, PIXELTYPE ** > | Iterator |
typedef ConstBasicImageIterator< PIXELTYPE, PIXELTYPE ** > | const_traverser |
typedef ConstBasicImageIterator< PIXELTYPE, PIXELTYPE ** > | ConstIterator |
typedef Diff2D | difference_type |
typedef Size2D | size_type |
typedef IteratorTraits< traverser >::DefaultAccessor | Accessor |
typedef IteratorTraits< const_traverser >::DefaultAccessor | ConstAccessor |
typedef Alloc | allocator_type |
Public Methods | |
BasicImage () | |
BasicImage (Alloc const &alloc) | |
BasicImage (int width, int height, Alloc const &alloc=Alloc()) | |
BasicImage (difference_type const &size, Alloc const &alloc=Alloc()) | |
BasicImage (int width, int height, value_type const &d, Alloc const &alloc=Alloc()) | |
BasicImage (difference_type const &size, value_type const &d, Alloc const &alloc=Alloc()) | |
BasicImage (int width, int height, const_pointer d, Alloc const &alloc=Alloc()) | |
BasicImage (difference_type const &size, const_pointer d, Alloc const &alloc=Alloc()) | |
BasicImage (const BasicImage &rhs) | |
~BasicImage () | |
BasicImage & | operator= (const BasicImage &rhs) |
BasicImage & | operator= (value_type pixel) |
BasicImage & | init (value_type const &pixel) |
void | resize (int width, int height) |
void | resize (difference_type const &size) |
void | resize (int width, int height, value_type const &d) |
void | resizeCopy (int width, int height, const_pointer data) |
void | resizeCopy (const BasicImage &rhs) |
void | swap (BasicImage &rhs) |
int | width () const |
int | height () const |
size_type | size () const |
bool | isInside (difference_type const &d) const |
reference | operator[] (difference_type const &d) |
const_reference | operator[] (difference_type const &d) const |
reference | operator() (int dx, int dy) |
const_reference | operator() (int dx, int dy) const |
pointer | operator[] (int dy) |
const_pointer | operator[] (int dy) const |
traverser | upperLeft () |
traverser | lowerRight () |
const_traverser | upperLeft () const |
const_traverser | lowerRight () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
Accessor | accessor () |
ConstAccessor | accessor () const |
Detailed Description |
A customized memory allocator can be specified as a templated argument ans passed in the constructor.
#include "vigra/basicimage.hxx"
Namespace: vigra
pyramid.cxx, and watershed.cxx.
|
the BasicImage's default accessor |
|
the BasicImage's allocator (default: std::allocator<value_type>) |
|
the BasicImage's 1D random access const iterator (note: lower case 'const_iterator' is a STL compatible 1D random access const iterator) |
|
the BasicImage's const pointer type |
|
the BasicImage's const reference type (i.e. the return type of |
|
the BasicImage's 2D random access const iterator ('const traverser') |
|
the BasicImage's default const accessor |
|
deprecated, use |
|
deprecated, use |
|
the BasicImage's difference type (argument type of image[diff]) |
|
deprecated, use |
|
the BasicImage's 1D random access iterator (note: lower case 'iterator' is a STL compatible 1D random access iterator, don't confuse with capitalized Iterator) |
|
the BasicImage's pixel type |
|
the BasicImage's pointer type |
|
the BasicImage's reference type (i.e. the return type of |
|
deprecated, use |
|
the BasicImage's size type (result type of image.size()) |
|
the BasicImage's 2D random access iterator ('traverser') |
|
the BasicImage's pixel type |
|
construct image of size 0x0 |
|
construct image of size 0x0, use the specified allocator. |
|
construct image of size width x height, use the specified allocator. |
|
construct image of size size.x x size.y, use the specified allocator. |
|
construct image of size width*height and initialize every pixel with the value d (use this constructor, if value_type doesn't have a default constructor). Use the specified allocator. |
|
construct image of size size.x x size.y and initialize every pixel with given data (use this constructor, if value_type doesn't have a default constructor). Use the specified allocator. |
|
construct image of size width*height and copy the data from the given C-style array d. Use the specified allocator. |
|
construct image of size size.x x size.y and copy the data from the given C-style array. Use the specified allocator. |
|
copy rhs image |
|
destructor |
|
return default const accessor |
|
return default accessor |
|
init 1D random access const iterator pointing to first pixel |
|
init 1D random access iterator pointing to first pixel |
|
init 1D random access const iterator pointing past the end |
|
init 1D random access iterator pointing past the end |
|
height of Image |
|
set Image with const value |
|
test whether a given coordinate is inside the image |
|
init 2D random access const iterator poining to pixel(width, height), i.e. one pixel right and below lower right corner of the image as is common in C/C++. |
|
init 2D random access iterator poining to pixel(width, height), i.e. one pixel right and below lower right corner of the image as is common in C/C++. |
|
read pixel at given location. |
|
access pixel at given location. |
|
|
|
copy rhs image (image is resized if necessary) |
|
read pixel at given location. Note that the 'x' index is the trailing index. |
|
access pixel at given location. Note that the 'x' index is the trailing index. |
|
read pixel at given location. |
|
access pixel at given location. |
|
reset image to specified size and initialize it with given data (use this if value_type doesn't have a default constructor, dimensions must not be negative, old data are kept if new size matches old size) |
|
reset image to specified size (dimensions must not be negative) (old data are kept if new size matches old size) |
|
reset image to specified size (dimensions must not be negative) (old data are kept if new size matches old size) |
|
resize image to size of other image and copy it's data |
|
resize image to given size and initialize by copying data from the C-style arra data. |
|
size of Image |
|
swap the internal data with the rhs image in constant time |
|
init 2D random access const iterator poining to upper left pixel |
|
init 2D random access iterator poining to upper left pixel |
|
width of Image |
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|