Basic 1D image class. More...
#include <image1d.hh>
Inherits image_primary< T, box1d, image1d< T > >.
Public Types | |
| typedef T & | lvalue |
| Return type of read-write access. | |
| typedef const T & | rvalue |
| Return type of read-only access. | |
| typedef image1d< tag::value_< T > > | skeleton |
| Skeleton. | |
| typedef T | value |
| Value associated type. | |
Public Member Functions | |
| const box1d & | bbox () const |
| Give the bounding box domain. | |
| unsigned | border () const |
| Give the border thickness. | |
| const T * | buffer () const |
| Give a hook to the value buffer. | |
| T * | buffer () |
| Give a hook to the value buffer. | |
| int | delta_index (const dpoint1d &dp) const |
Give the offset corresponding to the delta-point dp. | |
| const box1d & | domain () const |
| Give the definition domain. | |
| const T & | element (unsigned i) const |
Read-only access to the i-th image value (including the border). | |
| T & | element (unsigned i) |
Read-write access to the i-th image value (including the border). | |
| bool | has (const point1d &p) const |
Test if p is valid. | |
| image1d () | |
| Constructor without argument. | |
| image1d (const box1d &b, unsigned bdr=border::thickness) | |
| Constructor with a box and the border thickness. | |
| image1d (unsigned ninds, unsigned bdr=border::thickness) | |
| Constructor with the number of indices and the border thickness. | |
| unsigned | nelements () const |
| Give the number of cells (points including border ones). | |
| unsigned | ninds () const |
| Give the number of indexes. | |
| T & | operator() (const point1d &p) |
Read-write access to the image value located at point p. | |
| const T & | operator() (const point1d &p) const |
Read-only access to the image value located at point p. | |
| point1d | point_at_index (unsigned i) const |
Give the point corresponding to the offset o. | |
| const box1d & | vbbox () const |
| virtual box, i.e., box including the virtual border | |
Basic 1D image class.
The parameter T is the type of pixel values. This image class stores data in memory and has a virtual border with constant thickness before and after data.
Definition at line 155 of file image1d.hh.
| typedef T& mln::image1d< T >::lvalue |
Return type of read-write access.
Definition at line 167 of file image1d.hh.
| typedef const T& mln::image1d< T >::rvalue |
Return type of read-only access.
Definition at line 164 of file image1d.hh.
| typedef image1d< tag::value_<T> > mln::image1d< T >::skeleton |
Skeleton.
Definition at line 170 of file image1d.hh.
| typedef T mln::image1d< T >::value |
Value associated type.
Definition at line 161 of file image1d.hh.
| mln::image1d< T >::image1d | ( | ) | [inline] |
Constructor without argument.
Definition at line 371 of file image1d.hh.
| mln::image1d< T >::image1d | ( | unsigned | ninds, | |
| unsigned | bdr = border::thickness | |||
| ) | [inline] |
Constructor with the number of indices and the border thickness.
Definition at line 384 of file image1d.hh.
References mln::make::box1d().
| mln::image1d< T >::image1d | ( | const box1d & | b, | |
| unsigned | bdr = border::thickness | |||
| ) | [inline] |
Constructor with a box and the border thickness.
Definition at line 377 of file image1d.hh.
| const box1d & mln::image1d< T >::bbox | ( | ) | const [inline] |
Give the bounding box domain.
Definition at line 411 of file image1d.hh.
| unsigned mln::image1d< T >::border | ( | ) | const [inline] |
Give the border thickness.
Definition at line 429 of file image1d.hh.
| const T * mln::image1d< T >::buffer | ( | ) | const [inline] |
Give a hook to the value buffer.
Definition at line 520 of file image1d.hh.
| T * mln::image1d< T >::buffer | ( | ) | [inline] |
Give a hook to the value buffer.
Definition at line 529 of file image1d.hh.
| int mln::image1d< T >::delta_index | ( | const dpoint1d & | dp | ) | const [inline] |
Give the offset corresponding to the delta-point dp.
Definition at line 538 of file image1d.hh.
| const box1d & mln::image1d< T >::domain | ( | ) | const [inline] |
Give the definition domain.
Definition at line 402 of file image1d.hh.
| const T & mln::image1d< T >::element | ( | unsigned | i | ) | const [inline] |
Read-only access to the i-th image value (including the border).
Definition at line 502 of file image1d.hh.
References mln::image1d< T >::nelements().
| T & mln::image1d< T >::element | ( | unsigned | i | ) | [inline] |
Read-write access to the i-th image value (including the border).
Definition at line 511 of file image1d.hh.
References mln::image1d< T >::nelements().
| bool mln::image1d< T >::has | ( | const point1d & | p | ) | const [inline] |
Test if p is valid.
Definition at line 447 of file image1d.hh.
Referenced by mln::image1d< T >::operator()().
| unsigned mln::image1d< T >::nelements | ( | ) | const [inline] |
Give the number of cells (points including border ones).
Definition at line 438 of file image1d.hh.
Referenced by mln::image1d< T >::element(), and mln::image1d< T >::point_at_index().
| unsigned mln::image1d< T >::ninds | ( | ) | const [inline] |
Give the number of indexes.
Definition at line 483 of file image1d.hh.
| const T & mln::image1d< T >::operator() | ( | const point1d & | p | ) | const [inline] |
Read-only access to the image value located at point p.
Definition at line 456 of file image1d.hh.
References mln::image1d< T >::has().
| T & mln::image1d< T >::operator() | ( | const point1d & | p | ) | [inline] |
Read-write access to the image value located at point p.
Definition at line 465 of file image1d.hh.
References mln::image1d< T >::has().
| point1d mln::image1d< T >::point_at_index | ( | unsigned | i | ) | const [inline] |
Give the point corresponding to the offset o.
Definition at line 548 of file image1d.hh.
References mln::image1d< T >::nelements().
| const box1d & mln::image1d< T >::vbbox | ( | ) | const [inline] |
virtual box, i.e., box including the virtual border
Definition at line 420 of file image1d.hh.
1.7.1