#include <image1d.hh>
Inherits mln::internal::image_primary< T, mln::box, mln::image1d< T > >.
Package 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. | |
Package Functions | |
const box1d & | bbox () const |
Give the bounding box domain. | |
unsigned | border () const |
Give the border thickness. | |
T * | buffer () |
Give a hook to the value buffer. | |
const T * | buffer () const |
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. | |
T & | element (unsigned i) |
Read-write access to the i-th image value (including the border). | |
const T & | element (unsigned i) const |
Read-only access to the i-th image value (including the border). | |
bool | has (const point1d &p) const |
Test if p is valid. | |
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. | |
image1d () | |
Constructor without argument. | |
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 . |
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.
typedef T& mln::image1d< T >::lvalue [package] |
Return type of read-write access.
typedef const T& mln::image1d< T >::rvalue [package] |
Return type of read-only access.
typedef image1d< tag::value_<T> > mln::image1d< T >::skeleton [package] |
Skeleton.
typedef T mln::image1d< T >::value [package] |
Value associated type.
mln::image1d< T >::image1d | ( | ) | [inline, package] |
Constructor without argument.
mln::image1d< T >::image1d | ( | unsigned | ninds, | |
unsigned | bdr = border::thickness | |||
) | [inline, package] |
mln::image1d< T >::image1d | ( | const box1d & | b, | |
unsigned | bdr = border::thickness | |||
) | [inline, package] |
const box1d & mln::image1d< T >::bbox | ( | ) | const [inline, package] |
Give the bounding box domain.
unsigned mln::image1d< T >::border | ( | ) | const [inline, package] |
Give the border thickness.
T * mln::image1d< T >::buffer | ( | ) | [inline, package] |
Give a hook to the value buffer.
const T * mln::image1d< T >::buffer | ( | ) | const [inline, package] |
Give a hook to the value buffer.
int mln::image1d< T >::delta_index | ( | const dpoint1d & | dp | ) | const [inline, package] |
Give the offset corresponding to the delta-point dp
.
const box1d & mln::image1d< T >::domain | ( | ) | const [inline, package] |
Give the definition domain.
T & mln::image1d< T >::element | ( | unsigned | i | ) | [inline, package] |
Read-write access to the i-th
image value (including the border).
References mln::image1d< T >::nelements().
const T & mln::image1d< T >::element | ( | unsigned | i | ) | const [inline, package] |
Read-only access to the i-th
image value (including the border).
References mln::image1d< T >::nelements().
bool mln::image1d< T >::has | ( | const point1d & | p | ) | const [inline, package] |
unsigned mln::image1d< T >::nelements | ( | ) | const [inline, package] |
Give the number of cells (points including border ones).
Referenced by mln::image1d< T >::element(), and mln::image1d< T >::point_at_index().
unsigned mln::image1d< T >::ninds | ( | ) | const [inline, package] |
Give the number of indexes.
T & mln::image1d< T >::operator() | ( | const point1d & | p | ) | [inline, package] |
const T & mln::image1d< T >::operator() | ( | const point1d & | p | ) | const [inline, package] |
point1d mln::image1d< T >::point_at_index | ( | unsigned | i | ) | const [inline, package] |