Commit aa62d349 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Rename Image::has_data() to Image::is_valid().

	* mln/accu/compute.hh,
	* mln/accu/line.hh,
	* mln/accu/take.hh,
	* mln/accu/transform.hh,
	* mln/accu/transform_diagonal.hh,
	* mln/accu/transform_directional.hh,
	* mln/accu/transform_snake.hh,
	* mln/accu/transform_stop.hh,
	* mln/arith/diff_abs.hh,
	* mln/arith/minus.hh,
	* mln/arith/plus.hh,
	* mln/arith/revert.hh,
	* mln/arith/times.hh,
	* mln/binarization/binarization.hh,
	* mln/binarization/threshold.hh,
	* mln/border/adjust.hh,
	* mln/border/duplicate.hh,
	* mln/border/equalize.hh,
	* mln/border/fill.hh,
	* mln/border/find.hh,
	* mln/border/get.hh,
	* mln/border/mirror.hh,
	* mln/border/resize.hh,
	* mln/canvas/browsing/fwd.hh,
	* mln/canvas/browsing/snake_fwd.hh,
	* mln/canvas/browsing/snake_generic.hh,
	* mln/canvas/browsing/snake_vert.hh,
	* mln/canvas/distance_front.hh,
	* mln/canvas/distance_geodesic.hh,
	* mln/canvas/labeling.hh,
	* mln/convert/from_to.hh,
	* mln/convert/to_p_set.hh,
	* mln/convert/to_window.hh,
	* mln/core/concept/doc/image.hh,
	* mln/core/concept/image.hh,
	* mln/core/concept/window.hh,
	* mln/core/dpoints_pixter.hh,
	* mln/core/image/bgraph_image.hh,
	* mln/core/image/cast_image.hh,
	* mln/core/image/ch_piter.hh,
	* mln/core/image/complex_image.hh,
	* mln/core/image/decorated_image.hh,
	* mln/core/image/extended.hh,
	* mln/core/image/extension_fun.hh,
	* mln/core/image/extension_ima.hh,
	* mln/core/image/extension_val.hh,
	* mln/core/image/flat_image.hh,
	* mln/core/image/fun_image.hh,
	* mln/core/image/hexa.hh,
	* mln/core/image/image1d.hh,
	* mln/core/image/image2d.hh,
	* mln/core/image/image3d.hh,
	* mln/core/image/image_if.hh,
	* mln/core/image/interpolated.hh,
	* mln/core/image/lazy_image.hh,
	* mln/core/image/mono_obased_rle_image.hh,
	* mln/core/image/mono_rle_image.hh,
	* mln/core/image/obased_rle_image.hh,
	* mln/core/image/plain.hh,
	* mln/core/image/rle_image.hh,
	* mln/core/image/safe.hh,
	* mln/core/image/sparse_image.hh,
	* mln/core/image/sub_image.hh,
	* mln/core/image/sub_image_if.hh,
	* mln/core/image/t_image.hh,
	* mln/core/image/tr_image.hh,
	* mln/core/image/value_enc_image.hh,
	* mln/core/image/violent_cast_image.hh,
	* mln/core/internal/check/image_fastest.hh,
	* mln/core/internal/image_base.hh,
	* mln/core/internal/image_morpher.hh,
	* mln/core/internal/pixel_iterator_base.hh,
	* mln/core/internal/run_image.hh,
	* mln/core/pixel.hh,
	* mln/core/pixter1d.hh,
	* mln/core/pixter2d.hh,
	* mln/core/pixter3d.hh,
	* mln/core/routine/duplicate.hh,
	* mln/core/routine/initialize.hh,
	* mln/core/routine/primary.hh,
	* mln/core/site_set/p_image.hh,
	* mln/core/w_window.hh,
	* mln/data/fill.hh,
	* mln/data/fill_with_image.hh,
	* mln/data/fill_with_value.hh,
	* mln/data/memcpy_.hh,
	* mln/data/memset_.hh,
	* mln/data/paste.hh,
	* mln/debug/colorize.hh,
	* mln/debug/iota.hh,
	* mln/draw/box.hh,
	* mln/draw/line.hh,
	* mln/draw/plot.hh,
	* mln/estim/mean.hh,
	* mln/estim/min_max.hh,
	* mln/estim/sum.hh,
	* mln/extension/adjust.hh,
	* mln/extension/fill.hh,
	* mln/geom/bbox.hh,
	* mln/geom/max_col.hh,
	* mln/geom/max_ind.hh,
	* mln/geom/max_row.hh,
	* mln/geom/max_sli.hh,
	* mln/geom/min_col.hh,
	* mln/geom/min_ind.hh,
	* mln/geom/min_row.hh,
	* mln/geom/min_sli.hh,
	* mln/geom/ncols.hh,
	* mln/geom/ninds.hh,
	* mln/geom/nrows.hh,
	* mln/geom/nsites.hh,
	* mln/geom/nslis.hh,
	* mln/geom/seeds2tiling.hh,
	* mln/geom/seeds2tiling_roundness.hh,
	* mln/histo/compute.hh,
	* mln/io/txt/save.hh,
	* mln/labeling/background.hh,
	* mln/labeling/blobs.hh,
	* mln/labeling/compute.hh,
	* mln/labeling/flat_zones.hh,
	* mln/labeling/foreground.hh,
	* mln/labeling/level.hh,
	* mln/labeling/regional_maxima.hh,
	* mln/labeling/regional_minima.hh,
	* mln/labeling/relabel.hh,
	* mln/level/abs.hh,
	* mln/level/apply.hh,
	* mln/level/convert.hh,
	* mln/level/fast_median.hh,
	* mln/level/replace.hh,
	* mln/level/saturate.hh,
	* mln/level/sort_psites.hh,
	* mln/level/stretch.hh,
	* mln/level/transform.hh,
	* mln/level/transform_inplace.hh,
	* mln/level/update.hh,
	* mln/level/was.median.hh,
	* mln/linear/convolve.hh,
	* mln/linear/convolve_2x1d.hh,
	* mln/linear/convolve_directional.hh,
	* mln/linear/gaussian.hh,
	* mln/linear/lap.hh,
	* mln/linear/local/convolve.hh,
	* mln/linear/log.hh,
	* mln/linear/sobel_2d.hh,
	* mln/logical/includes.hh,
	* mln/logical/not.hh,
	* mln/make/dual_neighb.hh,
	* mln/make/graph.hh,
	* mln/morpho/closing.hh,
	* mln/morpho/closing_area.hh,
	* mln/morpho/closing_area_on_vertices.hh,
	* mln/morpho/closing_attribute.hh,
	* mln/morpho/closing_height.hh,
	* mln/morpho/closing_volume.hh,
	* mln/morpho/complementation.hh,
	* mln/morpho/contrast.hh,
	* mln/morpho/dilation.hh,
	* mln/morpho/elementary/closing.hh,
	* mln/morpho/elementary/dilation.hh,
	* mln/morpho/elementary/erosion.hh,
	* mln/morpho/elementary/gradient.hh,
	* mln/morpho/elementary/gradient_external.hh,
	* mln/morpho/elementary/gradient_internal.hh,
	* mln/morpho/elementary/laplacian.hh,
	* mln/morpho/elementary/opening.hh,
	* mln/morpho/elementary/top_hat.hh,
	* mln/morpho/erosion.hh,
	* mln/morpho/general.hh,
	* mln/morpho/gradient.hh,
	* mln/morpho/hit_or_miss.hh,
	* mln/morpho/laplacian.hh,
	* mln/morpho/opening.hh,
	* mln/morpho/opening_area.hh,
	* mln/morpho/opening_area_on_vertices.hh,
	* mln/morpho/opening_attribute.hh,
	* mln/morpho/opening_height.hh,
	* mln/morpho/opening_volume.hh,
	* mln/morpho/rank_filter.hh,
	* mln/morpho/thickening.hh,
	* mln/morpho/thin_fit.hh,
	* mln/morpho/thinning.hh,
	* mln/morpho/top_hat.hh,
	* mln/morpho/tree/compute_parent.hh,
	* mln/morpho/tree/data.hh,
	* mln/morpho/tree/max.hh,
	* mln/morpho/tree/utils.hh,
	* mln/pw/value.hh,
	* mln/subsampling/gaussian_subsampling.hh,
	* mln/subsampling/subsampling.hh,
	* mln/test/positive.hh,
	* mln/test/predicate.hh,
	* mln/transform/distance_front.hh,
	* mln/transform/distance_geodesic.hh,
	* mln/transform/influence_zone_front.hh,
	* mln/transform/influence_zone_geodesic.hh,
	* mln/value/stack.hh: apply the renaming here.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3123 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent e05e7a57
2008-12-31 Guillaume Lazzara <z@lrde.epita.fr>
Rename Image::has_data() to Image::is_valid().
* mln/accu/compute.hh,
* mln/accu/line.hh,
* mln/accu/take.hh,
* mln/accu/transform.hh,
* mln/accu/transform_diagonal.hh,
* mln/accu/transform_directional.hh,
* mln/accu/transform_snake.hh,
* mln/accu/transform_stop.hh,
* mln/arith/diff_abs.hh,
* mln/arith/minus.hh,
* mln/arith/plus.hh,
* mln/arith/revert.hh,
* mln/arith/times.hh,
* mln/binarization/binarization.hh,
* mln/binarization/threshold.hh,
* mln/border/adjust.hh,
* mln/border/duplicate.hh,
* mln/border/equalize.hh,
* mln/border/fill.hh,
* mln/border/find.hh,
* mln/border/get.hh,
* mln/border/mirror.hh,
* mln/border/resize.hh,
* mln/canvas/browsing/fwd.hh,
* mln/canvas/browsing/snake_fwd.hh,
* mln/canvas/browsing/snake_generic.hh,
* mln/canvas/browsing/snake_vert.hh,
* mln/canvas/distance_front.hh,
* mln/canvas/distance_geodesic.hh,
* mln/canvas/labeling.hh,
* mln/convert/from_to.hh,
* mln/convert/to_p_set.hh,
* mln/convert/to_window.hh,
* mln/core/concept/doc/image.hh,
* mln/core/concept/image.hh,
* mln/core/concept/window.hh,
* mln/core/dpoints_pixter.hh,
* mln/core/image/bgraph_image.hh,
* mln/core/image/cast_image.hh,
* mln/core/image/ch_piter.hh,
* mln/core/image/complex_image.hh,
* mln/core/image/decorated_image.hh,
* mln/core/image/extended.hh,
* mln/core/image/extension_fun.hh,
* mln/core/image/extension_ima.hh,
* mln/core/image/extension_val.hh,
* mln/core/image/flat_image.hh,
* mln/core/image/fun_image.hh,
* mln/core/image/hexa.hh,
* mln/core/image/image1d.hh,
* mln/core/image/image2d.hh,
* mln/core/image/image3d.hh,
* mln/core/image/image_if.hh,
* mln/core/image/interpolated.hh,
* mln/core/image/lazy_image.hh,
* mln/core/image/mono_obased_rle_image.hh,
* mln/core/image/mono_rle_image.hh,
* mln/core/image/obased_rle_image.hh,
* mln/core/image/plain.hh,
* mln/core/image/rle_image.hh,
* mln/core/image/safe.hh,
* mln/core/image/sparse_image.hh,
* mln/core/image/sub_image.hh,
* mln/core/image/sub_image_if.hh,
* mln/core/image/t_image.hh,
* mln/core/image/tr_image.hh,
* mln/core/image/value_enc_image.hh,
* mln/core/image/violent_cast_image.hh,
* mln/core/internal/check/image_fastest.hh,
* mln/core/internal/image_base.hh,
* mln/core/internal/image_morpher.hh,
* mln/core/internal/pixel_iterator_base.hh,
* mln/core/internal/run_image.hh,
* mln/core/pixel.hh,
* mln/core/pixter1d.hh,
* mln/core/pixter2d.hh,
* mln/core/pixter3d.hh,
* mln/core/routine/duplicate.hh,
* mln/core/routine/initialize.hh,
* mln/core/routine/primary.hh,
* mln/core/site_set/p_image.hh,
* mln/core/w_window.hh,
* mln/data/fill.hh,
* mln/data/fill_with_image.hh,
* mln/data/fill_with_value.hh,
* mln/data/memcpy_.hh,
* mln/data/memset_.hh,
* mln/data/paste.hh,
* mln/debug/colorize.hh,
* mln/debug/iota.hh,
* mln/draw/box.hh,
* mln/draw/line.hh,
* mln/draw/plot.hh,
* mln/estim/mean.hh,
* mln/estim/min_max.hh,
* mln/estim/sum.hh,
* mln/extension/adjust.hh,
* mln/extension/fill.hh,
* mln/geom/bbox.hh,
* mln/geom/max_col.hh,
* mln/geom/max_ind.hh,
* mln/geom/max_row.hh,
* mln/geom/max_sli.hh,
* mln/geom/min_col.hh,
* mln/geom/min_ind.hh,
* mln/geom/min_row.hh,
* mln/geom/min_sli.hh,
* mln/geom/ncols.hh,
* mln/geom/ninds.hh,
* mln/geom/nrows.hh,
* mln/geom/nsites.hh,
* mln/geom/nslis.hh,
* mln/geom/seeds2tiling.hh,
* mln/geom/seeds2tiling_roundness.hh,
* mln/histo/compute.hh,
* mln/io/txt/save.hh,
* mln/labeling/background.hh,
* mln/labeling/blobs.hh,
* mln/labeling/compute.hh,
* mln/labeling/flat_zones.hh,
* mln/labeling/foreground.hh,
* mln/labeling/level.hh,
* mln/labeling/regional_maxima.hh,
* mln/labeling/regional_minima.hh,
* mln/labeling/relabel.hh,
* mln/level/abs.hh,
* mln/level/apply.hh,
* mln/level/convert.hh,
* mln/level/fast_median.hh,
* mln/level/replace.hh,
* mln/level/saturate.hh,
* mln/level/sort_psites.hh,
* mln/level/stretch.hh,
* mln/level/transform.hh,
* mln/level/transform_inplace.hh,
* mln/level/update.hh,
* mln/level/was.median.hh,
* mln/linear/convolve.hh,
* mln/linear/convolve_2x1d.hh,
* mln/linear/convolve_directional.hh,
* mln/linear/gaussian.hh,
* mln/linear/lap.hh,
* mln/linear/local/convolve.hh,
* mln/linear/log.hh,
* mln/linear/sobel_2d.hh,
* mln/logical/includes.hh,
* mln/logical/not.hh,
* mln/make/dual_neighb.hh,
* mln/make/graph.hh,
* mln/morpho/closing.hh,
* mln/morpho/closing_area.hh,
* mln/morpho/closing_area_on_vertices.hh,
* mln/morpho/closing_attribute.hh,
* mln/morpho/closing_height.hh,
* mln/morpho/closing_volume.hh,
* mln/morpho/complementation.hh,
* mln/morpho/contrast.hh,
* mln/morpho/dilation.hh,
* mln/morpho/elementary/closing.hh,
* mln/morpho/elementary/dilation.hh,
* mln/morpho/elementary/erosion.hh,
* mln/morpho/elementary/gradient.hh,
* mln/morpho/elementary/gradient_external.hh,
* mln/morpho/elementary/gradient_internal.hh,
* mln/morpho/elementary/laplacian.hh,
* mln/morpho/elementary/opening.hh,
* mln/morpho/elementary/top_hat.hh,
* mln/morpho/erosion.hh,
* mln/morpho/general.hh,
* mln/morpho/gradient.hh,
* mln/morpho/hit_or_miss.hh,
* mln/morpho/laplacian.hh,
* mln/morpho/opening.hh,
* mln/morpho/opening_area.hh,
* mln/morpho/opening_area_on_vertices.hh,
* mln/morpho/opening_attribute.hh,
* mln/morpho/opening_height.hh,
* mln/morpho/opening_volume.hh,
* mln/morpho/rank_filter.hh,
* mln/morpho/thickening.hh,
* mln/morpho/thin_fit.hh,
* mln/morpho/thinning.hh,
* mln/morpho/top_hat.hh,
* mln/morpho/tree/compute_parent.hh,
* mln/morpho/tree/data.hh,
* mln/morpho/tree/max.hh,
* mln/morpho/tree/utils.hh,
* mln/pw/value.hh,
* mln/subsampling/gaussian_subsampling.hh,
* mln/subsampling/subsampling.hh,
* mln/test/positive.hh,
* mln/test/predicate.hh,
* mln/transform/distance_front.hh,
* mln/transform/distance_geodesic.hh,
* mln/transform/influence_zone_front.hh,
* mln/transform/influence_zone_geodesic.hh,
* mln/value/stack.hh: apply the renaming here.
2008-12-31 Guillaume Lazzara <z@lrde.epita.fr>
 
Various small fixes (again).
......@@ -94,7 +94,7 @@ namespace mln
trace::entering("accu::impl::generic::compute");
const I& input = exact(input_);
mln_precondition(input.has_data());
mln_precondition(input.is_valid());
A a;
mln_piter(I) p(input.domain());
......@@ -132,7 +132,7 @@ namespace mln
{
trace::entering("accu::compute");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
mln_result(A) output = internal::compute_dispatch(a, input);
trace::exiting("accu::compute");
......@@ -146,7 +146,7 @@ namespace mln
{
trace::entering("accu::compute");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
typedef mln_accu_with(A, util::pix<I>) A_;
util::pix<I>* pix_; // So we can pass a pixel below (pixel has
......
......@@ -97,8 +97,8 @@ namespace mln
const I& input = exact(input_);
O& output = exact(output_);
mln_precondition(input.has_data());
mln_precondition(output.has_data());
mln_precondition(input.is_valid());
mln_precondition(output.is_valid());
}
} // end of namespace mln::accu::internal
......
......@@ -87,7 +87,7 @@ namespace mln
inline
void take(const Image<I>& input, Accumulator<A>& a)
{
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
impl::take(exact(input), exact(a));
}
......
......@@ -82,7 +82,7 @@ namespace mln
const W& win = exact(win_);
A a = exact(a_);
mln_precondition(input.has_data());
mln_precondition(input.is_valid());
// mln_precondition(win.is_valid());
extension::adjust(input, win);
......@@ -119,7 +119,7 @@ namespace mln
const W& win = exact(win_);
A a = exact(a_);
mln_precondition(input.has_data());
mln_precondition(input.is_valid());
// mln_precondition(win.is_valid());
extension::adjust(input, win);
......@@ -188,7 +188,7 @@ namespace mln
{
trace::entering("accu::transform");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// mln_precondition(exact(win).is_valid());
mln_ch_value(I, mln_result(A)) output;
......@@ -204,7 +204,7 @@ namespace mln
{
trace::entering("accu::transform");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// mln_precondition(exact(win).is_valid());
typedef mln_accu_with(A, mln_value(I)) A_;
......
......@@ -88,7 +88,7 @@ namespace mln
const I& input = exact(input_);
const W& win = exact(win_);
mln_precondition(input.has_data());
mln_precondition(input.is_valid());
mln_precondition(! win.is_empty());
// mln_precondition(! win.is_valid());
......
......@@ -86,7 +86,7 @@ namespace mln
const I& input = exact(input_);
const W& win = exact(win_);
mln_precondition(input.has_data());
mln_precondition(input.is_valid());
mln_precondition(! win.is_empty());
// mln_precondition(! win.is_valid());
......
......@@ -81,7 +81,7 @@ namespace mln
const I& input = exact(input_);
const W& win = exact(win_);
mln_precondition(input.has_data());
mln_precondition(input.is_valid());
mln_precondition(! win.is_empty());
// mln_precondition(! win.is_valid());
......
......@@ -78,7 +78,7 @@ namespace mln
const W& win = exact(win_);
A a = exact(a_);
mln_precondition(input.has_data());
mln_precondition(input.is_valid());
// mln_precondition(win.is_valid());
extension::adjust(input, win);
......@@ -119,7 +119,7 @@ namespace mln
const W& win = exact(win_);
A a = exact(a_);
mln_precondition(input.has_data());
mln_precondition(input.is_valid());
// mln_precondition(win.is_valid());
extension::adjust(input, win);
......@@ -192,7 +192,7 @@ namespace mln
{
trace::entering("accu::transform_stop");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// mln_precondition(exact(win).is_valid());
mln_ch_value(I, mln_result(A)) output;
......@@ -208,7 +208,7 @@ namespace mln
{
trace::entering("accu::transform_stop");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// mln_precondition(exact(win).is_valid());
typedef mln_accu_with(A, mln_value(I)) A_;
......
......@@ -66,8 +66,8 @@ namespace mln
diff_abs(const Image<I>& lhs, const Image<I>& rhs)
{
trace::entering("arith::diff_abs");
mln_precondition(exact(lhs).has_data());
mln_precondition(exact(rhs).has_data());
mln_precondition(exact(lhs).is_valid());
mln_precondition(exact(rhs).is_valid());
mln_precondition(exact(rhs).domain() == exact(lhs).domain());
mln_concrete(I) output = level::transform(lhs, rhs, fun::vv2v::diff_abs<mln_value(I)>());
......
......@@ -151,7 +151,7 @@ namespace mln
* \param[in] val The value.
* \result The result image.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*/
template <typename I, typename V>
mln_trait_op_minus(I, V)
......@@ -165,7 +165,7 @@ namespace mln
* \param[in] f Function.
* \result The result image.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*/
template <typename I, typename V, typename F>
mln_ch_value(I, mln_result(F))
......@@ -177,7 +177,7 @@ namespace mln
* \param[in,out] input The image.
* \param[in] val The value.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*/
template <typename I, typename V>
I&
......@@ -228,7 +228,7 @@ namespace mln
{
trace::entering("operator::minus");
mln_precondition(exact(ima).has_data());
mln_precondition(exact(ima).is_valid());
mln_trait_op_minus(I,S) output = arith::minus_cst(ima, exact(s));
trace::exiting("operator::minus");
......@@ -242,7 +242,7 @@ namespace mln
{
trace::entering("operator::minus_eq");
mln_precondition(exact(ima).has_data());
mln_precondition(exact(ima).is_valid());
arith::minus_cst_inplace(ima, exact(s));
trace::exiting("operator::minus_eq");
......@@ -391,7 +391,7 @@ namespace mln
{
trace::entering("arith::minus_cst");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// Calls the previous version.
mln_trait_op_minus(I, V) output = minus(input,
......@@ -409,7 +409,7 @@ namespace mln
{
trace::entering("arith::minus_cst");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// Calls the previous version.
mln_ch_value(I, mln_result(F)) output = minus(input,
......@@ -444,7 +444,7 @@ namespace mln
{
trace::entering("arith::minus_cst_inplace");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// Calls the previous version.
minus_inplace(input,
......
......@@ -151,7 +151,7 @@ namespace mln
* \param[in] val The value.
* \result The result image.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*/
template <typename I, typename V>
mln_trait_op_plus(I, V)
......@@ -165,7 +165,7 @@ namespace mln
* \param[in] f Function.
* \result The result image.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*/
template <typename I, typename V, typename F>
mln_ch_value(I, mln_result(F))
......@@ -178,7 +178,7 @@ namespace mln
* \param[in] val The value.
* \result The result image.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*/
template <typename W, typename I, typename V>
mln_ch_value(I, W)
......@@ -190,7 +190,7 @@ namespace mln
* \param[in,out] input The image.
* \param[in] val The value.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*/
template <typename I, typename V>
I&
......@@ -243,7 +243,7 @@ namespace mln
{
trace::entering("operator::plus");
mln_precondition(exact(ima).has_data());
mln_precondition(exact(ima).is_valid());
mln_trait_op_plus(I,S) output = arith::plus_cst(ima, exact(s));
......@@ -258,7 +258,7 @@ namespace mln
{
trace::entering("operator::plus_eq");
mln_precondition(exact(ima).has_data());
mln_precondition(exact(ima).is_valid());
arith::plus_cst_inplace(ima, exact(s));
......@@ -408,7 +408,7 @@ namespace mln
{
trace::entering("arith::plus_cst");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// Calls the previous version.
mln_trait_op_plus(I, V) output = plus(input,
......@@ -426,7 +426,7 @@ namespace mln
{
trace::entering("arith::plus_cst");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// Calls the previous version.
mln_ch_value(I, mln_result(F)) output = plus(input,
......@@ -445,7 +445,7 @@ namespace mln
{
trace::entering("arith::plus_cst");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// Calls the previous version.
mln_ch_value(I, W) output = plus_cst(input, val,
......@@ -479,7 +479,7 @@ namespace mln
{
trace::entering("arith::plus_cst_inplace");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
// Calls the previous version.
plus_inplace(input,
......
......@@ -57,7 +57,7 @@ namespace mln
* \param[in] input the input image.
* \result The result image.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*
* It performs: \n
* for all p of input.domain \n
......@@ -71,7 +71,7 @@ namespace mln
/*!
* \param[in,out] input The target image.
*
* \pre \p input.has_data
* \pre \p input.is_valid
*
* It performs: \n
* for all p of input.domain \n
......@@ -116,7 +116,7 @@ namespace mln
{
trace::entering("arith::revert");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
mln_concrete(I) output;
initialize(output, input);
......@@ -132,7 +132,7 @@ namespace mln
{
trace::entering("arith::revert_inplace");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
impl::revert_(mln_trait_image_speed(I)(), exact(input), exact(input));
......
......@@ -163,7 +163,7 @@ namespace mln
mln_trait_op_times(I,S)
operator*(const Image<I>& ima, const value::Scalar<S>& s)
{
mln_precondition(exact(ima).has_data());
mln_precondition(exact(ima).is_valid());
mln_trait_op_times(I,S) tmp;
initialize(tmp, ima);
arith::times_cst(ima, exact(s), tmp);
......@@ -175,7 +175,7 @@ namespace mln
I&
operator*=(Image<I>& ima, const value::Scalar<S>& s)
{
mln_precondition(exact(ima).has_data());
mln_precondition(exact(ima).is_valid());
arith::times_cst(ima, exact(s), ima);
return exact(ima);
}
......@@ -271,7 +271,7 @@ namespace mln
{
trace::entering("arith::times_cst_inplace");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
times_inplace(input, pw::cst(val) | exact(input).domain());
// Calls the previous version.
......
......@@ -85,7 +85,7 @@ namespace mln
binarization(const Image<I>& input, const Function_v2b<F>& fun)
{
trace::entering("binarization::binarization");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
mlc_is(mln_trait_value_nature(mln_value(I)),
trait::value::nature::scalar)::check();
......
......@@ -67,7 +67,7 @@ namespace mln
{
trace::entering("binarization::threshold");
mln_precondition(exact(input).has_data());
mln_precondition(exact(input).is_valid());
mlc_is(mln_trait_value_nature(mln_value(I)),
trait::value::nature::scalar)::check();
......
......@@ -66,7 +66,7 @@ namespace mln
{
trace::entering("border::adjust");
mln_precondition(exact(ima).has_data());
mln_precondition(exact(ima).is_valid());
if (border::get(ima) < min_thickness)
border::resize(ima, min_thickness);
......
......@@ -131,7 +131,7 @@ namespace mln
{
trace::entering("border::impl::duplicate_3D");
mln_precondition(ima.has_data());
mln_precondition(ima.is_valid());
typedef mln_psite(I) P;
mln_box_runstart_piter(I) pl(ima.domain());
......@@ -252,7 +252,7 @@ namespace mln
void duplicate(const Image<I>& ima)
{
trace::entering("border::duplicate");
mln_precondition(exact(ima).has_data());
mln_precondition(exact(ima).is_valid());
if (border::get(ima) != 0)