27 #ifndef MLN_CORE_PIXEL_HH
28 # define MLN_CORE_PIXEL_HH
38 # include <mln/core/concept/generalized_pixel.hh>
39 # include <mln/core/internal/pixel_impl.hh>
59 pixel(I& image,
const mln_psite(I)&
p);
72 # ifndef MLN_INCLUDE_ONLY
86 mln_precondition(this->image_.has(p));
95 mln_precondition(this->image_.has(p));
96 this->value_ptr_ = & this->image_(p);
104 if (this->value_ptr_ == 0 || ! this->image_.is_valid())
106 int o = this->value_ptr_ - this->image_.buffer();
107 mln_psite(I) p = this->image_.point_at_offset(o);
108 return this->image_.has(p);
111 # endif // ! MLN_INCLUDE_ONLY
116 # include <mln/make/pixel.hh>
119 #endif // ! MLN_CORE_PIXEL_HH