$extrastylesheet
#include <mln/core/internal/image_base.hh>
Public Member Functions | |
image_base (const image_base &rhs) | |
void | destroy () |
bool | has (const psite &p) const |
bool | is_valid () const |
std::size_t | nsites () const |
image_base & | operator= (const image_base &rhs) |
const t_eligible_values_set & | values_eligible () const |
const t_values_space & | values_space () const |
Protected Member Functions | |
image_base () |
Protected Attributes | |
mln::util::tracked_ptr < internal::data< E > > | data_ |
Public Types | |
typedef S::bkd_piter | bkd_piter |
typedef Image< void > | category |
typedef S | domain_t |
typedef E | exact_t |
typedef S::fwd_piter | fwd_piter |
typedef fwd_piter | piter |
typedef S::psite | psite |
typedef S::site | site |
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 |
A base class for images.
Parameter T
is the image value type. Parameter S
is the image site set type.
image_base ^ | --------------------------- | | image_primary image_morpher ^ ^ | | | ----------------------------------------- | | | | pw_image_base image_domain_morpher image_value_morpher image_identity
Definition at line 86 of file core/internal/image_base.hh.
mln::internal::image_base< T, S, E >::image_base | ( | const image_base< T, S, E > & | rhs | ) |
Copy constructor (performs a shallow copy).
|
protected |
Constructor without argument.
Reimplemented in mln::pw::internal::image_base< F, S, E >, mln::pw::internal::image_base< fun::i2v::array< V >, p_edges< G, internal::efsite_selector< P, G >::site_function_t >, edge_image< P, V, G > >, mln::pw::internal::image_base< fun::i2v::array< V >, p_vertices< G, internal::vfsite_selector< P, G >::site_function_t >, vertex_image< P, V, G > >, and mln::pw::internal::image_base< F, S, image< F, S > >.
void mln::internal::image_base< T, S, E >::destroy | ( | ) |
Detach data from an image (free it if nobody else hold it).
bool mln::internal::image_base< T, S, E >::has | ( | const psite & | p | ) | const |
Test if p
belongs to the image domain.
Reimplemented in mln::image3d< T >, mln::image3d< unsigned >, mln::image1d< T >, mln::image2d< T >, mln::image2d< std::complex< T > >, and mln::image2d< bool >.
bool mln::internal::image_base< T, S, E >::is_valid | ( | ) | const |
Test if this image has been initialized; default impl.
Reimplemented in mln::tr_image< S, I, T >, mln::internal::image_morpher< I, T, S, E >, mln::internal::image_morpher< I, T, I::domain_t, violent_cast_image< T, I > >, mln::internal::image_morpher< I, T, I::domain_t, E >, mln::internal::image_morpher< I, I::value, p_if< I::domain_t, F >, image_if< I, F > >, mln::internal::image_morpher< I, I::value, box< I::site >, extended< I > >, mln::internal::image_morpher< I, I::value, I::domain_t, extension_ima< I, J > >, mln::internal::image_morpher< I, I::value, S, sub_image< I, S > >, mln::internal::image_morpher< I, I::value, I::domain_t, p2p_image< I, F > >, mln::internal::image_morpher< I, I::value, S, E >, mln::internal::image_morpher< const I, const I::value, I::domain_t, E >, mln::internal::image_morpher< I, I::value, p_transformed< I::domain_t, F >, transformed_image< I, F > >, mln::internal::image_morpher< image2d< V >, image2d< V >::value, box2d_h, hexa< image2d< V > > >, mln::internal::image_morpher< I, I::value, S, tr_image< S, I, T > >, mln::internal::image_morpher< I, I::value, I::domain_t, extension_fun< I, F > >, mln::internal::image_morpher< I, T, I::domain_t, cast_image_< T, I > >, mln::internal::image_morpher< I, I::value, I::domain_t, decorated_image< I, D > >, mln::internal::image_morpher< I, I::value, box2d, slice_image< I > >, mln::internal::image_morpher< I, I::value, I::domain_t, plain< I > >, mln::internal::image_morpher< I, I::value, I::domain_t, mutable_extension_ima< I, J > >, mln::internal::image_morpher< const I, const I::value, I::domain_t, labeled_image< I > >, mln::internal::image_morpher< mln::trait::ch_value< I, F::result >::ret, mln::trait::ch_value< I, F::result >::ret::value, I::domain_t, lazy_image< I, F, B > >, mln::internal::image_morpher< I, I::value, p_if< S, fun::p2b::has< I > >, sub_image_if< I, S > >, mln::internal::image_morpher< I, I::value, I::domain_t, safe_image< I > >, mln::internal::image_morpher< I, F::result, I::domain_t, fun_image< F, I > >, mln::internal::image_morpher< I, I::value, D, unproject_image< I, D, F > >, mln::internal::image_morpher< I, I::value, I::domain_t, extension_val< I > >, mln::internal::image_morpher< I, I::value, I::domain_t, ch_piter_image< I, Fwd > >, mln::internal::image_morpher< I, I::value, box2d_h, hexa< I > >, and mln::internal::image_morpher< I, F::result, I::domain_t, thru_image< I, F > >.
std::size_t mln::internal::image_base< T, S, E >::nsites | ( | ) | const |
Give the number of sites of the image domain.
image_base& mln::internal::image_base< T, S, E >::operator= | ( | const image_base< T, S, E > & | rhs | ) |
Assignment operator (performs a shallow assignment).
const t_eligible_values_set& mln::internal::image_base< T, S, E >::values_eligible | ( | ) | const |
const t_values_space& mln::internal::image_base< T, S, E >::values_space | ( | ) | const |
Return the value space of the image.
|
protected |
INTERNAL_API Internal data, sharable by several images.
Definition at line 176 of file core/internal/image_base.hh.
typedef S ::bkd_piter mln::internal::image_base< T, S, E >::bkd_piter |
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.
typedef S mln::internal::image_base< T, S, E >::domain_t |
Site_Set associated type.
Definition at line 109 of file core/internal/image_base.hh.
|
inherited |
typedef S ::fwd_piter mln::internal::image_base< T, S, E >::fwd_piter |
Forward Site_Iterator associated type.
Definition at line 119 of file core/internal/image_base.hh.
typedef fwd_piter mln::internal::image_base< T, S, E >::piter |
Site_Iterator associated type; default definition is fwd_piter.
Definition at line 127 of file core/internal/image_base.hh.
typedef S ::psite mln::internal::image_base< T, S, E >::psite |
Point_Site associated type.
Definition at line 112 of file core/internal/image_base.hh.
typedef S ::site mln::internal::image_base< T, S, E >::site |
Site associated type.
Definition at line 115 of file core/internal/image_base.hh.
typedef mln::value::set<T> mln::internal::image_base< T, S, E >::t_eligible_values_set |
Eligible-value-set associated type.
Definition at line 95 of file core/internal/image_base.hh.
typedef mln::value::set< typename mln::value::super_value<T>::ret > mln::internal::image_base< T, S, E >::t_values_space |
Value space associated type.
Definition at line 102 of file core/internal/image_base.hh.
typedef T mln::internal::image_base< T, S, E >::value |
Value associated type.
Definition at line 92 of file core/internal/image_base.hh.