$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::image1d< T > Struct Template Reference

#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 box1dbbox () const
unsigned border () const
const Tbuffer () const
Tbuffer ()
int delta_offset (const dpoint1d &dp) const
void destroy ()
const box1ddomain () const
const Telement (unsigned i) const
Telement (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 Toperator() (const point1d &p) const
Toperator() (const point1d &p)
point1d point_at_offset (unsigned i) const
void resize_ (unsigned new_border)
const t_eligible_values_setvalues_eligible () const
const t_values_spacevalues_space () const
const box1dvbbox () 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< Texact_t
typedef box1d::fwd_piter fwd_piter
typedef Tlvalue
typedef fwd_piter piter
typedef box1d::psite psite
typedef const Trvalue
typedef box1d::site site
typedef image1d< tag::value_< T > > skeleton
typedef
internal::image_primary< T,
mln::box1d, image1d< T > > 
super_
typedef mln::value::set< Tt_eligible_values_set
typedef mln::value::set
< typename
mln::value::super_value< T >
::ret
t_values_space
typedef T value

Detailed Description

template<typename T>
struct mln::image1d< T >

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.

Constructor & Destructor Documentation

template<typename T>
mln::image1d< T >::image1d ( )

Constructor without argument.

template<typename T>
mln::image1d< T >::image1d ( unsigned  ninds,
unsigned  bdr = border::thickness 
)

Constructor with the number of indices and the border thickness.

template<typename T>
mln::image1d< T >::image1d ( const box1d b,
unsigned  bdr = border::thickness 
)

Constructor with a box and the border thickness.

Member Function Documentation

template<typename T>
const box1d& mln::image1d< T >::bbox ( ) const

Give the bounding box domain.

template<typename T>
unsigned mln::image1d< T >::border ( ) const

Give the border thickness.

template<typename T>
const T* mln::image1d< T >::buffer ( ) const

Give a hook to the value buffer.

template<typename T>
T* mln::image1d< T >::buffer ( )

Give a hook to the value buffer.

template<typename T>
int mln::image1d< T >::delta_offset ( const dpoint1d dp) const

Give the offset corresponding to the delta-point dp.

void mln::internal::image_base< T, box1d , image1d< T > >::destroy ( )
inherited

Detach data from an image (free it if nobody else hold it).

template<typename T>
const box1d& mln::image1d< T >::domain ( ) const

Give the definition domain.

template<typename T>
const T& mln::image1d< T >::element ( unsigned  i) const

Read-only access to the i-th image value (including the border).

template<typename T>
T& mln::image1d< T >::element ( unsigned  i)

Read-write access to the i-th image value (including the border).

template<typename T>
bool mln::image1d< T >::has ( const point1d p) const

Test if p is valid.

Reimplemented from mln::internal::image_base< T, box1d, image1d< T > >.

template<typename T>
void mln::image1d< T >::init_ ( const box1d b,
unsigned  bdr = border::thickness 
)

INTERNAL_API Initialize an empty image.

bool mln::internal::image_base< T, box1d , image1d< T > >::is_valid ( ) const
inherited

Test if this image has been initialized; default impl.

template<typename T>
unsigned mln::image1d< T >::nelements ( ) const

Give the number of cells (points including border ones).

std::size_t mln::internal::image_base< T, box1d , image1d< T > >::nsites ( ) const
inherited

Give the number of sites of the image domain.

template<typename T>
const T& mln::image1d< T >::operator() ( const point1d p) const

Read-only access to the image value located at point p.

template<typename T>
T& mln::image1d< T >::operator() ( const point1d p)

Read-write access to the image value located at point p.

template<typename T>
point1d mln::image1d< T >::point_at_offset ( unsigned  i) const

Give the point corresponding to the offset o.

template<typename T>
void mln::image1d< T >::resize_ ( unsigned  new_border)

INTERNAL_API Resize image border with new_border.

const t_eligible_values_set& mln::internal::image_base< T, box1d , image1d< T > >::values_eligible ( ) const
inherited
const t_values_space& mln::internal::image_base< T, box1d , image1d< T > >::values_space ( ) const
inherited

Return the value space of the image.

template<typename T>
const box1d& mln::image1d< T >::vbbox ( ) const

virtual box, i.e., box including the virtual border

Member Data Documentation

mln::util::tracked_ptr< internal::data<image1d< T > > > mln::internal::image_base< T, box1d , image1d< T > >::data_
protectedinherited

INTERNAL_API Internal data, sharable by several images.

Definition at line 176 of file core/internal/image_base.hh.

Member Typedef Documentation

Backward Site_Iterator associated type.

Definition at line 122 of file core/internal/image_base.hh.

typedef Image<void> mln::Image< image1d< T > >::category
inherited

Definition at line 78 of file core/concept/image.hh.

typedef box1d mln::internal::image_base< T, box1d , image1d< T > >::domain_t
inherited

Site_Set associated type.

Definition at line 109 of file core/internal/image_base.hh.

typedef image1d< T > mln::Object< image1d< T > >::exact_t
inherited

Definition at line 105 of file object.hh.

Forward Site_Iterator associated type.

Definition at line 119 of file core/internal/image_base.hh.

template<typename T>
typedef T& mln::image1d< T >::lvalue

Return type of read-write access.

Definition at line 149 of file image1d.hh.

typedef fwd_piter mln::internal::image_base< T, box1d , image1d< T > >::piter
inherited

Site_Iterator associated type; default definition is fwd_piter.

Definition at line 127 of file core/internal/image_base.hh.

typedef box1d ::psite mln::internal::image_base< T, box1d , image1d< T > >::psite
inherited

Point_Site associated type.

Definition at line 112 of file core/internal/image_base.hh.

template<typename T>
typedef const T& mln::image1d< T >::rvalue

Return type of read-only access.

Definition at line 146 of file image1d.hh.

typedef box1d ::site mln::internal::image_base< T, box1d , image1d< T > >::site
inherited

Site associated type.

Definition at line 115 of file core/internal/image_base.hh.

template<typename T>
typedef image1d< tag::value_<T> > mln::image1d< T >::skeleton

Skeleton.

Definition at line 152 of file image1d.hh.

template<typename T>
typedef internal::image_primary< T, mln::box1d, image1d<T> > mln::image1d< T >::super_

Definition at line 140 of file image1d.hh.

Eligible-value-set associated type.

Definition at line 95 of file core/internal/image_base.hh.

Value space associated type.

Definition at line 102 of file core/internal/image_base.hh.

template<typename T>
typedef T mln::image1d< T >::value

Value associated type.

Definition at line 143 of file image1d.hh.