$extrastylesheet
#include <mln/core/image/image2d.hh>
Protected Attributes | |
mln::util::tracked_ptr < internal::data< image2d< T > > > | data_ |
Public Types | |
typedef mln::box2d::bkd_piter | bkd_piter |
typedef Image< void > | category |
typedef mln::box2d | domain_t |
typedef image2d< T > | exact_t |
typedef mln::box2d::fwd_piter | fwd_piter |
typedef T & | lvalue |
typedef fwd_piter | piter |
typedef mln::box2d::psite | psite |
typedef const T & | rvalue |
typedef mln::box2d::site | site |
typedef image2d< tag::value_< T > > | skeleton |
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 2D 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 around data.
Definition at line 134 of file core/image/image2d.hh.
mln::image2d< T >::image2d | ( | ) |
Constructor without argument.
mln::image2d< T >::image2d | ( | int | nrows, |
int | ncols, | ||
unsigned | bdr = border::thickness |
||
) |
Constructor with the numbers of rows and columns and the border thickness.
mln::image2d< T >::image2d | ( | const box2d & | b, |
unsigned | bdr = border::thickness |
||
) |
Constructor with a box and the border thickness (default is 3).
Definition at line 191 of file core/image/image2d.hh.
const T& mln::image2d< T >::at_ | ( | mln::def::coord | row, |
mln::def::coord | col | ||
) | const |
INTERNAL_API Read-only access to the image value located at (row
, col
).
T& mln::image2d< T >::at_ | ( | mln::def::coord | row, |
mln::def::coord | col | ||
) |
Read-write access to the image value located at (row
, col
).
const box2d& mln::image2d< T >::bbox | ( | ) | const |
Give the bounding box domain.
unsigned mln::image2d< T >::border | ( | ) | const |
Give the border thickness.
const T* mln::image2d< T >::buffer | ( | ) | const |
Give a hook to the value buffer.
T* mln::image2d< T >::buffer | ( | ) |
Give a hook to the value buffer.
int mln::image2d< T >::delta_offset | ( | const dpoint2d & | dp | ) | const |
Give the delta-offset corresponding to the delta-point dp
.
|
inherited |
Detach data from an image (free it if nobody else hold it).
const box2d& mln::image2d< T >::domain | ( | ) | const |
Give the definition domain.
const T& mln::image2d< T >::element | ( | unsigned | i | ) | const |
Read-only access to the image value located at offset i
.
T& mln::image2d< T >::element | ( | unsigned | i | ) |
Read-write access to the image value located at offset i
.
bool mln::image2d< T >::has | ( | const point2d & | p | ) | const |
Test if p
is valid.
Reimplemented from mln::internal::image_base< T, mln::box2d, image2d< T > >.
void mln::image2d< T >::init_ | ( | const box2d & | b, |
unsigned | bdr = border::thickness |
||
) |
INTERNAL_API Initialize an empty image.
|
inherited |
Test if this image has been initialized; default impl.
unsigned mln::image2d< T >::ncols | ( | ) | const |
Give the number of columns.
unsigned mln::image2d< T >::nelements | ( | ) | const |
Give the number of elements (points including border ones).
unsigned mln::image2d< T >::nrows | ( | ) | const |
Give the number of rows.
|
inherited |
Give the number of sites of the image domain.
const T& mln::image2d< T >::operator() | ( | const point2d & | p | ) | const |
Read-only access to the image value located at point p
.
T& mln::image2d< T >::operator() | ( | const point2d & | p | ) |
Read-write access to the image value located at point p
.
point2d mln::image2d< T >::point_at_offset | ( | unsigned | i | ) | const |
Give the point corresponding to the offset i
.
void mln::image2d< T >::resize_ | ( | unsigned | new_border | ) |
INTERNAL_API Resize image border with new_border.
|
inherited |
|
inherited |
Return the value space of the image.
const box2d& mln::image2d< T >::vbbox | ( | ) | const |
|
protectedinherited |
INTERNAL_API Internal data, sharable by several images.
Definition at line 176 of file core/internal/image_base.hh.
|
inherited |
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.
|
inherited |
Site_Set associated type.
Definition at line 109 of file core/internal/image_base.hh.
|
inherited |
Forward Site_Iterator associated type.
Definition at line 119 of file core/internal/image_base.hh.
typedef T& mln::image2d< T >::lvalue |
Return type of read-write access.
Definition at line 146 of file core/image/image2d.hh.
|
inherited |
Site_Iterator associated type; default definition is fwd_piter.
Definition at line 127 of file core/internal/image_base.hh.
|
inherited |
Point_Site associated type.
Definition at line 112 of file core/internal/image_base.hh.
typedef const T& mln::image2d< T >::rvalue |
Return type of read-only access.
Definition at line 143 of file core/image/image2d.hh.
|
inherited |
Site associated type.
Definition at line 115 of file core/internal/image_base.hh.
typedef image2d< tag::value_<T> > mln::image2d< T >::skeleton |
Skeleton.
Definition at line 150 of file core/image/image2d.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::image2d< T >::value |
Value associated type.
Definition at line 140 of file core/image/image2d.hh.