Transform an image by a given transformation. More...
#include <tr_image.hh>
Public Types | |
enum | { dim_ = site::dim } |
typedef I::domain_t::bkd_piter | bkd_piter |
Backward Site_Iterator associated type. | |
typedef Image< void > | category |
typedef I | delegatee |
Delegatee associated type. | |
typedef I::domain_t | domain_t |
Site_Set associated type. | |
typedef tr_image< S, I, T > | exact_t |
typedef I::domain_t::fwd_piter | fwd_piter |
Forward Site_Iterator associated type. | |
typedef I::value | lvalue |
Return type of read-write access. | |
typedef fwd_piter | piter |
Site_Iterator associated type; default definition is fwd_piter. | |
typedef I::psite | psite |
Point_Site associated type. | |
typedef I::value | rvalue |
Return type of read-only access. | |
typedef I::site | site |
Site associated type. | |
typedef tr_image< S, tag::image_< I >, T > | skeleton |
Skeleton. | |
typedef mln::internal::image_identity < I, typename I::domain_t, tr_image< S, I, T > > | super_ |
Super type. | |
typedef mln::value::set< I::value > | t_eligible_values_set |
Eligible-value-set associated type. | |
typedef mln::value::set < typename mln::value::super_value < I::value >::ret > | t_values_space |
Value space associated type. | |
typedef I | unmorph |
Unmorph image associated type. | |
typedef I::value | value |
Value associated type. | |
typedef mln::algebra::vec < dim_, float > | vec_t |
Public Member Functions | |
mln::metal::const_< I >::ret * | delegatee_ () const |
Return the delegatee_ pointer; default code. | |
I * | delegatee_ () |
Return the delegatee_ pointer (non-const version); default code. | |
void | destroy () |
Detach data from an image (free it if nobody else hold it). | |
const S & | domain () const |
Return the domain morpher. | |
bool | has (const vec_t &v) const |
Test if a pixel value is accessible at v . | |
bool | has (const typename I::psite &p) const |
bool | has (const psite &p) const |
Test if p belongs to the image domain. | |
const util::tracked_ptr < internal::data< tr_image< S, I, T > > > & | hook_data_ () const |
Hook to the image data. | |
const void * | id_ () const |
Give an identifier of this image. | |
unsigned | index_of_point (const P &p) const |
Give the offset of the site p . | |
void | init_ (const S &s, const I &ima, const T &tr) |
Initialize an empty image. | |
bool | is_valid () const |
Test if this image has been initialized. | |
std::size_t | nsites () const |
Give the number of sites of the image domain. | |
I::value | operator() (const psite &p) |
lvalue | operator() (const typename I::domain_t::psite &p) |
Read-write access of pixel value at point site p . | |
I::value | operator() (const psite &p) const |
Read-only access of pixel value at point site p . | |
rvalue | operator() (const typename I::domain_t::psite &p) const |
Read-only access of pixel value at point site p . | |
tr_image< S, I, T > & | rw () |
State that the morpher is writable. | |
void | set_tr (T &tr) |
Set the transformation. | |
const T & | tr () const |
Return the underlying transformation. | |
tr_image () | |
tr_image (const S &s, const I &ima, const T &tr) | |
Constructors. | |
mln::metal::const_< I >::ret & | unmorph_ () const |
Give the morphed image (const version). | |
I & | unmorph_ () |
Give the morphed image (mutable version). | |
const t_eligible_values_set & | values_eligible () const |
const t_values_space & | values_space () const |
Return the value space of the image. | |
Protected Attributes | |
util::tracked_ptr < internal::data< tr_image< S, I, T > > > | data_ |
Transform an image by a given transformation.
typedef I::domain_t ::bkd_piter mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::bkd_piter [inherited] |
Backward Site_Iterator associated type.
typedef Image<void> mln::Image< tr_image< S, I, T > >::category [inherited] |
Reimplemented from mln::Object< tr_image< S, I, T > >.
typedef I mln::internal::image_morpher< I, I::value , I::domain_t , tr_image< S, I, T > >::delegatee [inherited] |
Delegatee associated type.
typedef I::domain_t mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::domain_t [inherited] |
Site_Set associated type.
typedef tr_image< S, I, T > mln::Object< tr_image< S, I, T > >::exact_t [inherited] |
typedef I::domain_t ::fwd_piter mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::fwd_piter [inherited] |
Forward Site_Iterator associated type.
typedef I ::value mln::tr_image< S, I, T >::lvalue |
Return type of read-write access.
Reimplemented from mln::internal::image_identity< I, I::domain_t, tr_image< S, I, T > >.
typedef fwd_piter mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::piter [inherited] |
Site_Iterator associated type; default definition is fwd_piter.
typedef I ::psite mln::tr_image< S, I, T >::psite |
Point_Site associated type.
Reimplemented from mln::internal::image_base< I::value, I::domain_t, tr_image< S, I, T > >.
typedef I ::value mln::tr_image< S, I, T >::rvalue |
Return type of read-only access.
Reimplemented from mln::internal::image_identity< I, I::domain_t, tr_image< S, I, T > >.
typedef I ::site mln::tr_image< S, I, T >::site |
Site associated type.
Reimplemented from mln::internal::image_base< I::value, I::domain_t, tr_image< S, I, T > >.
typedef tr_image< S, tag::image_<I>, T> mln::tr_image< S, I, T >::skeleton |
Skeleton.
typedef mln::internal::image_identity< I, typename I ::domain_t, tr_image<S,I,T> > mln::tr_image< S, I, T >::super_ |
Super type.
typedef mln::value::set<I::value > mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::t_eligible_values_set [inherited] |
Eligible-value-set associated type.
typedef mln::value::set< typename mln::value::super_value<I::value >::ret > mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::t_values_space [inherited] |
Value space associated type.
typedef I mln::internal::image_morpher< I, I::value , I::domain_t , tr_image< S, I, T > >::unmorph [inherited] |
Unmorph image associated type.
typedef I ::value mln::tr_image< S, I, T >::value |
Value associated type.
Reimplemented from mln::internal::image_identity< I, I::domain_t, tr_image< S, I, T > >.
typedef mln::algebra::vec<dim_, float> mln::tr_image< S, I, T >::vec_t |
mln::tr_image< S, I, T >::tr_image | ( | const S & | s, | |
const I & | ima, | |||
const T & | tr | |||
) | [inline] |
Constructors.
References mln::tr_image< S, I, T >::init_().
mln::tr_image< S, I, T >::tr_image | ( | ) |
mln::metal::const_< I >::ret* mln::internal::image_morpher< I, I::value , I::domain_t , tr_image< S, I, T > >::delegatee_ | ( | ) | const [inherited] |
Return the delegatee_ pointer; default code.
Referenced by mln::tr_image< S, I, T >::has(), and mln::tr_image< S, I, T >::is_valid().
I* mln::internal::image_morpher< I, I::value , I::domain_t , tr_image< S, I, T > >::delegatee_ | ( | ) | [inherited] |
Return the delegatee_ pointer (non-const version); default code.
void mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::destroy | ( | ) | [inherited] |
Detach data from an image (free it if nobody else hold it).
const S & mln::tr_image< S, I, T >::domain | ( | ) | const [inline] |
Return the domain morpher.
Reimplemented from mln::internal::image_identity< I, I::domain_t, tr_image< S, I, T > >.
References mln::internal::image_base< I::value, I::domain_t, tr_image< S, I, T > >::data_.
bool mln::tr_image< S, I, T >::has | ( | const vec_t & | v | ) | const [inline] |
Test if a pixel value is accessible at v
.
References mln::internal::image_base< I::value, I::domain_t, tr_image< S, I, T > >::data_, and mln::internal::image_morpher< I, I::value, I::domain_t, tr_image< S, I, T > >::delegatee_().
bool mln::internal::image_identity< I, I::domain_t , tr_image< S, I, T > >::has | ( | const typename I::psite & | p | ) | const [inherited] |
bool mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::has | ( | const psite & | p | ) | const [inherited] |
Test if p
belongs to the image domain.
const util::tracked_ptr< internal::data<tr_image< S, I, T > > >& mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::hook_data_ | ( | ) | const [inherited] |
Hook to the image data.
const void* mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::id_ | ( | ) | const [inherited] |
Give an identifier of this image.
When several image variables designate the same image, they share the same identifier.
unsigned mln::internal::check::image_fastest_< tr_image< S, I, T > , mln::metal::equal< mln_trait_image_speed(tr_image< S, I, T >), trait::image::speed::fastest >::eval >::index_of_point | ( | const P & | p | ) | const [inherited] |
Give the offset of the site p
.
[in] | p | A site. |
p
. void mln::tr_image< S, I, T >::init_ | ( | const S & | s, | |
const I & | ima, | |||
const T & | tr | |||
) | [inline] |
Initialize an empty image.
References mln::internal::image_base< I::value, I::domain_t, tr_image< S, I, T > >::data_.
Referenced by mln::tr_image< S, I, T >::tr_image().
bool mln::tr_image< S, I, T >::is_valid | ( | ) | const [inline] |
Test if this image has been initialized.
Reimplemented from mln::internal::image_morpher< I, I::value, I::domain_t, tr_image< S, I, T > >.
References mln::internal::image_morpher< I, I::value, I::domain_t, tr_image< S, I, T > >::delegatee_().
std::size_t mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::nsites | ( | ) | const [inherited] |
Give the number of sites of the image domain.
I::value mln::tr_image< S, I, T >::operator() | ( | const psite & | p | ) | const [inline] |
Read-only access of pixel value at point site p
.
Mutable access is only OK for reading (not writing).
rvalue mln::internal::image_identity< I, I::domain_t , tr_image< S, I, T > >::operator() | ( | const typename I::domain_t ::psite & | p | ) | const [inherited] |
Read-only access of pixel value at point site p
.
lvalue mln::internal::image_identity< I, I::domain_t , tr_image< S, I, T > >::operator() | ( | const typename I::domain_t ::psite & | p | ) | [inherited] |
Read-write access of pixel value at point site p
.
I::value mln::tr_image< S, I, T >::operator() | ( | const psite & | p | ) | [inline] |
tr_image< S, I, T > & mln::internal::image_morpher< I, I::value , I::domain_t , tr_image< S, I, T > >::rw | ( | ) | [inherited] |
State that the morpher is writable.
This allows for C++ to use it as a mutable object even if it is a temporary object.
void mln::tr_image< S, I, T >::set_tr | ( | T & | tr | ) | [inline] |
Set the transformation.
References mln::internal::image_base< I::value, I::domain_t, tr_image< S, I, T > >::data_.
const T & mln::tr_image< S, I, T >::tr | ( | ) | const [inline] |
Return the underlying transformation.
References mln::internal::image_base< I::value, I::domain_t, tr_image< S, I, T > >::data_.
mln::metal::const_< I >::ret& mln::internal::image_morpher< I, I::value , I::domain_t , tr_image< S, I, T > >::unmorph_ | ( | ) | const [inherited] |
Give the morphed image (const version).
I& mln::internal::image_morpher< I, I::value , I::domain_t , tr_image< S, I, T > >::unmorph_ | ( | ) | [inherited] |
Give the morphed image (mutable version).
const t_eligible_values_set& mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::values_eligible | ( | ) | const [inherited] |
const t_values_space& mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::values_space | ( | ) | const [inherited] |
Return the value space of the image.
util::tracked_ptr< internal::data<tr_image< S, I, T > > > mln::internal::image_base< I::value , I::domain_t , tr_image< S, I, T > >::data_ [protected, inherited] |