|
| | Image () |
| | Empty constructor. More...
|
| |
| | Image (const Coords< dim > &sz) |
| | Constructor (known size). More...
|
| |
| | Image (int w, int h) |
| | Constructor (known size, 2D). More...
|
| |
| | Image (int w, int h, int d) |
| | Constructor (known size, 3D). More...
|
| |
| | Image (T *ptr, const Coords< dim > &sz, bool handleDelete=false) |
| | Constructor (pre-allocated). More...
|
| |
| | Image (T *ptr, int w, int h, bool handleDelete=false) |
| | Constructor (pre-allocated 2D). More...
|
| |
| | Image (T *ptr, int w, int h, int d, bool handleDelete=false) |
| | Constructor (pre-allocated 3D). More...
|
| |
| | Image (const Base &I) |
| | Copy constructor. More...
|
| |
| template<typename T2 > |
| | Image (const MultiArray< T2, dim > &I) |
| | Constructor (different type). More...
|
| |
| virtual | ~Image () |
| | Destructor. More...
|
| |
| Image | clone () const |
| | Cloning. More...
|
| |
| T | dirichlet (const Coords< dim > &c, T out=T(0)) const |
| | Dirichlet access. More...
|
| |
|
T | dirichlet (int x, int y, T out=T(0)) const |
| | Dirichlet (2D alias).
|
| |
|
T | dirichlet (int x, int y, int z, T out=T(0)) const |
| | Dirichlet (3D alias).
|
| |
| Image & | fill (T x) |
| | Filling. More...
|
| |
| Image | getSubImage (const Coords< dim > &offset, const Coords< dim > &sz) const |
| | Sub image. More...
|
| |
| Image | getSubImage (int x, int y, int w, int h) const |
| | Sub image (2D). More...
|
| |
| Image | getSubImage (int x, int y, int z, int w, int h, int d) const |
| | Sub image (3D). More...
|
| |
| template<typename V > |
PixelTraits< T >::template
CastPixel< V >::value_type | interpolate (const FVector< V, dim > &c) const |
| | Interpolation. More...
|
| |
|
template<typename V > |
PixelTraits< T >::template
CastPixel< V >::value_type | interpolate (V x, V y) const |
| | Interpolation with automated return type, 2D alias.
|
| |
|
template<typename V > |
PixelTraits< T >::template
CastPixel< V >::value_type | interpolate (V x, V y, V z) const |
| | Interpolation with automated return type, 3D alias.
|
| |
| T | invMirror (const Coords< dim > &c) const |
| | Inversed mirror access. More...
|
| |
|
T | invMirror (int x, int y) const |
| | Inversed mirror access (2D alias).
|
| |
|
T | invMirror (int x, int y, int z) const |
| | Inversed mirror access (3D alias).
|
| |
| T | mirror (const Coords< dim > &c) const |
| | Mirror access. More...
|
| |
|
T | mirror (int x, int y) const |
| | Mirror access (2D alias).
|
| |
|
T | mirror (int x, int y, int z) const |
| | Mirror access (3D alias).
|
| |
| T | neumann (const Coords< dim > &c) const |
| | Neumann access. More...
|
| |
|
T | neumann (int x, int y) const |
| | Neumann (2D alias).
|
| |
|
T | neumann (int x, int y, int z) const |
| | Neumann (3D alias).
|
| |
| Image | operator* (scalar_type s) const |
| | Scalar multiplication. More...
|
| |
| Image | operator* (const Image< scalar_type, dim > &B) const |
| | Pointwise scalar multiplication. More...
|
| |
| Image & | operator*= (scalar_type s) |
| | In place scalar multiplication. More...
|
| |
| Image & | operator*= (const Image< scalar_type, dim > &B) |
| | In place pointwise scalar multiplication. More...
|
| |
| Image | operator+ (const Image &B) const |
| | Addition. More...
|
| |
| Image | operator+ (T v) const |
| | Constant addition. More...
|
| |
| Image & | operator+= (const Image &B) |
| | In place Addition. More...
|
| |
| Image & | operator+= (T v) |
| | In place constant addition. More...
|
| |
| Image | operator- () const |
| | Opposite. More...
|
| |
| Image | operator- (const Image &B) const |
| | Substraction. More...
|
| |
| Image | operator- (T v) const |
| | Constant substraction. More...
|
| |
| Image & | operator-= (const Image &B) |
| | In place substraction. More...
|
| |
| Image & | operator-= (T v) |
| | In place constant substraction. More...
|
| |
| Image | operator/ (scalar_type s) const |
| | Scalar division. More...
|
| |
| Image | operator/ (const Image< scalar_type, dim > &B) const |
| | Pointwise scalar division. More...
|
| |
| Image & | operator/= (scalar_type s) |
| | In place scalar division. More...
|
| |
| Image & | operator/= (const Image< scalar_type, dim > &B) |
| | In place pointwise scalar division. More...
|
| |
| Image & | operator= (const Base &I) |
| | Assignment. More...
|
| |
| template<typename T2 > |
| Image & | operator= (const MultiArray< T2, dim > &I) |
| | Assignment (different type). More...
|
| |
| | MultiArray () |
| | Empty constructor. More...
|
| |
| | MultiArray (const Coords< dim > &sz) |
| | Constructor (known size). More...
|
| |
| | MultiArray (int s0, int s1) |
| | Constructor (2D shorcut). More...
|
| |
| | MultiArray (int s0, int s1, int s2) |
| | Constructor (3D shorcut). More...
|
| |
| | MultiArray (T *ptr, const Coords< dim > &sz, bool handleDelete=false) |
| | Constructor (pre-allocated). More...
|
| |
| | MultiArray (T *ptr, int s0, int s1, bool handleDelete=false) |
| | Constructor (pre-allocated) 2D alias. More...
|
| |
| | MultiArray (T *ptr, int s0, int s1, int s2, bool handleDelete=false) |
| | Constructor (pre-allocated) 3D alias. More...
|
| |
| | MultiArray (const MultiArray &A) |
| | Copy constructor. More...
|
| |
| template<typename T2 > |
| | MultiArray (const MultiArray< T2, dim > &A) |
| | Constructor (different type). More...
|
| |
| virtual | ~MultiArray () |
| | Destructor. More...
|
| |
| MultiArray | clone () const |
| | Cloning. More...
|
| |
| CoordsIterator< dim > | coordsBegin () const |
| | Begin coords iterator. More...
|
| |
| CoordsIterator< dim > | coordsEnd () const |
| | End coords iterator. More...
|
| |
| int | depth () const |
| | Size alias 2. More...
|
| |
| MultiArray & | fill (T x) |
| | Filling. More...
|
| |
| MultiArray | getSubArray (const Coords< dim > &offset, const Coords< dim > &sz) const |
| | Sub array. More...
|
| |
| int | height () const |
| | Size alias 1. More...
|
| |
| size_t | offset (const Coords< dim > &c) const |
| | Offset. More...
|
| |
| size_t | offset (int x, int y) const |
| | Offset (2D alias). More...
|
| |
| size_t | offset (int x, int y, int z) const |
| | Offset (3D alias). More...
|
| |
| const T & | operator() (const Coords< dim > &c) const |
| | Read access. More...
|
| |
| T & | operator() (const Coords< dim > &c) |
| | Write access. More...
|
| |
| const T & | operator() (int x, int y) const |
| | Read access 2D alias. More...
|
| |
| T & | operator() (int x, int y) |
| | Write access 2D alias. More...
|
| |
| const T & | operator() (int x, int y, int z) const |
| | Read access 3D alias. More...
|
| |
| T & | operator() (int x, int y, int z) |
| | Write access 3D alias. More...
|
| |
| MultiArray & | operator= (const MultiArray &A) |
| | Assignment. More...
|
| |
| template<typename T2 > |
| MultiArray & | operator= (const MultiArray< T2, dim > &A) |
| | Assignment (different type). More...
|
| |
| void | setSize (const Coords< dim > &sz) |
| | Change sizes. More...
|
| |
| void | setSize (int s0, int s1) |
| | Change size 2D alias. More...
|
| |
| void | setSize (int s0, int s1, int s2) |
| | Change size 3D alias. More...
|
| |
| int | size (int i) const |
| | ith size. More...
|
| |
| Coords< dim > | sizes () const |
| | Sizes. More...
|
| |
| FArray< size_t, dim > | stride () const |
| | Stride. More...
|
| |
| size_t | stride (int i) const |
| | ith stride. More...
|
| |
| size_t | totalSize () const |
| | Total Size. More...
|
| |
| int | width () const |
| | Size alias 0. More...
|
| |
| | Array () |
| | Empty constructor. More...
|
| |
| | Array (size_t size) |
| | Constructor (known size). More...
|
| |
| | Array (T *ptr, size_t size, bool handleDelete=false) |
| | Constructor (pre-allocated). More...
|
| |
| | Array (const Array &A) |
| | Copy constructor. More...
|
| |
| template<typename T2 > |
| | Array (const Array< T2 > &A) |
| | Constructor (different type). More...
|
| |
| | Array (const std::list< T > &L) |
| | Constructor (from list). More...
|
| |
| virtual | ~Array () |
| | Destructor. More...
|
| |
| iterator | begin () |
| | Begin iterator. More...
|
| |
| const_iterator | begin () const |
| | Begin const iterator. More...
|
| |
| Array | clone () const |
| | Cloning. More...
|
| |
| T * | data () |
| | Data pointer (read/write). More...
|
| |
| const T * | data () const |
| | Data pointer (read). More...
|
| |
| bool | empty () const |
| | Is empty. More...
|
| |
| iterator | end () |
| | End iterator. More...
|
| |
| const_iterator | end () const |
| | End const iterator. More...
|
| |
| Array & | fill (const T &x) |
| | Filling. More...
|
| |
| Array | getSubArray (size_t offset, size_t size) const |
| | Sub array. More...
|
| |
| bool | operator!= (const Array &A) const |
| | Inequality test. More...
|
| |
| Array & | operator= (const Array &A) |
| | Assignment. More...
|
| |
| template<typename T2 > |
| Array & | operator= (const Array< T2 > &A) |
| | Assignment (different type). More...
|
| |
| bool | operator== (const Array &A) const |
| | Equality test. More...
|
| |
| const T & | operator[] (size_t i) const |
| | Read access. More...
|
| |
| T & | operator[] (size_t i) |
| | Write access. More...
|
| |
| void | setSize (size_t size) |
| | Change size. More...
|
| |
| size_t | size () const |
| | Size. More...
|
| |
template<typename T, int dim = 2>
class Imagine::Image< T, dim >
Image of variable size, dimension and pixel type. Memory is reference counted, i.e.:
- a=b results in a and b sharing the same memory
- the last object using memory frees it when it dies
- use clone() when this sharing is not desired
- Parameters
-
| T | pixel type |
| dim | dimension (default=2) |
- Examples:
- Images/test/test.cpp.