26 #ifndef MLN_CORE_PIXEL_HH
27 # define MLN_CORE_PIXEL_HH
37 # include <mln/core/concept/generalized_pixel.hh>
38 # include <mln/core/internal/pixel_impl.hh>
52 internal::pixel_impl_< I, pixel<I> >
58 pixel(I& image,
const mln_psite(I)& p);
67 typedef internal::pixel_impl_<I, pixel<I> > super;
71 # ifndef MLN_INCLUDE_ONLY
85 mln_precondition(this->image_.has(p));
94 mln_precondition(this->image_.has(p));
95 this->value_ptr_ = & this->image_(p);
103 if (this->value_ptr_ == 0 || ! this->image_.is_valid())
105 int o = this->value_ptr_ - this->image_.buffer();
106 mln_psite(I) p = this->image_.point_at_index(o);
107 return this->image_.has(p);
110 # endif // ! MLN_INCLUDE_ONLY
115 # include <mln/make/pixel.hh>
118 #endif // ! MLN_CORE_PIXEL_HH