$extrastylesheet
#include <mln/core/image/image1d.hh>
Public Member Functions | |
| image1d () | |
| image1d (unsigned ninds, unsigned bdr=border::thickness) | |
| image1d (const box1d &b, unsigned bdr=border::thickness) | |
| const box1d & | bbox () const |
| unsigned | border () const |
| const T * | buffer () const |
| T * | buffer () |
| int | delta_offset (const dpoint1d &dp) const |
| void | destroy () |
| const box1d & | domain () const |
| const T & | element (unsigned i) const |
| T & | element (unsigned i) |
| bool | has (const point1d &p) const |
| void | init_ (const box1d &b, unsigned bdr=border::thickness) |
| bool | is_valid () const |
| unsigned | nelements () const |
| std::size_t | nsites () const |
| const T & | operator() (const point1d &p) const |
| T & | operator() (const point1d &p) |
| point1d | point_at_offset (unsigned i) const |
| void | resize_ (unsigned new_border) |
| const t_eligible_values_set & | values_eligible () const |
| const t_values_space & | values_space () const |
| const box1d & | vbbox () const |
Protected Attributes | |
| mln::util::tracked_ptr < internal::data< image1d< T > > > | data_ |
Public Types | |
| typedef box1d::bkd_piter | bkd_piter |
| typedef Image< void > | category |
| typedef box1d | domain_t |
| typedef image1d< T > | exact_t |
| typedef box1d::fwd_piter | fwd_piter |
| typedef T & | lvalue |
| typedef fwd_piter | piter |
| typedef box1d::psite | psite |
| typedef const T & | rvalue |
| typedef box1d::site | site |
| typedef image1d< tag::value_< T > > | skeleton |
| typedef internal::image_primary< T, mln::box1d, image1d< T > > | super_ |
| typedef mln::value::set< T > | t_eligible_values_set |
| typedef mln::value::set < typename mln::value::super_value< T > ::ret > | t_values_space |
| typedef T | value |
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 137 of file image1d.hh.
| mln::image1d< T >::image1d | ( | ) |
Constructor without argument.
| mln::image1d< T >::image1d | ( | unsigned | ninds, |
| unsigned | bdr = border::thickness |
||
| ) |
Constructor with the number of indices and the border thickness.
| mln::image1d< T >::image1d | ( | const box1d & | b, |
| unsigned | bdr = border::thickness |
||
| ) |
Constructor with a box and the border thickness.
| const box1d& mln::image1d< T >::bbox | ( | ) | const |
Give the bounding box domain.
| unsigned mln::image1d< T >::border | ( | ) | const |
Give the border thickness.
| const T* mln::image1d< T >::buffer | ( | ) | const |
Give a hook to the value buffer.
| T* mln::image1d< T >::buffer | ( | ) |
Give a hook to the value buffer.
| int mln::image1d< T >::delta_offset | ( | const dpoint1d & | dp | ) | const |
Give the offset corresponding to the delta-point dp.
|
inherited |
Detach data from an image (free it if nobody else hold it).
| const box1d& mln::image1d< T >::domain | ( | ) | const |
Give the definition domain.
| const T& mln::image1d< T >::element | ( | unsigned | i | ) | const |
Read-only access to the i-th image value (including the border).
| T& mln::image1d< T >::element | ( | unsigned | i | ) |
Read-write access to the i-th image value (including the border).
| bool mln::image1d< T >::has | ( | const point1d & | p | ) | const |
Test if p is valid.
Reimplemented from mln::internal::image_base< T, box1d, image1d< T > >.
| void mln::image1d< T >::init_ | ( | const box1d & | b, |
| unsigned | bdr = border::thickness |
||
| ) |
INTERNAL_API Initialize an empty image.
Test if this image has been initialized; default impl.
| unsigned mln::image1d< T >::nelements | ( | ) | const |
Give the number of cells (points including border ones).
|
inherited |
Give the number of sites of the image domain.
| const T& mln::image1d< T >::operator() | ( | const point1d & | p | ) | const |
Read-only access to the image value located at point p.
| T& mln::image1d< T >::operator() | ( | const point1d & | p | ) |
Read-write access to the image value located at point p.
| point1d mln::image1d< T >::point_at_offset | ( | unsigned | i | ) | const |
Give the point corresponding to the offset o.
| void mln::image1d< T >::resize_ | ( | unsigned | new_border | ) |
INTERNAL_API Resize image border with new_border.
|
inherited |
|
inherited |
Return the value space of the image.
| const box1d& mln::image1d< T >::vbbox | ( | ) | const |
virtual box, i.e., box including the virtual border
|
protectedinherited |
INTERNAL_API Internal data, sharable by several images.
Definition at line 176 of file core/internal/image_base.hh.
Backward Site_Iterator associated type.
Definition at line 122 of file core/internal/image_base.hh.
|
inherited |
Definition at line 78 of file core/concept/image.hh.
Site_Set associated type.
Definition at line 109 of file core/internal/image_base.hh.
Forward Site_Iterator associated type.
Definition at line 119 of file core/internal/image_base.hh.
| typedef T& mln::image1d< T >::lvalue |
Return type of read-write access.
Definition at line 149 of file image1d.hh.
Site_Iterator associated type; default definition is fwd_piter.
Definition at line 127 of file core/internal/image_base.hh.
Point_Site associated type.
Definition at line 112 of file core/internal/image_base.hh.
| typedef const T& mln::image1d< T >::rvalue |
Return type of read-only access.
Definition at line 146 of file image1d.hh.
Site associated type.
Definition at line 115 of file core/internal/image_base.hh.
| typedef image1d< tag::value_<T> > mln::image1d< T >::skeleton |
Skeleton.
Definition at line 152 of file image1d.hh.
| typedef internal::image_primary< T, mln::box1d, image1d<T> > mln::image1d< T >::super_ |
Definition at line 140 of file image1d.hh.
|
inherited |
Eligible-value-set associated type.
Definition at line 95 of file core/internal/image_base.hh.
|
inherited |
Value space associated type.
Definition at line 102 of file core/internal/image_base.hh.
| typedef T mln::image1d< T >::value |
Value associated type.
Definition at line 143 of file image1d.hh.