https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Get rid of the _b (with border) suffix.
* tests/histo_to_image1d_b.cc,
* tests/image3d_b.cc,
* tests/pixter3d_b.cc,
* tests/image2d_b.cc,
* tests/pixter2d_b.cc,
* tests/image1d_b.cc,
* tests/pixter1d_b.cc,
* mln/core/pixter1d_b.hh,
* mln/core/pixter3d_b.hh,
* mln/core/image2d_b.hh,
* mln/core/pixter2d_b.hh,
* mln/core/image1d_b.hh,
* mln/core/image3d_b.hh: Rename as...
* tests/pixter2d.cc,
* tests/histo_to_image1d.cc,
* tests/image2d.cc,
* tests/pixter1d.cc,
* tests/pixter3d.cc,
* tests/image1d.cc,
* tests/image3d.cc,
* mln/core/pixter1d.hh,
* mln/core/pixter2d.hh,
* mln/core/pixter3d.hh,
* mln/core/image1d.hh,
* mln/core/image2d.hh,
* mln/core/image3d.hh: ...those.
(<name>_b): Rename as...
(<name>): ...those.
* tests/window1d.cc,
* tests/image_if_value.cc,
* tests/window3d.cc,
* tests/morpho_dilation_max_h.cc,
* tests/image_if_interval.cc,
* tests/level_naive_median.cc,
* tests/core_clone.cc,
* tests/io_pgm.cc,
* tests/level_sort_points.cc,
* tests/linear_log.cc,
* tests/line2d.cc,
* tests/accu_nil.cc,
* tests/labeling_algo.cc,
* tests/histo_compute.cc,
* tests/debug_println_with_border.cc,
* tests/io_pgm19.cc,
* tests/io_ppm23.cc,
* tests/level_median_hline2d.cc,
* tests/level_transform.cc,
* tests/morpho_erosion.cc,
* tests/morpho_hit_or_miss.cc,
* tests/fun_x2x_translation.cc,
* tests/fun_x2x_rotation.cc,
* tests/core_initialize.cc,
* tests/morpho_opening_area.cc,
* tests/morpho_erosion_min_h.cc,
* tests/accu_min.cc,
* tests/labeling_level_fast.cc,
* tests/new_io_pgm.cc,
* tests/pset_if.cc,
* tests/labeling_regional_maxima.cc,
* tests/sparse_image.cc,
* tests/plain.cc,
* tests/level_memcpy_.cc,
* tests/level_median.cc,
* tests/linear_convolve.cc,
* tests/run_pset.cc,
* tests/test_positive.cc,
* tests/linear_lap.cc,
* tests/labeling_foreground.cc,
* tests/dpoints_pixter.cc,
* tests/safe_image.cc,
* tests/estim_mean.cc,
* tests/morpho_gradient.cc,
* tests/level_median_dir.cc,
* tests/convert_to_image.cc,
* tests/rle_image.cc,
* tests/interpolated.cc,
* tests/w_window1d_int.cc,
* tests/w_window2d_int.cc,
* tests/window2d.cc,
* tests/w_window3d_int.cc,
* tests/io_pbm.cc,
* tests/io_ppm.cc,
* tests/main.cc,
* tests/cast_image.cc,
* tests/linear_sobel._cc,
* tests/mesh_image.cc,
* tests/morpho_thinning.cc,
* tests/chamfer.cc,
* tests/morpho_laplacian.cc,
* tests/labeling_estimate.cc,
* tests/level_fill.cc,
* tests/pixel.cc,
* tests/io_ppm16.cc,
* tests/sub_image.cc,
* tests/debug_println.cc,
* tests/level_median_fast.cc,
* tests/local_convolve.cc,
* tests/stack.cc,
* tests/level_approx_median.cc,
* tests/io_pgm27.cc,
* tests/decorated_image.cc,
* tests/image_if.cc,
* tests/value_float01.cc,
* tests/line_convolve.cc,
* tests/level_paste.cc,
* tests/linear_gaussian.cc,
* tests/trait_images.cc,
* tests/level_assign.cc,
* tests/level_memset_.cc,
* tests/io_pgm16.cc,
* tests/morpho_contrast.cc,
* tests/pw_value.cc,
* tests/canvas_browsing_fwd.cc,
* tests/color_pretty.cc,
* tests/hexa.cc,
* tests/tr_image.cc,
* tests/morpho_dilation.cc,
* tests/trait_ch_value.cc,
* tests/line_piter.cc,
* mln/trait/image_from_mesh.hh,
* mln/trait/images.hh,
* mln/convert/to_image.hh,
* mln/display/color_pretty.hh,
* mln/io/pfm/load.hh,
* mln/io/pgm/load.hh,
* mln/io/fits/load.hh,
* mln/io/ppm/load.hh,
* mln/io/internal/pnm/load.hh,
* mln/io/pbm/load.hh: Update.
mln/convert/to_image.hh | 20 ++---
mln/core/image1d.hh | 108 ++++++++++++++++----------------
mln/core/image2d.hh | 124 ++++++++++++++++++-------------------
mln/core/image3d.hh | 108 ++++++++++++++++----------------
mln/core/pixter1d.hh | 14 ++--
mln/core/pixter2d.hh | 24 +++----
mln/core/pixter3d.hh | 14 ++--
mln/display/color_pretty.hh | 4 -
mln/io/fits/load.hh | 6 -
mln/io/internal/pnm/load.hh | 8 +-
mln/io/pbm/load.hh | 6 -
mln/io/pfm/load.hh | 6 -
mln/io/pgm/load.hh | 6 -
mln/io/ppm/load.hh | 6 -
mln/trait/image_from_mesh.hh | 12 +--
mln/trait/images.hh | 6 -
tests/accu_min.cc | 4 -
tests/accu_nil.cc | 4 -
tests/canvas_browsing_fwd.cc | 8 +-
tests/cast_image.cc | 4 -
tests/chamfer.cc | 12 +--
tests/color_pretty.cc | 8 +-
tests/convert_to_image.cc | 4 -
tests/core_clone.cc | 8 +-
tests/core_initialize.cc | 4 -
tests/debug_println.cc | 4 -
tests/debug_println_with_border.cc | 8 +-
tests/decorated_image.cc | 4 -
tests/dpoints_pixter.cc | 4 -
tests/estim_mean.cc | 4 -
tests/fun_x2x_rotation.cc | 14 ++--
tests/fun_x2x_translation.cc | 4 -
tests/hexa.cc | 4 -
tests/histo_compute.cc | 6 -
tests/histo_to_image1d.cc | 8 +-
tests/image1d.cc | 8 +-
tests/image2d.cc | 8 +-
tests/image3d.cc | 8 +-
tests/image_if.cc | 4 -
tests/image_if_interval.cc | 4 -
tests/image_if_value.cc | 4 -
tests/interpolated.cc | 10 +-
tests/io_pbm.cc | 6 -
tests/io_pgm.cc | 4 -
tests/io_pgm16.cc | 10 +-
tests/io_pgm19.cc | 10 +-
tests/io_pgm27.cc | 10 +-
tests/io_ppm.cc | 4 -
tests/io_ppm16.cc | 14 ++--
tests/io_ppm23.cc | 14 ++--
tests/labeling_algo.cc | 14 ++--
tests/labeling_estimate.cc | 4 -
tests/labeling_foreground.cc | 4 -
tests/labeling_level_fast.cc | 8 +-
tests/labeling_regional_maxima.cc | 4 -
tests/level_approx_median.cc | 4 -
tests/level_assign.cc | 4 -
tests/level_fill.cc | 8 +-
tests/level_median.cc | 4 -
tests/level_median_dir.cc | 4 -
tests/level_median_fast.cc | 6 -
tests/level_median_hline2d.cc | 4 -
tests/level_memcpy_.cc | 4 -
tests/level_memset_.cc | 4 -
tests/level_naive_median.cc | 4 -
tests/level_paste.cc | 6 -
tests/level_sort_points.cc | 4 -
tests/level_transform.cc | 4 -
tests/line2d.cc | 8 +-
tests/line_convolve.cc | 6 -
tests/line_piter.cc | 6 -
tests/linear_convolve.cc | 6 -
tests/linear_gaussian.cc | 8 +-
tests/linear_lap.cc | 6 -
tests/linear_log.cc | 8 +-
tests/linear_sobel._cc | 6 -
tests/local_convolve.cc | 6 -
tests/main.cc | 10 +-
tests/mesh_image.cc | 4 -
tests/morpho_contrast.cc | 8 +-
tests/morpho_dilation.cc | 16 ++--
tests/morpho_dilation_max_h.cc | 6 -
tests/morpho_erosion.cc | 16 ++--
tests/morpho_erosion_min_h.cc | 6 -
tests/morpho_gradient.cc | 4 -
tests/morpho_hit_or_miss.cc | 4 -
tests/morpho_laplacian.cc | 8 +-
tests/morpho_opening_area.cc | 4 -
tests/morpho_thinning.cc | 4 -
tests/new_io_pgm.cc | 4 -
tests/pixel.cc | 4 -
tests/pixter1d.cc | 8 +-
tests/pixter2d.cc | 8 +-
tests/pixter3d.cc | 8 +-
tests/plain.cc | 8 +-
tests/pset_if.cc | 2
tests/pw_value.cc | 4 -
tests/rle_image.cc | 4 -
tests/run_pset.cc | 2
tests/safe_image.cc | 4 -
tests/sparse_image.cc | 4 -
tests/stack.cc | 10 +-
tests/sub_image.cc | 4 -
tests/test_positive.cc | 4 -
tests/tr_image.cc | 16 ++--
tests/trait_ch_value.cc | 4 -
tests/trait_images.cc | 10 +-
tests/value_float01.cc | 8 +-
tests/w_window1d_int.cc | 4 -
tests/w_window2d_int.cc | 4 -
tests/w_window3d_int.cc | 4 -
tests/window1d.cc | 4 -
tests/window2d.cc | 4 -
tests/window3d.cc | 4 -
114 files changed, 545 insertions(+), 545 deletions(-)
Index: tests/window1d.cc
--- tests/window1d.cc (revision 1276)
+++ tests/window1d.cc (working copy)
@@ -31,7 +31,7 @@
*/
#include <mln/core/window1d.hh>
-#include <mln/core/image1d_b.hh>
+#include <mln/core/image1d.hh>
#include <mln/convert/to_image.hh>
#include <mln/debug/println.hh>
@@ -49,7 +49,7 @@
w.insert(make::dpoint1d(-1));
w.insert(make::dpoint1d( 1));
- image1d_b<bool> ima = convert::to_image(w);
+ image1d<bool> ima = convert::to_image(w);
debug::println(ima);
mln_assertion(w.delta() = 1);
Index: tests/image_if_value.cc
--- tests/image_if_value.cc (revision 1276)
+++ tests/image_if_value.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::image_if_value.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/image_if_value.hh>
#include <mln/debug/iota.hh>
#include <mln/debug/println.hh>
@@ -40,7 +40,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(3, 3);
debug::iota(ima);
debug::println(ima);
Index: tests/window3d.cc
--- tests/window3d.cc (revision 1276)
+++ tests/window3d.cc (working copy)
@@ -31,7 +31,7 @@
*/
#include <mln/core/window3d.hh>
-#include <mln/core/image3d_b.hh>
+#include <mln/core/image3d.hh>
#include <mln/convert/to_image.hh>
#include <mln/debug/println.hh>
@@ -50,7 +50,7 @@
w.insert(make::dpoint3d( 1, 1, 1));
w.insert(make::dpoint3d( 0, 0, 2));
- image3d_b<bool> ima = convert::to_image(w);
+ image3d<bool> ima = convert::to_image(w);
debug::println(ima);
mln_assertion(w.delta() = 2);
Index: tests/morpho_dilation_max_h.cc
--- tests/morpho_dilation_max_h.cc (revision 1276)
+++ tests/morpho_dilation_max_h.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::erosion.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/core/window2d.hh>
@@ -52,13 +52,13 @@
win::rectangle2d rec(21, 21);
border::thickness = 66;
- image2d_b<int_u8> lena = io::pgm::load("../img/lena.pgm");
+ image2d<int_u8> lena = io::pgm::load("../img/lena.pgm");
{
vec_p<point2d> vec = convert::to_vec_p(rec, point2d::zero);
window2d win = convert::to_window(vec);
- image2d_b<int_u8> out(lena.domain());
+ image2d<int_u8> out(lena.domain());
morpho::dilation_fast(lena, win, out);
io::pgm::save(out, "out.pgm");
}
Index: tests/image_if_interval.cc
--- tests/image_if_interval.cc (revision 1276)
+++ tests/image_if_interval.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::image_if_value.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/image_if_interval.hh>
#include <mln/debug/iota.hh>
#include <mln/debug/println.hh>
@@ -40,7 +40,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(3, 3);
debug::iota(ima);
debug::println(ima);
Index: tests/level_naive_median.cc
--- tests/level_naive_median.cc (revision 1276)
+++ tests/level_naive_median.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::level::naive::median.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/io/pgm/load.hh>
@@ -49,7 +49,7 @@
win::rectangle2d rec(51, 51);
border::thickness = 52;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
Index: tests/core_clone.cc
--- tests/core_clone.cc (revision 1276)
+++ tests/core_clone.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::clone.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/sub_image.hh>
#include <mln/debug/iota.hh>
@@ -43,7 +43,7 @@
int main()
{
using namespace mln;
- image2d_b<int> ima(3, 3, 51);
+ image2d<int> ima(3, 3, 51);
debug::iota(ima);
{
@@ -55,14 +55,14 @@
}
{
- image2d_b<int> ima_ = clone(ima);
+ image2d<int> ima_ = clone(ima);
std::cout << ima_.border() << std::endl;
ima_(make::point2d(1,1)) = 51;
debug::println(ima);
}
{
- image2d_b<int> ima_( ima );
+ image2d<int> ima_( ima );
ima_(make::point2d(1,1)) = 51;
debug::println(ima);
}
Index: tests/io_pgm.cc
--- tests/io_pgm.cc (revision 1276)
+++ tests/io_pgm.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::ppm::load.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
@@ -43,7 +43,7 @@
using value::int_u8;
{
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load<int_u8>("../img/lena.pgm");
io::pgm::save(lena, "out.pgm");
Index: tests/level_sort_points.cc
--- tests/level_sort_points.cc (revision 1276)
+++ tests/level_sort_points.cc (working copy)
@@ -32,7 +32,7 @@
#include <iterator>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/debug/iota.hh>
@@ -45,7 +45,7 @@
using namespace mln;
using value::int_u8;
- image2d_b<int_u8> ima(3, 3);
+ image2d<int_u8> ima(3, 3);
debug::iota(ima);
vec_p<point2d> vec;
{
Index: tests/linear_log.cc
--- tests/linear_log.cc (revision 1276)
+++ tests/linear_log.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::linear::log.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/io/pgm/load.hh>
@@ -50,9 +50,9 @@
border::thickness = 2;
- image2d_b<int_u8> lena = io::pgm::load("../img/lena.pgm");
+ image2d<int_u8> lena = io::pgm::load("../img/lena.pgm");
- image2d_b<int> tmp(lena.domain());
+ image2d<int> tmp(lena.domain());
linear::LoG_5x5(lena, tmp);
{
int min, max;
@@ -60,7 +60,7 @@
mln_assertion(min = -929 && max = 1458);
}
- image2d_b<int_u8> out(lena.domain());
+ image2d<int_u8> out(lena.domain());
level::stretch(tmp, out);
io::pgm::save(out, "out.pgm");
{
Index: tests/line2d.cc
--- tests/line2d.cc (revision 1276)
+++ tests/line2d.cc (working copy)
@@ -32,7 +32,7 @@
#include <iterator>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/sub_image.hh>
#include <mln/core/inplace.hh>
@@ -50,17 +50,17 @@
line2d l(b, e);
mln_assertion(l.npoints() = 10);
- image2d_b<bool> ima(10,10);
+ image2d<bool> ima(10,10);
level::fill(ima, false);
draw::line(ima, b, e, true);
- image2d_b<bool> ima2(10,10);
+ image2d<bool> ima2(10,10);
level::fill(ima2, false);
level::paste(pw::cst(true) | l, ima2);
mln_assertion(ima2 = ima);
- image2d_b<bool> ima3(10,10);
+ image2d<bool> ima3(10,10);
level::fill(ima3, false);
level::fill(inplace(ima3 | l), true);
Index: tests/accu_nil.cc
--- tests/accu_nil.cc (revision 1276)
+++ tests/accu_nil.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::accu::nil.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/accu/nil.hh>
@@ -40,7 +40,7 @@
int main()
{
using namespace mln;
- image2d_b<value::int_u8> ima(3, 3);
+ image2d<value::int_u8> ima(3, 3);
accu::nil a;
level::compute<accu::nil>(ima);
}
Index: tests/labeling_algo.cc
--- tests/labeling_algo.cc (revision 1276)
+++ tests/labeling_algo.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::labeling::foreground.
*/
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/core/sub_image.hh>
# include <mln/core/neighb2d.hh>
# include <mln/value/int_u8.hh>
@@ -50,25 +50,25 @@
using namespace mln;
using value::int_u8;
- image2d_b<bool> in = io::pbm::load("../img/toto.pbm");
+ image2d<bool> in = io::pbm::load("../img/toto.pbm");
- image2d_b<int_u8> lab(in.domain());
- image2d_b<int_u8> inte(in.domain());
- image2d_b<int_u8> out(in.domain());
+ image2d<int_u8> lab(in.domain());
+ image2d<int_u8> inte(in.domain());
+ image2d<int_u8> out(in.domain());
unsigned n;
labeling::foreground(in, c8(), lab, n);
std::cout << "number of labels = " << n << std::endl;
std::vector<int_u8> vec;
- image2d_b<int> input(in.domain());
+ image2d<int> input(in.domain());
level::fill(input, lab);
lab(make::point2d (0,0)) = 0;
inte = geom::seeds2tiling(lab, c4 ());
border::fill (inte, 0);
- image2d_b<int_u8> inte2(inte.domain());
+ image2d<int_u8> inte2(inte.domain());
level::stretch (inte, inte2);
Index: tests/histo_compute.cc
--- tests/histo_compute.cc (revision 1276)
+++ tests/histo_compute.cc (working copy)
@@ -32,7 +32,7 @@
#include <iterator>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/value/int_s.hh>
@@ -62,7 +62,7 @@
}
{
- image2d_b<int_u8> ima(3, 3);
+ image2d<int_u8> ima(3, 3);
debug::iota(ima);
ima.at(0,0) = 2;
debug::println(ima);
@@ -76,7 +76,7 @@
// {
// typedef value::int_s<5> int_s5;
-// image2d_b<int_s5> ima(3, 3);
+// image2d<int_s5> ima(3, 3);
// debug::iota(ima);
// ima.at(0,0) = 2;
// debug::println(ima);
Index: tests/debug_println_with_border.cc
--- tests/debug_println_with_border.cc (revision 1276)
+++ tests/debug_println_with_border.cc (working copy)
@@ -30,8 +30,8 @@
* \brief Test on mln::debug::println_with_border.
*/
-#include <mln/core/image2d_b.hh>
-#include <mln/core/image1d_b.hh>
+#include <mln/core/image2d.hh>
+#include <mln/core/image1d.hh>
#include <mln/level/fill.hh>
#include <mln/debug/println.hh>
#include <mln/debug/println_with_border.hh>
@@ -45,7 +45,7 @@
border::thickness = 3;
{
- image2d_b<bool> msk(3, 3);
+ image2d<bool> msk(3, 3);
msk.at(0, 0) = true;
msk.at(1, 0) = true;
msk.at(2, 0) = true;
@@ -63,7 +63,7 @@
}
{
- image1d_b<bool> msk(3);
+ image1d<bool> msk(3);
msk.at(0) = false;
msk.at(1) = true;
msk.at(2) = false;
Index: tests/io_pgm19.cc
--- tests/io_pgm19.cc (revision 1276)
+++ tests/io_pgm19.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::pbm::load.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
@@ -74,17 +74,17 @@
border::thickness = 52;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load<int_u8>("../img/lena.pgm");
- image2d_b<int_u19> out(lena.domain());
+ image2d<int_u19> out(lena.domain());
level::transform(lena, to19bits(), out);
io::pgm::save(out, "out19.pgm");
- image2d_b<int_u19>
+ image2d<int_u19>
lena2 = io::pgm::load<int_u19>("out19.pgm");
- image2d_b<int_u8> out2(lena.domain());
+ image2d<int_u8> out2(lena.domain());
level::transform(lena2, to8bits(), out2);
Index: tests/io_ppm23.cc
--- tests/io_ppm23.cc (revision 1276)
+++ tests/io_ppm23.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::pbm::load for 23bits ppm
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/value/rgb8.hh>
@@ -76,15 +76,15 @@
using namespace mln;
using value::rgb8;
- typedef image2d_b<rgb8> I;
+ typedef image2d<rgb8> I;
// load a 8bits image A
- image2d_b<rgb8>
+ image2d<rgb8>
a = io::ppm::load<rgb8>("../img/lena.ppm");
- image2d_b<rgb23> b(a.domain());
+ image2d<rgb23> b(a.domain());
- image2d_b<rgb8>::fwd_piter p(b.domain());
+ image2d<rgb8>::fwd_piter p(b.domain());
// save it as a 23bits ppm image B
to23bits f;
@@ -93,9 +93,9 @@
io::ppm::save(b, "out23.ppm");
// reload B into C
- image2d_b<rgb23>
+ image2d<rgb23>
c = io::ppm::load<rgb23>("out23.ppm");
- image2d_b<rgb8> d(a.domain());
+ image2d<rgb8> d(a.domain());
// save C as a 8bits ppm image D
Index: tests/level_median_hline2d.cc
--- tests/level_median_hline2d.cc (revision 1276)
+++ tests/level_median_hline2d.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on the hline2d version of mln::level::median.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/io/pgm/load.hh>
@@ -50,7 +50,7 @@
border::thickness = 0;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain()),
ref(lena.domain());
Index: tests/pixter2d.cc
--- tests/pixter2d.cc (revision 1276)
+++ tests/pixter2d.cc (working copy)
@@ -25,12 +25,12 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/pixter2d_b.cc
+/*! \file tests/pixter2d.cc
*
- * \brief Tests on mln::fwd_pixter2d_b.
+ * \brief Tests on mln::fwd_pixter2d.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
const unsigned size = 20;
@@ -86,7 +86,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(size, size);
test_fill(ima);
Index: tests/level_transform.cc
--- tests/level_transform.cc (revision 1276)
+++ tests/level_transform.cc (working copy)
@@ -32,7 +32,7 @@
#include <cmath>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/level/transform.hh>
#include <mln/debug/iota.hh>
@@ -53,7 +53,7 @@
using namespace mln;
const unsigned size = 10000;
- image2d_b<unsigned short>
+ image2d<unsigned short>
ima(size, size);
(std::cout << "iota... ").flush();
Index: tests/morpho_erosion.cc
--- tests/morpho_erosion.cc (revision 1276)
+++ tests/morpho_erosion.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::erosion.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/core/win/octagon2d.hh>
#include <mln/core/win/diag2d.hh>
@@ -60,17 +60,17 @@
win::rectangle2d rec(21, 21);
border::thickness = 66;
- image2d_b<int_u8> lena = io::pgm::load("../img/lena.pgm");
+ image2d<int_u8> lena = io::pgm::load("../img/lena.pgm");
{
- image2d_b<int_u8> out(lena.domain());
+ image2d<int_u8> out(lena.domain());
morpho::erosion(lena, rec, out);
io::pgm::save(out, "out1.pgm");
}
{
win::octagon2d oct(31);
- image2d_b<int_u8> out(lena.domain());
+ image2d<int_u8> out(lena.domain());
morpho::erosion(lena, oct, out);
io::pgm::save(out, "out2.pgm");
}
@@ -79,19 +79,19 @@
// vec_p<point2d> vec = convert::to_vec_p(rec, point2d::zero);
// window2d win = convert::to_window(vec);
-// image2d_b<int_u8> out(lena.domain());
+// image2d<int_u8> out(lena.domain());
// level::ero(lena, win, out);
// morpho::erosion(lena, win, out);
// io::pgm::save(out, "out.pgm");
// }
// {
-// image2d_b<bool> bin(lena.domain()), out(lena.domain());
+// image2d<bool> bin(lena.domain()), out(lena.domain());
// level::fill(bin, pw::value(lena) > pw::cst(127));
// morpho::erosion(bin, rec, out);
-// image2d_b<int_u8> test(lena.domain());
-// image2d_b<int_u8>::fwd_piter p(lena.domain());
+// image2d<int_u8> test(lena.domain());
+// image2d<int_u8>::fwd_piter p(lena.domain());
// for_all(p)
// test(p) = out(p) ? 255 : 0;
// io::pgm::save(test, "test.pgm");
Index: tests/morpho_hit_or_miss.cc
--- tests/morpho_hit_or_miss.cc (revision 1276)
+++ tests/morpho_hit_or_miss.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::hit_or_miss.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/win/rectangle2d.hh>
@@ -75,7 +75,7 @@
border::thickness = 2;
- image2d_b<int_u8>
+ image2d<int_u8>
pic = io::pgm::load("../img/picasso.pgm"),
out(pic.domain());
Index: tests/fun_x2x_translation.cc
--- tests/fun_x2x_translation.cc (revision 1276)
+++ tests/fun_x2x_translation.cc (working copy)
@@ -25,9 +25,9 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/image2d_b.cc
+/*! \file tests/image2d.cc
*
- * \brief Tests on mln::image2d_b.
+ * \brief Tests on mln::image2d.
*/
Index: tests/fun_x2x_rotation.cc
--- tests/fun_x2x_rotation.cc (revision 1276)
+++ tests/fun_x2x_rotation.cc (working copy)
@@ -25,15 +25,15 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/image2d_b.cc
+/*! \file tests/image2d.cc
*
- * \brief Tests on mln::image2d_b.
+ * \brief Tests on mln::image2d.
*/
#include <iostream>
#include <mln/fun/x2x/rotation.hh>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/io/pgm/load.hh>
#include <mln/io/pgm/save.hh>
@@ -45,14 +45,14 @@
using namespace mln;
using value::int_u8;
- image2d_b<int_u8> lena = io::pgm::load("../img/lena.pgm");
- image2d_b<int_u8> out(lena.domain());
+ image2d<int_u8> lena = io::pgm::load("../img/lena.pgm");
+ image2d<int_u8> out(lena.domain());
- interpolated<image2d_b<int_u8> > inter(lena);
+ interpolated<image2d<int_u8> > inter(lena);
fun::x2x::rotation<2,float> rot1(0.1);
- image2d_b<int_u8>::fwd_piter p(out.domain());
+ image2d<int_u8>::fwd_piter p(out.domain());
for_all(p)
{
Index: tests/core_initialize.cc
--- tests/core_initialize.cc (revision 1276)
+++ tests/core_initialize.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::initialize.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/sub_image.hh>
#include <mln/debug/println.hh>
@@ -40,7 +40,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ref( make::box2d(3,3) );
box2d b = make::box2d(2,2);
Index: tests/morpho_opening_area.cc
--- tests/morpho_opening_area.cc (revision 1276)
+++ tests/morpho_opening_area.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::opening_area.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/neighb2d.hh>
@@ -46,7 +46,7 @@
using namespace mln;
using value::int_u8;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
Index: tests/morpho_erosion_min_h.cc
--- tests/morpho_erosion_min_h.cc (revision 1276)
+++ tests/morpho_erosion_min_h.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::erosion.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/core/window2d.hh>
@@ -52,13 +52,13 @@
win::rectangle2d rec(21, 21);
border::thickness = 66;
- image2d_b<int_u8> lena = io::pgm::load("../img/lena.pgm");
+ image2d<int_u8> lena = io::pgm::load("../img/lena.pgm");
{
vec_p<point2d> vec = convert::to_vec_p(rec, point2d::zero);
window2d win = convert::to_window(vec);
- image2d_b<int_u8> out(lena.domain());
+ image2d<int_u8> out(lena.domain());
morpho::erosion_fast(lena, win, out);
io::pgm::save(out, "out.pgm");
}
Index: tests/accu_min.cc
--- tests/accu_min.cc (revision 1276)
+++ tests/accu_min.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::accu::min.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/debug/iota.hh>
#include <mln/accu/nil.hh>
@@ -45,7 +45,7 @@
int main()
{
using namespace mln;
- image2d_b<int> ima(3, 3);
+ image2d<int> ima(3, 3);
debug::iota(ima);
mln_assertion(level::compute< accu::min >(ima) = 1);
mln_assertion(level::compute< accu::min_<int> >(ima) = 1);
Index: tests/histo_to_image1d.cc
--- tests/histo_to_image1d.cc (revision 1276)
+++ tests/histo_to_image1d.cc (working copy)
@@ -32,8 +32,8 @@
#include <iterator>
-#include <mln/core/image2d_b.hh>
-#include <mln/core/image1d_b.hh>
+#include <mln/core/image2d.hh>
+#include <mln/core/image1d.hh>
#include <mln/value/int_u8.hh>
@@ -64,14 +64,14 @@
}
{
- image2d_b<int_u8> ima(3, 3);
+ image2d<int_u8> ima(3, 3);
debug::iota(ima);
ima(make::point2d(0,1)) = 255;
debug::println(ima);
histo::data< value::set<int_u8> > h = histo::compute(ima);
std::cout << h << std::endl;
- image1d_b<std::size_t> ima2 = convert::to_image(h);
+ image1d<std::size_t> ima2 = convert::to_image(h);
debug::println(ima2);
}
}
Index: tests/labeling_level_fast.cc
--- tests/labeling_level_fast.cc (revision 1276)
+++ tests/labeling_level_fast.cc (working copy)
@@ -30,8 +30,8 @@
* \brief Test on mln::labeling::foreground.
*/
-#include <mln/core/image2d_b.hh>
-#include <mln/core/image1d_b.hh>
+#include <mln/core/image2d.hh>
+#include <mln/core/image1d.hh>
#include <mln/core/neighb2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/pw/all.hh>
@@ -49,13 +49,13 @@
unsigned border = 1;
- image2d_b<value::int_u8> i1(5, 5, border);
+ image2d<value::int_u8> i1(5, 5, border);
debug::iota(i1);
i1[10] = i1[17] = i1[18] = i1[25] = i1[26] = i1[22] = i1[29] = 2;
debug::println(i1);
unsigned n;
- image2d_b<value::int_u8> out(i1.domain(), border);
+ image2d<value::int_u8> out(i1.domain(), border);
labeling::level(i1, 2, c4(), out, n);
std::cout << "n = " << n << std::endl;
Index: tests/new_io_pgm.cc
--- tests/new_io_pgm.cc (revision 1276)
+++ tests/new_io_pgm.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::ppm::load.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/value/int_u.hh>
@@ -46,7 +46,7 @@
using value::rgb8;
{
- image2d_b< value::int_u<8> >
+ image2d< value::int_u<8> >
lena;
io::pgm::load(lena, "../img/lena.pgm");
Index: tests/pset_if.cc
--- tests/pset_if.cc (revision 1276)
+++ tests/pset_if.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::pset_if.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/pset_if.hh>
#include <mln/fun/p2b/chess.hh>
#include <mln/convert/to_image.hh>
Index: tests/labeling_regional_maxima.cc
--- tests/labeling_regional_maxima.cc (revision 1276)
+++ tests/labeling_regional_maxima.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::labeling::regional_maxima.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/neighb2d.hh>
#include <mln/value/int_u8.hh>
@@ -45,7 +45,7 @@
using namespace mln;
using value::int_u8;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
Index: tests/sparse_image.cc
--- tests/sparse_image.cc (revision 1276)
+++ tests/sparse_image.cc (working copy)
@@ -1,4 +1,4 @@
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/sparse_image.hh>
#include <mln/core/sparse_encode.hh>
#include <vector>
@@ -64,7 +64,7 @@
test(sparse.domain());
test2(sparse);
- mln::image2d_b<int> ima2d (1, 5);
+ mln::image2d<int> ima2d (1, 5);
ima2d(mln::make::point2d(0, 4)) = 5;
ima2d(mln::make::point2d(0, 3)) = 2;
Index: tests/plain.cc
--- tests/plain.cc (revision 1276)
+++ tests/plain.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::plain.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/plain.hh>
#include <mln/value/int_u8.hh>
@@ -45,11 +45,11 @@
using value::int_u8;
{
- plain< image2d_b<int_u8> >
+ plain< image2d<int_u8> >
lena = io::pgm::load<int_u8>("../img/lena.pgm");
- image2d_b<int_u8> ima;
- image2d_b<int_u8> ima2;
+ image2d<int_u8> ima;
+ image2d<int_u8> ima2;
ima = lena;
Index: tests/image2d.cc
--- tests/image2d.cc (revision 1276)
+++ tests/image2d.cc (working copy)
@@ -25,12 +25,12 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/image2d_b.cc
+/*! \file tests/image2d.cc
*
- * \brief Tests on mln::image2d_b.
+ * \brief Tests on mln::image2d.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/geom/size2d.hh>
#include <mln/core/init.hh>
@@ -45,7 +45,7 @@
const unsigned ncols = 66;
const unsigned border = 4;
- image2d_b<int> f(nrows, ncols, border);
+ image2d<int> f(nrows, ncols, border);
mln_assertion(f.npoints() = geom::nrows(f) * geom::ncols(f));
mln_assertion(f.ncells() = (nrows + 2 * border) * (ncols + 2 * border));
Index: tests/level_memcpy_.cc
--- tests/level_memcpy_.cc (revision 1276)
+++ tests/level_memcpy_.cc (working copy)
@@ -32,7 +32,7 @@
* \todo Make this test not dummy!
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/inplace.hh>
#include <mln/debug/iota.hh>
#include <mln/level/memcpy_.hh>
@@ -42,7 +42,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(3, 3);
debug::iota(ima);
Index: tests/level_median.cc
--- tests/level_median.cc (revision 1276)
+++ tests/level_median.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::level::median.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/io/pgm/load.hh>
@@ -50,7 +50,7 @@
win::rectangle2d rect(51, 51);
border::thickness = 52;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
Index: tests/linear_convolve.cc
--- tests/linear_convolve.cc (revision 1276)
+++ tests/linear_convolve.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::linear::convolve.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/io/pgm/load.hh>
@@ -50,7 +50,7 @@
border::thickness = 2;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
@@ -61,7 +61,7 @@
.04, .04, .04, .04, .04 };
w_window2d_float w = make::w_window2d(ws);
- image2d_b<float> tmp(lena.domain());
+ image2d<float> tmp(lena.domain());
linear::convolve(lena, w, tmp);
level::transform(tmp, math::round<int_u8>(), out);
Index: tests/run_pset.cc
--- tests/run_pset.cc (revision 1276)
+++ tests/run_pset.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::internal::run_pset_ and related tools.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/internal/run_pset.hh>
Index: tests/test_positive.cc
--- tests/test_positive.cc (revision 1276)
+++ tests/test_positive.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::test::positive.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/level/fill.hh>
#include <mln/test/positive.hh>
@@ -52,7 +52,7 @@
int main()
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(1,1);
level::fill(ima, 0);
Index: tests/linear_lap.cc
--- tests/linear_lap.cc (revision 1276)
+++ tests/linear_lap.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::linear::lap_4.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/io/pgm/load.hh>
@@ -45,7 +45,7 @@
border::thickness = 1;
- image2d_b<int_u8> lena = io::pgm::load("../img/lena.pgm");
- image2d_b<int> tmp(lena.domain());
+ image2d<int_u8> lena = io::pgm::load("../img/lena.pgm");
+ image2d<int> tmp(lena.domain());
linear::lap_4(lena, tmp);
}
Index: tests/labeling_foreground.cc
--- tests/labeling_foreground.cc (revision 1276)
+++ tests/labeling_foreground.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::labeling::foreground.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/neighb2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/pw/all.hh>
@@ -45,7 +45,7 @@
using namespace mln;
using value::int_u8;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/tiny.pgm"),
out(lena.domain());
Index: tests/dpoints_pixter.cc
--- tests/dpoints_pixter.cc (revision 1276)
+++ tests/dpoints_pixter.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::dpoints_fwd_pixter.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/make/pixel.hh>
@@ -69,7 +69,7 @@
using namespace mln;
border::thickness = 1;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(5, 5);
win::rectangle2d rect(3, 3);
Index: tests/safe_image.cc
--- tests/safe_image.cc (revision 1276)
+++ tests/safe_image.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::safe_image.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/safe.hh>
@@ -38,7 +38,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(1, 1);
point2d
in = make::point2d(0, 0),
Index: tests/estim_mean.cc
--- tests/estim_mean.cc (revision 1276)
+++ tests/estim_mean.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::estim::mean.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/debug/iota.hh>
@@ -42,7 +42,7 @@
using namespace mln;
using value::int_u8;
- image2d_b<int_u8> ima(3, 3);
+ image2d<int_u8> ima(3, 3);
debug::iota(ima);
// 1 2 3
// 4 5 6
Index: tests/morpho_gradient.cc
--- tests/morpho_gradient.cc (revision 1276)
+++ tests/morpho_gradient.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::gradient.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/io/pgm/load.hh>
@@ -49,7 +49,7 @@
win::rectangle2d rect(5, 5);
border::thickness = 2;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/tiny.pgm"),
out(lena.domain());
Index: tests/level_median_dir.cc
--- tests/level_median_dir.cc (revision 1276)
+++ tests/level_median_dir.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::level::median.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/io/pgm/load.hh>
#include <mln/io/pgm/save.hh>
@@ -46,7 +46,7 @@
border::thickness = 7;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
Index: tests/convert_to_image.cc
--- tests/convert_to_image.cc (revision 1276)
+++ tests/convert_to_image.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::convert::to_image.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/window2d.hh>
#include <mln/core/pset_if.hh>
#include <mln/fun/p2b/chess.hh>
@@ -57,7 +57,7 @@
0, 1, 0, // < center point
1, 0, 1 };
- image2d_b<bool> ima_X = convert::to_image(box_3x3 | fun::p2b::chess);
+ image2d<bool> ima_X = convert::to_image(box_3x3 | fun::p2b::chess);
window2d win_X = make::window2d(X);
mln_assertion(convert::to_image(win_X) = ima_X);
Index: tests/rle_image.cc
--- tests/rle_image.cc (revision 1276)
+++ tests/rle_image.cc (working copy)
@@ -1,4 +1,4 @@
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/rle_image.hh>
#include <mln/core/rle_encode.hh>
@@ -39,7 +39,7 @@
// mln::debug::print(rle);
// std::cout << std::endl;
- mln::image2d_b<int> ima2d (1, 5);
+ mln::image2d<int> ima2d (1, 5);
ima2d(make::point2d(0, 4)) = 5;
// mln::debug::print(ima2d);
Index: tests/interpolated.cc
--- tests/interpolated.cc (revision 1276)
+++ tests/interpolated.cc (working copy)
@@ -25,14 +25,14 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/image2d_b.cc
+/*! \file tests/image2d.cc
*
- * \brief Tests on mln::image2d_b.
+ * \brief Tests on mln::image2d.
*/
#include <iostream>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/interpolated.hh>\
#include <mln/metal/vec.hh>
@@ -51,14 +51,14 @@
const unsigned ncols = 4;
const unsigned border = 4;
- image2d_b<float> f(nrows, ncols, border);
+ image2d<float> f(nrows, ncols, border);
float tab[] = {1., 3., 5., 7.,
4., 7., 10., 13.,
7., 11., 15., 19.,
10., 15., 20., 25.};
level::fill(f, tab);
- interpolated< image2d_b<float> > inter(f);
+ interpolated< image2d<float> > inter(f);
metal::vec<2, float> v1 = make::vec(2.3, 0.6);
metal::vec<2, float> v2 = make::vec(3.2, 1.8);
Index: tests/w_window1d_int.cc
--- tests/w_window1d_int.cc (revision 1276)
+++ tests/w_window1d_int.cc (working copy)
@@ -56,7 +56,7 @@
-1, 0, 1 };
w_window1d_int w_win = make::w_window1d(ws);
- image1d_b<int> ima = convert::to_image(w_win);
+ image1d<int> ima = convert::to_image(w_win);
w_window1d_int w_win_2 = convert::to_w_window(ima);
mln_assertion(w_win_2 = w_win);
}
@@ -67,7 +67,7 @@
// -3 -2 -1 0 +1
// -2 -1 0 +1 +2
// -1 0 +1 +2 +3
- image1d_b<int> ima = convert::to_image(w_win);
+ image1d<int> ima = convert::to_image(w_win);
mln_assertion(estim::sum(ima) = 0);
}
Index: tests/w_window2d_int.cc
--- tests/w_window2d_int.cc (revision 1276)
+++ tests/w_window2d_int.cc (working copy)
@@ -56,7 +56,7 @@
-1, 0, 1 };
w_window2d_int w_win = make::w_window2d(ws);
- image2d_b<int> ima = convert::to_image(w_win);
+ image2d<int> ima = convert::to_image(w_win);
w_window2d_int w_win_2 = convert::to_w_window(ima);
mln_assertion(w_win_2 = w_win);
}
@@ -67,7 +67,7 @@
// -3 -2 -1 0 +1
// -2 -1 0 +1 +2
// -1 0 +1 +2 +3
- image2d_b<int> ima = convert::to_image(w_win);
+ image2d<int> ima = convert::to_image(w_win);
mln_assertion(estim::sum(ima) = 0);
}
Index: tests/window2d.cc
--- tests/window2d.cc (revision 1276)
+++ tests/window2d.cc (working copy)
@@ -31,7 +31,7 @@
*/
#include <mln/core/window2d.hh>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/convert/to_image.hh>
#include <mln/debug/println.hh>
@@ -49,7 +49,7 @@
w.insert(make::dpoint2d(-1,-1));
w.insert(make::dpoint2d( 1, 1));
- image2d_b<bool> ima = convert::to_image(w);
+ image2d<bool> ima = convert::to_image(w);
debug::println(ima);
mln_assertion(w.delta() = 1);
Index: tests/w_window3d_int.cc
--- tests/w_window3d_int.cc (revision 1276)
+++ tests/w_window3d_int.cc (working copy)
@@ -64,7 +64,7 @@
3, 2, 3};
w_window3d_int w_win = make::w_window3d(ws);
- image3d_b<int> ima = convert::to_image(w_win);
+ image3d<int> ima = convert::to_image(w_win);
debug::println(ima);
std::cout << std::endl;
w_window3d_int w_win_2 = convert::to_w_window(ima);
@@ -77,7 +77,7 @@
// -3 -2 -1 0 +1
// -2 -1 0 +1 +2
// -1 0 +1 +2 +3
- image3d_b<int> ima = convert::to_image(w_win);
+ image3d<int> ima = convert::to_image(w_win);
debug::println(ima);
mln_assertion(estim::sum(ima) = 0);
}
Index: tests/io_pbm.cc
--- tests/io_pbm.cc (revision 1276)
+++ tests/io_pbm.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::pbm::load.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/io/pbm/load.hh>
#include <mln/io/pbm/save.hh>
@@ -39,9 +39,9 @@
{
using namespace mln;
- image2d_b< bool >
+ image2d< bool >
lena = io::pbm::load("../img/lena.pbm");
- image2d_b<bool> out(lena.domain());
+ image2d<bool> out(lena.domain());
//level::transform(lena, binarise(), out);
Index: tests/io_ppm.cc
--- tests/io_ppm.cc (revision 1276)
+++ tests/io_ppm.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::ppm::load.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/rgb8.hh>
@@ -46,7 +46,7 @@
using value::rgb8;
using value::int_u8;
- image2d_b<rgb8>
+ image2d<rgb8>
lena = io::ppm::load("../img/lena.ppm");
io::ppm::save(lena, "out.ppm");
Index: tests/main.cc
--- tests/main.cc (revision 1276)
+++ tests/main.cc (working copy)
@@ -27,7 +27,7 @@
#include <cmath>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/level/fill.hh>
#include <mln/debug/println.hh>
@@ -53,7 +53,7 @@
using namespace mln;
const unsigned size = 1000;
- image2d_b<value::int_u8> f(size, size);
+ image2d<value::int_u8> f(size, size);
morpho::Rd(f, f, c8());
}
@@ -72,7 +72,7 @@
// std::cout << c8() << std::endl;
// {
-// image2d_b<int> ima(b);
+// image2d<int> ima(b);
// level::fill(ima, 51);
// debug::println(ima);
@@ -86,12 +86,12 @@
// {
-// image2d_b<int> ima(b);
+// image2d<int> ima(b);
// level::fill(ima, cos_sin);
// debug::println(ima);
// std::cout << std::endl;
-// image2d_b<int> ima2 = morpho::erosion(ima, win);
+// image2d<int> ima2 = morpho::erosion(ima, win);
// debug::println(ima2);
// }
Index: tests/cast_image.cc
--- tests/cast_image.cc (revision 1276)
+++ tests/cast_image.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::cast_image.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/fun/p2b/chess.hh>
#include <mln/level/fill.hh>
#include <mln/debug/println.hh>
@@ -41,7 +41,7 @@
{
using namespace mln;
- image2d_b<bool> ima(8, 8);
+ image2d<bool> ima(8, 8);
level::fill(ima, fun::p2b::chess);
debug::println(ima);
debug::println( cast_image<int>(ima) );
Index: tests/linear_sobel._cc
--- tests/linear_sobel._cc (revision 1276)
+++ tests/linear_sobel._cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::linear::sobel.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/level/saturate.hh>
@@ -48,11 +48,11 @@
border::thickness = 1;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
- image2d_b<int> tmp(lena.domain());
+ image2d<int> tmp(lena.domain());
linear::sobel(lena, tmp);
level::saturate(tmp, out);
Index: tests/mesh_image.cc
--- tests/mesh_image.cc (revision 1276)
+++ tests/mesh_image.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::mesh_image.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/point2d.hh>
#include <mln/debug/println.hh>
#include <mln/util/graph.hh>
@@ -72,7 +72,7 @@
v.push_back (make::point2d (1,19));
- image2d_b<int> ima (20, 20, 1);
+ image2d<int> ima (20, 20, 1);
mesh_p<point2d> m(g, v);
Index: tests/pixter1d.cc
--- tests/pixter1d.cc (revision 1276)
+++ tests/pixter1d.cc (working copy)
@@ -25,12 +25,12 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/pixter1d_b.cc
+/*! \file tests/pixter1d.cc
*
- * \brief Tests on mln::fwd_pixter1d_b.
+ * \brief Tests on mln::fwd_pixter1d.
*/
-#include <mln/core/image1d_b.hh>
+#include <mln/core/image1d.hh>
const unsigned size = 20;
@@ -86,7 +86,7 @@
{
using namespace mln;
- typedef image1d_b<int> I;
+ typedef image1d<int> I;
I ima(size);
test_fill(ima);
Index: tests/pixter3d.cc
--- tests/pixter3d.cc (revision 1276)
+++ tests/pixter3d.cc (working copy)
@@ -25,12 +25,12 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/pixter3d_b.cc
+/*! \file tests/pixter3d.cc
*
- * \brief Tests on mln::fwd_pixter3d_b.
+ * \brief Tests on mln::fwd_pixter3d.
*/
-#include <mln/core/image3d_b.hh>
+#include <mln/core/image3d.hh>
const unsigned size = 5;
@@ -88,7 +88,7 @@
{
using namespace mln;
- typedef image3d_b<int> I;
+ typedef image3d<int> I;
I ima(size, size, size);
test_fill(ima);
Index: tests/morpho_thinning.cc
--- tests/morpho_thinning.cc (revision 1276)
+++ tests/morpho_thinning.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::thinning.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/win/rectangle2d.hh>
@@ -59,7 +59,7 @@
border::thickness = 2;
- image2d_b<int_u8>
+ image2d<int_u8>
pic = io::pgm::load("../img/picasso.pgm"),
out(pic.domain());
Index: tests/chamfer.cc
--- tests/chamfer.cc (revision 1276)
+++ tests/chamfer.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on all files in mln/geom/chamfer.hh .
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/sub_image.hh>
#include <mln/core/image_if_value.hh>
#include <mln/core/inplace.hh>
@@ -49,13 +49,13 @@
using namespace mln;
unsigned max = 51;
- image2d_b<bool> ima(9, 9);
+ image2d<bool> ima(9, 9);
{
level::fill(ima, false);
ima.at(4,4) = true;
const w_window2d_int& w_win = win_chamfer::mk_chamfer_3x3_int<2, 0> ();
- image2d_b<unsigned> out = geom::chamfer(ima, w_win, max);
+ image2d<unsigned> out = geom::chamfer(ima, w_win, max);
debug::println(out | value::interval(0, 8));
}
@@ -63,7 +63,7 @@
level::fill(ima, false);
ima.at(4,4) = true;
const w_window2d_int& w_win = win_chamfer::mk_chamfer_3x3_int<2, 3> ();
- image2d_b<unsigned> out = geom::chamfer(ima, w_win, max);
+ image2d<unsigned> out = geom::chamfer(ima, w_win, max);
debug::println(out | value::interval(0, 8));
}
@@ -71,8 +71,8 @@
level::fill(ima, false);
ima.at(4,4) = true;
const w_window2d_int& w_win = win_chamfer::mk_chamfer_5x5_int<4, 6, 9> ();
- image2d_b<unsigned> out = geom::chamfer(ima, w_win, max);
- image2d_b<unsigned>::fwd_piter p(out.domain());
+ image2d<unsigned> out = geom::chamfer(ima, w_win, max);
+ image2d<unsigned>::fwd_piter p(out.domain());
for_all(p)
out(p) = out(p) / 2;
debug::println(out | value::interval(0, 8));
Index: tests/morpho_laplacian.cc
--- tests/morpho_laplacian.cc (revision 1276)
+++ tests/morpho_laplacian.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::laplacian.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/io/pgm/load.hh>
@@ -53,11 +53,11 @@
win::rectangle2d rect(5, 5);
border::thickness = 2;
- image2d_b<int_u8> lena = io::pgm::load("../img/tiny.pgm");
- image2d_b<int> lap(lena.domain());
+ image2d<int_u8> lena = io::pgm::load("../img/tiny.pgm");
+ image2d<int> lap(lena.domain());
morpho::laplacian(lena, rect, lap);
- image2d_b< value::int_u_sat<8> > out(lena.domain());
+ image2d< value::int_u_sat<8> > out(lena.domain());
arith::plus_cst(lap, 128, out);
io::pgm::save(out, "out.pgm");
}
Index: tests/labeling_estimate.cc
--- tests/labeling_estimate.cc (revision 1276)
+++ tests/labeling_estimate.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::labeling::foreground.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/neighb2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/pw/all.hh>
@@ -46,7 +46,7 @@
using namespace mln;
using value::int_u8;
- image2d_b<int_u8> lena = io::pgm::load("../img/tiny.pgm"),
+ image2d<int_u8> lena = io::pgm::load("../img/tiny.pgm"),
out(lena.domain());
unsigned n;
Index: tests/level_fill.cc
--- tests/level_fill.cc (revision 1276)
+++ tests/level_fill.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::level::fill
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/sub_image.hh>
#include <mln/level/fill.hh>
@@ -49,21 +49,21 @@
// {
// const unsigned size = 3;
-// image2d_b<unsigned> ima(size, size);
+// image2d<unsigned> ima(size, size);
// level::fill(ima, u);
// debug::println(ima);
// }
{
const unsigned size = 10000;
- image2d_b<unsigned char> ima(size, size);
+ image2d<unsigned char> ima(size, size);
for (unsigned i = 0; i < 5; ++i)
level::fill(ima, uc);
}
// {
// // do *not* compile so that's great since ima is not mutable
-// sub_image< const image2d_b<int>, box2d > ima;
+// sub_image< const image2d<int>, box2d > ima;
// level::fill(ima, 0);
// }
Index: tests/pixel.cc
--- tests/pixel.cc (revision 1276)
+++ tests/pixel.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::pixel.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/pixel.hh>
#include <mln/metal/equal.hh>
@@ -39,7 +39,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
border::thickness = 0;
I ima(3, 3);
Index: tests/io_ppm16.cc
--- tests/io_ppm16.cc (revision 1276)
+++ tests/io_ppm16.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::pbm::load for 16bits ppm
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/value/rgb8.hh>
@@ -76,15 +76,15 @@
using value::rgb8;
using value::rgb16;
- typedef image2d_b<rgb8> I;
+ typedef image2d<rgb8> I;
// load a 8bits image A
- image2d_b<rgb8>
+ image2d<rgb8>
a = io::ppm::load<rgb8>("../img/lena.ppm");
- image2d_b<rgb16> b(a.domain());
+ image2d<rgb16> b(a.domain());
- image2d_b<rgb8>::fwd_piter p(b.domain());
+ image2d<rgb8>::fwd_piter p(b.domain());
// save it as a 16bits ppm image B
to16bits f;
@@ -93,9 +93,9 @@
io::ppm::save(b, "out16.ppm");
// reload B into C
- image2d_b<rgb16>
+ image2d<rgb16>
c = io::ppm::load<rgb16>("out16.ppm");
- image2d_b<rgb8> d(a.domain());
+ image2d<rgb8> d(a.domain());
// save C as a 8bits ppm image D
Index: tests/sub_image.cc
--- tests/sub_image.cc (revision 1276)
+++ tests/sub_image.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::sub_image.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/sub_image.hh>
#include <mln/core/inplace.hh>
@@ -42,7 +42,7 @@
{
using namespace mln;
- image2d_b<int> ima(8, 8);
+ image2d<int> ima(8, 8);
level::fill(ima, 0);
debug::println(ima);
Index: tests/debug_println.cc
--- tests/debug_println.cc (revision 1276)
+++ tests/debug_println.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::debug::println.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/level/fill.hh>
#include <mln/debug/println.hh>
@@ -40,7 +40,7 @@
int main()
{
- image2d_b<bool> msk(3, 3);
+ image2d<bool> msk(3, 3);
msk.at(1, 1) = true;
debug::println(msk);
}
Index: tests/level_median_fast.cc
--- tests/level_median_fast.cc (revision 1276)
+++ tests/level_median_fast.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::level::fast_median.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/io/pgm/load.hh>
@@ -82,7 +82,7 @@
// {
// win::rectangle2d rect(3, 3);
// border::thickness = 4;
-// image2d_b<int_u8> ima(3, 3);
+// image2d<int_u8> ima(3, 3);
// debug::iota(ima);
// debug::println(ima);
// test(ima, rect);
@@ -93,7 +93,7 @@
win::rectangle2d rect(51, 51);
border::thickness = 52;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
Index: tests/local_convolve.cc
--- tests/local_convolve.cc (revision 1276)
+++ tests/local_convolve.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::linear::local::convolve.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/w_window2d_int.hh>
@@ -51,7 +51,7 @@
const unsigned size = 3;
border::thickness = size - 1;
- image2d_b<int_u8> ima(size, size);
+ image2d<int_u8> ima(size, size);
debug::iota(ima);
point2d p = make::point2d(1,1);
@@ -65,7 +65,7 @@
}
{
- typedef image2d_b<int_u8> I;
+ typedef image2d<int_u8> I;
linear::local::convolve(pixel<const I>(ima, p), w_win, res);
linear::local::convolve(pixel<I>(ima, p), w_win, res);
}
Index: tests/stack.cc
--- tests/stack.cc (revision 1276)
+++ tests/stack.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::value::stack.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/stack.hh>
#include <mln/debug/iota.hh>
#include <mln/debug/println.hh>
@@ -40,10 +40,10 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
box2d b = make::box2d(2, 2);
- image2d_b<int> ima5(b), ima1(b);
+ image2d<int> ima5(b), ima1(b);
point2d p = make::point2d(0, 0);
metal::vec<2, int> v = make::vec(5, 1);
@@ -52,9 +52,9 @@
mln_assertion(value::stack(ima5, ima1)(p) = v);
mln_assertion(ima5(p) = 5 && ima1(p) = 1);
- value::stack_image<2, image2d_b<int> > s1(value::stack(ima5, ima1));
+ value::stack_image<2, image2d<int> > s1(value::stack(ima5, ima1));
- value::stack_image<2, image2d_b<int> > s2;
+ value::stack_image<2, image2d<int> > s2;
p = make::point2d(1, 1);
s2 = s1;
Index: tests/image1d.cc
--- tests/image1d.cc (revision 1276)
+++ tests/image1d.cc (working copy)
@@ -25,12 +25,12 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/image1d_b.cc
+/*! \file tests/image1d.cc
*
- * \brief Tests on mln::image1d_b.
+ * \brief Tests on mln::image1d.
*/
-#include <mln/core/image1d_b.hh>
+#include <mln/core/image1d.hh>
#include <mln/geom/size1d.hh>
@@ -41,7 +41,7 @@
const unsigned ninds = 1;
const unsigned border = 4;
- image1d_b<int> f(ninds, border);
+ image1d<int> f(ninds, border);
mln_assertion(f.npoints() = ninds);
mln_assertion(f.ncells() = (ninds + 2 * border));
Index: tests/image3d.cc
--- tests/image3d.cc (revision 1276)
+++ tests/image3d.cc (working copy)
@@ -25,12 +25,12 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/image3d_b.cc
+/*! \file tests/image3d.cc
*
- * \brief Tests on mln::image3d_b.
+ * \brief Tests on mln::image3d.
*/
-#include <mln/core/image3d_b.hh>
+#include <mln/core/image3d.hh>
#include <mln/geom/size3d.hh>
@@ -43,7 +43,7 @@
const unsigned ncols = 5;
const unsigned border = 4;
- image3d_b<int> f(nslis, nrows, ncols, border);
+ image3d<int> f(nslis, nrows, ncols, border);
mln_assertion(f.npoints() = geom::nslis(f) * geom::nrows(f) * geom::ncols(f));
mln_assertion(f.ncells() = ((nrows + 2 * border)
Index: tests/level_approx_median.cc
--- tests/level_approx_median.cc (revision 1276)
+++ tests/level_approx_median.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::level::approx::median.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/core/win/octagon2d.hh>
@@ -52,7 +52,7 @@
win::octagon2d oct(13);
border::thickness = 52;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
Index: tests/io_pgm27.cc
--- tests/io_pgm27.cc (revision 1276)
+++ tests/io_pgm27.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::pbm::load.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
@@ -72,18 +72,18 @@
using value::int_u;
typedef value::int_u<27> int_u27;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load<int_u8>("../img/lena.pgm");
- image2d_b<int_u27> out(lena.domain());
+ image2d<int_u27> out(lena.domain());
level::transform(lena, to27bits(), out);
io::pgm::save(out, "out27.pgm");
- image2d_b<int_u27> lena2;
+ image2d<int_u27> lena2;
io::pgm::load(lena2, "out27.pgm");
- image2d_b<int_u8> out2(lena.domain());
+ image2d<int_u8> out2(lena.domain());
level::transform(lena2, to8bits(), out2);
Index: tests/decorated_image.cc
--- tests/decorated_image.cc (revision 1276)
+++ tests/decorated_image.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::decorated_image.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/decorated_image.hh>
@@ -54,7 +54,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(1, 1);
point2d p = make::point2d(0, 0);
Index: tests/image_if.cc
--- tests/image_if.cc (revision 1276)
+++ tests/image_if.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::image_if.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/image_if.hh>
#include <mln/fun/p2b/chess.hh>
#include <mln/debug/println.hh>
@@ -40,7 +40,7 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
I ima(8, 8);
// debug::println(ima | fun::p2b::chess);
mln_assertion((ima | fun::p2b::chess).npoints() = 32);
Index: tests/value_float01.cc
--- tests/value_float01.cc (revision 1276)
+++ tests/value_float01.cc (working copy)
@@ -27,7 +27,7 @@
#include <iostream>
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/debug/iota.hh>
#include <mln/debug/println.hh>
@@ -120,12 +120,12 @@
{
std::cout << "convert" << std::endl;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load<int_u8>("../img/lena.pgm"),
ref(lena.domain());
- image2d_b<float01_16> out(lena.domain());
- image2d_b<float01_16> tmp(lena.domain());
+ image2d<float01_16> out(lena.domain());
+ image2d<float01_16> tmp(lena.domain());
level::transform(lena, tofloat01(), tmp);
Index: tests/line_convolve.cc
--- tests/line_convolve.cc (revision 1276)
+++ tests/line_convolve.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::linear::line_convolve.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/io/pgm/load.hh>
@@ -50,11 +50,11 @@
border::thickness = 4;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/lena.pgm"),
out(lena.domain());
- image2d_b<float> tmp(lena.domain());
+ image2d<float> tmp(lena.domain());
float ws[] = { .11, .11, .11, .11, .11, .11, .11, .11, .11 };
linear::line_convolve(lena, ws, tmp);
Index: tests/level_paste.cc
--- tests/level_paste.cc (revision 1276)
+++ tests/level_paste.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::level::fill
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/level/fill.hh>
#include <mln/level/paste.hh>
@@ -43,13 +43,13 @@
using namespace mln;
box2d b(make::point2d(1,2), make::point2d(2,4));
- image2d_b<int> ima(b, 2);
+ image2d<int> ima(b, 2);
debug::iota(ima);
debug::println(ima);
box2d b2(make::point2d(-1,-2), make::point2d(3,6));
- image2d_b<int> ima2(b2, 0);
+ image2d<int> ima2(b2, 0);
debug::iota(ima2);
debug::println(ima2);
Index: tests/linear_gaussian.cc
--- tests/linear_gaussian.cc (revision 1276)
+++ tests/linear_gaussian.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::linear::gaussian.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/value/int_u_sat.hh>
@@ -47,12 +47,12 @@
{
using namespace mln;
- image2d_b< value::int_u8 > lena = io::pgm::load("../img/lena.pgm");
+ image2d< value::int_u8 > lena = io::pgm::load("../img/lena.pgm");
- image2d_b<float> tmp(lena.domain());
+ image2d<float> tmp(lena.domain());
linear::gaussian(lena, 5.1f, tmp);
- image2d_b< value::int_u_sat<8> > out(lena.domain());
+ image2d< value::int_u_sat<8> > out(lena.domain());
level::transform(tmp, math::round<int>(), out);
io::pgm::save(out, "out.pgm");
}
Index: tests/trait_images.cc
--- tests/trait_images.cc (revision 1276)
+++ tests/trait_images.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::trait::images.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/sub_image.hh>
#include <mln/core/image_if.hh>
@@ -41,16 +41,16 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
- std::cout << "image2d_b: ";
+ std::cout << "image2d: ";
mln::trait::image::print<I>(std::cout);
std::cout << std::endl
- << "sub_image< image2d_b >: ";
+ << "sub_image< image2d >: ";
mln::trait::image::print< sub_image<I, box2d> >(std::cout);
std::cout << std::endl
- << "image_if< image2d_b >: ";
+ << "image_if< image2d >: ";
mln::trait::image::print< image_if<I, fun::p2b::chess_t> >(std::cout);
}
Index: tests/level_assign.cc
--- tests/level_assign.cc (revision 1276)
+++ tests/level_assign.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::level::assign.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/level/assign.hh>
#include <mln/level/compare.hh>
#include <mln/debug/iota.hh>
@@ -41,7 +41,7 @@
using namespace mln;
const unsigned size = 1000;
- image2d_b<int> rhs(size, size), lhs(rhs.domain());
+ image2d<int> rhs(size, size), lhs(rhs.domain());
debug::iota(rhs);
level::assign(lhs, rhs);
mln_assertion(lhs = rhs);
Index: tests/level_memset_.cc
--- tests/level_memset_.cc (revision 1276)
+++ tests/level_memset_.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::level::memset_.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/geom/ncols.hh>
#include <mln/level/fill.hh>
#include <mln/level/memset_.hh>
@@ -40,7 +40,7 @@
{
using namespace mln;
- image2d_b<int> ima(3, 3);
+ image2d<int> ima(3, 3);
level::fill(ima, 0);
int X = 9;
level::memset_(ima, make::point2d(0,0),
Index: tests/io_pgm16.cc
--- tests/io_pgm16.cc (revision 1276)
+++ tests/io_pgm16.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::io::pbm::load.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/value/int_u8.hh>
@@ -75,17 +75,17 @@
win::rectangle2d rect(51, 51);
border::thickness = 52;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load<int_u8>("../img/lena.pgm");
- image2d_b<int_u16> out(lena.domain());
+ image2d<int_u16> out(lena.domain());
level::transform(lena, to16bits(), out);
io::pgm::save(out, "out16.pgm");
- image2d_b<int_u16>
+ image2d<int_u16>
lena2 = io::pgm::load<int_u16>("out16.pgm");
- image2d_b<int_u8> out2(lena.domain());
+ image2d<int_u8> out2(lena.domain());
level::transform(lena2, to8bits(), out2);
Index: tests/morpho_contrast.cc
--- tests/morpho_contrast.cc (revision 1276)
+++ tests/morpho_contrast.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::contrast.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/io/pgm/load.hh>
@@ -53,11 +53,11 @@
win::rectangle2d rect(5, 5);
border::thickness = 2;
- image2d_b<int_u8>
+ image2d<int_u8>
lena = io::pgm::load("../img/tiny.pgm"),
out(lena.domain());
- image2d_b< value::int_s<10> >
+ image2d< value::int_s<10> >
in(lena.domain()),
tmp(lena.domain());
@@ -70,7 +70,7 @@
{
// self-duality test:
morpho::complementation_inplace(in);
- image2d_b< value::int_s<10> > tmp_(lena.domain());
+ image2d< value::int_s<10> > tmp_(lena.domain());
morpho::contrast(in, rect, tmp_);
morpho::complementation_inplace(tmp_);
mln_assertion(tmp_ = tmp);
Index: tests/pw_value.cc
--- tests/pw_value.cc (revision 1276)
+++ tests/pw_value.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::fun::pw_value_.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/fun/ops.hh>
#include <mln/pw/value.hh>
#include <mln/pw/cst.hh>
@@ -40,7 +40,7 @@
{
using namespace mln;
- image2d_b<int> ima(3, 3);
+ image2d<int> ima(3, 3);
point2d p = make::point2d(1, 1);
ima(p) = 51;
mln_assertion( (pw::value(ima) = pw::cst(51))(p) = true );
Index: tests/canvas_browsing_fwd.cc
--- tests/canvas_browsing_fwd.cc (revision 1276)
+++ tests/canvas_browsing_fwd.cc (working copy)
@@ -30,8 +30,8 @@
* \brief Tests on mln::canvas::browsing::fwd.
*/
-#include <mln/core/image2d_b.hh>
-#include <mln/core/image3d_b.hh>
+#include <mln/core/image2d.hh>
+#include <mln/core/image3d.hh>
#include <mln/canvas/browsing/fwd.hh>
#include <mln/canvas/browsing/snake_fwd.hh>
#include <mln/canvas/browsing/directional.hh>
@@ -98,8 +98,8 @@
int main()
{
using namespace mln;
- image2d_b<unsigned> ima2(3, 3);
- image3d_b<unsigned> ima3(3, 3, 3);
+ image2d<unsigned> ima2(3, 3);
+ image3d<unsigned> ima3(3, 3, 3);
my_test(ima2, fun::p2v::iota, canvas::browsing::fwd);
debug::println(ima2);
Index: tests/color_pretty.cc
--- tests/color_pretty.cc (revision 1276)
+++ tests/color_pretty.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::sub_image.
*/
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/io/pbm/load.hh>
# include <mln/make/win_chamfer.hh>
# include <mln/geom/chamfer.hh>
@@ -50,7 +50,7 @@
unsigned max = 51;
- image2d_b<bool> input = io::pbm::load("../img/toto.pbm");
+ image2d<bool> input = io::pbm::load("../img/toto.pbm");
// Create a weighted windows :
// 0 2 0
@@ -59,10 +59,10 @@
const w_window2d_int& w_win = win_chamfer::mk_chamfer_3x3_int<2, 0> ();
// Call chamfer for a distance image.
- image2d_b<unsigned> tmp = geom::chamfer(input, w_win, max);
+ image2d<unsigned> tmp = geom::chamfer(input, w_win, max);
// Call color_pretty for sub_image.
- image2d_b<value::rgb8> out = display::color_pretty(inplace (tmp | 4));
+ image2d<value::rgb8> out = display::color_pretty(inplace (tmp | 4));
// Save output image from color in out.ppm.
io::ppm::save(out, "out.ppm");
Index: tests/hexa.cc
--- tests/hexa.cc (revision 1276)
+++ tests/hexa.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::hexa
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/hexa.hh>
#include <mln/value/int_u8.hh>
@@ -42,7 +42,7 @@
using namespace mln;
using value::int_u8;
- typedef image2d_b<int_u8> I;
+ typedef image2d<int_u8> I;
I ima(3,3);
hexa<I> h(ima);
Index: tests/tr_image.cc
--- tests/tr_image.cc (revision 1276)
+++ tests/tr_image.cc (working copy)
@@ -25,15 +25,15 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/image2d_b.cc
+/*! \file tests/image2d.cc
*
- * \brief Tests on mln::image2d_b.
+ * \brief Tests on mln::image2d.
*/
#include <iostream>
#include <mln/fun/x2x/rotation.hh>
-#include <mln/core/image3d_b.hh>
+#include <mln/core/image3d.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/tr_image.hh>
#include <mln/debug/iota.hh>
@@ -44,21 +44,21 @@
using namespace mln;
using value::int_u8;
- image3d_b<int_u8> in(3, 3, 3);
- image3d_b<int_u8> out(in.domain());
+ image3d<int_u8> in(3, 3, 3);
+ image3d<int_u8> out(in.domain());
debug::iota(in);
debug::println(in);
fun::x2x::rotation<3,float> rot1(1.67, 0);
- tr_image<fun::x2x::rotation<3,float>, image3d_b<int_u8> > inter(in,
rot1);
+ tr_image<fun::x2x::rotation<3,float>, image3d<int_u8> > inter(in,
rot1);
- image3d_b<int_u8>::fwd_piter p(out.domain());
+ image3d<int_u8>::fwd_piter p(out.domain());
for_all(p)
{
- metal::vec<3,int> vec = (image3d_b<int_u8>::point)p;
+ metal::vec<3,int> vec = (image3d<int_u8>::point)p;
if (inter.has(vec))
out(p) = inter(vec);
else
Index: tests/morpho_dilation.cc
--- tests/morpho_dilation.cc (revision 1276)
+++ tests/morpho_dilation.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Test on mln::morpho::dilation.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/win/rectangle2d.hh>
#include <mln/core/win/octagon2d.hh>
#include <mln/core/win/diag2d.hh>
@@ -60,17 +60,17 @@
win::rectangle2d rec(21, 21);
border::thickness = 66;
- image2d_b<int_u8> lena = io::pgm::load("../img/lena.pgm");
+ image2d<int_u8> lena = io::pgm::load("../img/lena.pgm");
// {
-// image2d_b<int_u8> out(lena.domain());
+// image2d<int_u8> out(lena.domain());
// morpho::dilation(lena, rec, out);
// io::pgm::save(out, "out1.pgm");
// }
{
win::octagon2d oct(31);
- image2d_b<int_u8> out(lena.domain());
+ image2d<int_u8> out(lena.domain());
morpho::dilation(lena, oct, out);
io::pgm::save(out, "out2.pgm");
}
@@ -79,19 +79,19 @@
// vec_p<point2d> vec = convert::to_vec_p(rec, point2d::zero);
// window2d win = convert::to_window(vec);
-// image2d_b<int_u8> out(lena.domain());
+// image2d<int_u8> out(lena.domain());
// level::ero(lena, win, out);
// morpho::dilation(lena, win, out);
// io::pgm::save(out, "out.pgm");
// }
// {
-// image2d_b<bool> bin(lena.domain()), out(lena.domain());
+// image2d<bool> bin(lena.domain()), out(lena.domain());
// level::fill(bin, pw::value(lena) > pw::cst(127));
// morpho::dilation(bin, rec, out);
-// image2d_b<int_u8> test(lena.domain());
-// image2d_b<int_u8>::fwd_piter p(lena.domain());
+// image2d<int_u8> test(lena.domain());
+// image2d<int_u8>::fwd_piter p(lena.domain());
// for_all(p)
// test(p) = out(p) ? 255 : 0;
// io::pgm::save(test, "test.pgm");
Index: tests/trait_ch_value.cc
--- tests/trait_ch_value.cc (revision 1276)
+++ tests/trait_ch_value.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::trait::ch_value.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/trait/ch_value.hh>
@@ -38,6 +38,6 @@
{
using namespace mln;
- typedef image2d_b<int> I;
+ typedef image2d<int> I;
trait::ch_value<I, bool>::ret ima;
}
Index: tests/line_piter.cc
--- tests/line_piter.cc (revision 1276)
+++ tests/line_piter.cc (working copy)
@@ -30,7 +30,7 @@
* \brief Tests on mln::line_piter.
*/
-#include <mln/core/image2d_b.hh>
+#include <mln/core/image2d.hh>
#include <mln/core/line_piter.hh>
int main()
@@ -39,9 +39,9 @@
box2d b(make::point2d(1,2), make::point2d(5,8));
const unsigned border = 2;
- image2d_b<int> f(b, border);
+ image2d<int> f(b, border);
- image2d_b<int>::line_piter p(f.domain());
+ image2d<int>::line_piter p(f.domain());
for_all(p)
std::cout << p <<std::endl;
}
Index: mln/trait/image_from_mesh.hh
--- mln/trait/image_from_mesh.hh (revision 1276)
+++ mln/trait/image_from_mesh.hh (working copy)
@@ -45,9 +45,9 @@
// Fwd decls.
- template <typename T> struct image1d_b;
- template <typename T> struct image2d_b;
- template <typename T> struct image3d_b;
+ template <typename T> struct image1d;
+ template <typename T> struct image2d;
+ template <typename T> struct image3d;
namespace trait
@@ -58,19 +58,19 @@
template <typename V>
struct image_from_mesh< grid::tick, V >
{
- typedef image1d_b<V> ret;
+ typedef image1d<V> ret;
};
template <typename V>
struct image_from_mesh< grid::square, V >
{
- typedef image2d_b<V> ret;
+ typedef image2d<V> ret;
};
template <typename V>
struct image_from_mesh< grid::cube, V >
{
- typedef image3d_b<V> ret;
+ typedef image3d<V> ret;
};
Index: mln/trait/images.hh
--- mln/trait/images.hh (revision 1276)
+++ mln/trait/images.hh (working copy)
@@ -83,9 +83,9 @@
{
// Primitive types.
- template <typename T> struct image1d_b;
- template <typename T> struct image2d_b;
- template <typename T> struct image3d_b;
+ template <typename T> struct image1d;
+ template <typename T> struct image2d;
+ template <typename T> struct image3d;
namespace pw { template <typename F, typename S> struct image; }
template <typename P, typename T> class rle_image;
template <typename P, typename T> class sparse_image;
Index: mln/core/pixter1d.hh
--- mln/core/pixter1d.hh (revision 1276)
+++ mln/core/pixter1d.hh (working copy)
@@ -28,7 +28,7 @@
#ifndef MLN_CORE_PIXTER1D_B_HH
# define MLN_CORE_PIXTER1D_B_HH
-/*! \file mln/core/pixter1d_b.hh
+/*! \file mln/core/pixter1d.hh
*
* \brief Pixel iterator class on a image 1d with border.
*/
@@ -43,9 +43,9 @@
{
template <typename I>
- class fwd_pixter1d_b : public internal::pixel_iterator_base_< I,
fwd_pixter1d_b<I> >
+ class fwd_pixter1d : public internal::pixel_iterator_base_< I, fwd_pixter1d<I>
>
{
- typedef internal::pixel_iterator_base_< I, fwd_pixter1d_b<I> > super_;
+ typedef internal::pixel_iterator_base_< I, fwd_pixter1d<I> > super_;
public:
@@ -56,7 +56,7 @@
*
* \param[in] image Image to iterate over its pixels.
*/
- fwd_pixter1d_b(I& image);
+ fwd_pixter1d(I& image);
/// Go to the next pixel.
void next_();
@@ -64,13 +64,13 @@
};
- // FIXME: bkd_pixter1d_b
+ // FIXME: bkd_pixter1d
#ifndef MLN_INCLUDE_ONLY
template <typename I>
- fwd_pixter1d_b<I>::fwd_pixter1d_b(I& image) :
+ fwd_pixter1d<I>::fwd_pixter1d(I& image) :
super_(image)
{
mln_precondition(image.has_data());
@@ -78,7 +78,7 @@
template <typename I>
void
- fwd_pixter1d_b<I>::next_()
+ fwd_pixter1d<I>::next_()
{
++this->value_ptr_;
}
Index: mln/core/pixter2d.hh
--- mln/core/pixter2d.hh (revision 1276)
+++ mln/core/pixter2d.hh (working copy)
@@ -28,7 +28,7 @@
#ifndef MLN_CORE_PIXTER2D_B_HH
# define MLN_CORE_PIXTER2D_B_HH
-/*! \file mln/core/pixter2d_b.hh
+/*! \file mln/core/pixter2d.hh
*
* \brief Pixel iterator class on a image 2d with border.
*/
@@ -43,9 +43,9 @@
{
template <typename I>
- class fwd_pixter2d_b : public internal::pixel_iterator_base_< I,
fwd_pixter2d_b<I> >
+ class fwd_pixter2d : public internal::pixel_iterator_base_< I, fwd_pixter2d<I>
>
{
- typedef internal::pixel_iterator_base_< I, fwd_pixter2d_b<I> > super_;
+ typedef internal::pixel_iterator_base_< I, fwd_pixter2d<I> > super_;
public:
@@ -56,7 +56,7 @@
*
* \param[in] image Image to iterate over its pixels.
*/
- fwd_pixter2d_b(I& image);
+ fwd_pixter2d(I& image);
/// Go to the next pixel.
void next_();
@@ -76,9 +76,9 @@
template <typename I>
- class bkd_pixter2d_b : public internal::pixel_iterator_base_< I,
bkd_pixter2d_b<I> >
+ class bkd_pixter2d : public internal::pixel_iterator_base_< I, bkd_pixter2d<I>
>
{
- typedef internal::pixel_iterator_base_< I, bkd_pixter2d_b<I> > super_;
+ typedef internal::pixel_iterator_base_< I, bkd_pixter2d<I> > super_;
public:
@@ -89,7 +89,7 @@
*
* \param[in] image Image to iterate over its pixels.
*/
- bkd_pixter2d_b(I& image);
+ bkd_pixter2d(I& image);
/// Go to the next pixel.
void next_();
@@ -116,7 +116,7 @@
// Fwd.
template <typename I>
- fwd_pixter2d_b<I>::fwd_pixter2d_b(I& image) :
+ fwd_pixter2d<I>::fwd_pixter2d(I& image) :
super_(image)
{
mln_precondition(image.has_data());
@@ -127,7 +127,7 @@
template <typename I>
void
- fwd_pixter2d_b<I>::next_()
+ fwd_pixter2d<I>::next_()
{
++this->value_ptr_;
if (this->value_ptr_ = eor_ && this->value_ptr_ != this->eoi_)
@@ -140,7 +140,7 @@
// Bkd.
template <typename I>
- bkd_pixter2d_b<I>::bkd_pixter2d_b(I& image) :
+ bkd_pixter2d<I>::bkd_pixter2d(I& image) :
super_(image)
{
mln_precondition(image.has_data());
@@ -151,7 +151,7 @@
template <typename I>
void
- bkd_pixter2d_b<I>::next_()
+ bkd_pixter2d<I>::next_()
{
--this->value_ptr_;
if (this->value_ptr_ = bor_ && this->value_ptr_ != this->boi_)
@@ -163,7 +163,7 @@
template <typename I>
void
- bkd_pixter2d_b<I>::start()
+ bkd_pixter2d<I>::start()
{
this->value_ptr_ = this->eoi_ - 1;
}
Index: mln/core/pixter3d.hh
--- mln/core/pixter3d.hh (revision 1276)
+++ mln/core/pixter3d.hh (working copy)
@@ -28,7 +28,7 @@
#ifndef MLN_CORE_PIXTER3D_B_HH
# define MLN_CORE_PIXTER3D_B_HH
-/*! \file mln/core/pixter3d_b.hh
+/*! \file mln/core/pixter3d.hh
*
* \brief Pixel iterator class on a image 3d with border.
*/
@@ -43,9 +43,9 @@
{
template <typename I>
- class fwd_pixter3d_b : public internal::pixel_iterator_base_< I,
fwd_pixter3d_b<I> >
+ class fwd_pixter3d : public internal::pixel_iterator_base_< I, fwd_pixter3d<I>
>
{
- typedef internal::pixel_iterator_base_< I, fwd_pixter3d_b<I> > super_;
+ typedef internal::pixel_iterator_base_< I, fwd_pixter3d<I> > super_;
public:
@@ -56,7 +56,7 @@
*
* \param[in] image Image to iterate over its pixels.
*/
- fwd_pixter3d_b(I& image);
+ fwd_pixter3d(I& image);
/// Go to the next pixel.
void next_();
@@ -86,13 +86,13 @@
};
- // FIXME: bkd_pixter3d_b
+ // FIXME: bkd_pixter3d
#ifndef MLN_INCLUDE_ONLY
template <typename I>
- fwd_pixter3d_b<I>::fwd_pixter3d_b(I& image) :
+ fwd_pixter3d<I>::fwd_pixter3d(I& image) :
super_(image)
{
mln_precondition(image.has_data());
@@ -107,7 +107,7 @@
template <typename I>
void
- fwd_pixter3d_b<I>::next_()
+ fwd_pixter3d<I>::next_()
{
++this->value_ptr_;
if (this->value_ptr_ = eor_ && this->value_ptr_ != this->eoi_)
Index: mln/core/image1d.hh
--- mln/core/image1d.hh (revision 1276)
+++ mln/core/image1d.hh (working copy)
@@ -28,9 +28,9 @@
#ifndef MLN_CORE_IMAGE1D_B_HH
# define MLN_CORE_IMAGE1D_B_HH
-/*! \file mln/core/image1d_b.hh
+/*! \file mln/core/image1d.hh
*
- * \brief Definition of the basic mln::image1d_b class.
+ * \brief Definition of the basic mln::image1d class.
*/
# include <mln/core/internal/fixme.hh>
@@ -45,7 +45,7 @@
// FIXME:
-// # include <mln/core/pixter1d_b.hh>
+// # include <mln/core/pixter1d.hh>
// # include <mln/core/dpoints_pixter.hh>
@@ -53,15 +53,15 @@
{
// Fwd decl.
- template <typename T> struct image1d_b;
+ template <typename T> struct image1d;
namespace internal
{
- /// Data structure for mln::image1d_b<T>.
+ /// Data structure for mln::image1d<T>.
template <typename T>
- struct data_< image1d_b<T> >
+ struct data_< image1d<T> >
{
data_(const box1d& b, unsigned bdr);
~data_();
@@ -86,7 +86,7 @@
{
template <typename T>
- struct image_< image1d_b<T> > : default_image_< T, image1d_b<T>
>
+ struct image_< image1d<T> > : default_image_< T, image1d<T>
>
{
typedef trait::image::category::primary category;
@@ -112,7 +112,7 @@
* thickness before and after data.
*/
template <typename T>
- struct image1d_b : public internal::image_primary_< box1d, image1d_b<T> >
+ struct image1d : public internal::image_primary_< box1d, image1d<T> >
{
// Warning: just to make effective types appear in Doxygen:
typedef box1d pset;
@@ -136,7 +136,7 @@
/// Skeleton.
- typedef image1d_b< tag::value_<T> > skeleton;
+ typedef image1d< tag::value_<T> > skeleton;
/// Value_Set associated type.
@@ -144,14 +144,14 @@
/// Constructor without argument.
- image1d_b();
+ image1d();
/// Constructor with the number of indices and the border
/// thickness.
- image1d_b(unsigned ninds, unsigned bdr = border::thickness);
+ image1d(unsigned ninds, unsigned bdr = border::thickness);
/// Constructor with a box and the border thickness.
- image1d_b(const box1d& b, unsigned bdr = border::thickness);
+ image1d(const box1d& b, unsigned bdr = border::thickness);
/// Initialize an empty image.
@@ -208,19 +208,19 @@
};
template <typename T, typename J>
- void init_(tag::image_t, mln::image1d_b<T>& target, const J& model);
+ void init_(tag::image_t, mln::image1d<T>& target, const J& model);
# ifndef MLN_INCLUDE_ONLY
// init_
template <typename T>
- void init_(tag::border_t, unsigned& b, const image1d_b<T>& model)
+ void init_(tag::border_t, unsigned& b, const image1d<T>& model)
{
b = model.border();
}
template <typename T, typename J>
- void init_(tag::image_t, image1d_b<T>& target, const J& model)
+ void init_(tag::image_t, image1d<T>& target, const J& model)
{
box1d b;
init_(tag::bbox, b, model);
@@ -229,13 +229,13 @@
target.init_(b, bdr);
}
- // internal::data_< image1d_b<T> >
+ // internal::data_< image1d<T> >
namespace internal
{
template <typename T>
- data_< image1d_b<T> >::data_(const box1d& b, unsigned bdr)
+ data_< image1d<T> >::data_(const box1d& b, unsigned bdr)
: buffer_(0),
array_ (0),
b_ (b),
@@ -245,14 +245,14 @@
}
template <typename T>
- data_< image1d_b<T> >::~data_()
+ data_< image1d<T> >::~data_()
{
deallocate_();
}
template <typename T>
void
- data_< image1d_b<T> >::update_vb_()
+ data_< image1d<T> >::update_vb_()
{
vb_.pmin() = b_.pmin() - dpoint1d(all(bdr_));
vb_.pmax() = b_.pmax() + dpoint1d(all(bdr_));
@@ -260,7 +260,7 @@
template <typename T>
void
- data_< image1d_b<T> >::allocate_()
+ data_< image1d<T> >::allocate_()
{
update_vb_();
unsigned
@@ -272,7 +272,7 @@
template <typename T>
void
- data_< image1d_b<T> >::deallocate_()
+ data_< image1d<T> >::deallocate_()
{
if (buffer_)
{
@@ -284,21 +284,21 @@
} // end of namespace mln::internal
- // image1d_b<T>
+ // image1d<T>
template <typename T>
- image1d_b<T>::image1d_b()
+ image1d<T>::image1d()
{
}
template <typename T>
- image1d_b<T>::image1d_b(const box1d& b, unsigned bdr)
+ image1d<T>::image1d(const box1d& b, unsigned bdr)
{
init_(b, bdr);
}
template <typename T>
- image1d_b<T>::image1d_b(unsigned ninds, unsigned bdr)
+ image1d<T>::image1d(unsigned ninds, unsigned bdr)
{
mln_precondition(ninds != 0);
init_(make::box1d(ninds), bdr);
@@ -306,22 +306,22 @@
template <typename T>
void
- image1d_b<T>::init_(const box1d& b, unsigned bdr)
+ image1d<T>::init_(const box1d& b, unsigned bdr)
{
mln_precondition(! this->has_data());
- this->data_ = new internal::data_< image1d_b<T> >(b, bdr);
+ this->data_ = new internal::data_< image1d<T> >(b, bdr);
}
template <typename T>
- const typename image1d_b<T>::vset&
- image1d_b<T>::values() const
+ const typename image1d<T>::vset&
+ image1d<T>::values() const
{
return vset::the();
}
template <typename T>
const box1d&
- image1d_b<T>::domain() const
+ image1d<T>::domain() const
{
mln_precondition(this->has_data());
return this->data_->b_;
@@ -329,7 +329,7 @@
template <typename T>
unsigned
- image1d_b<T>::border() const
+ image1d<T>::border() const
{
mln_precondition(this->has_data());
return this->data_->bdr_;
@@ -337,7 +337,7 @@
template <typename T>
std::size_t
- image1d_b<T>::ncells() const
+ image1d<T>::ncells() const
{
mln_precondition(this->has_data());
return this->data_->vb_.npoints();
@@ -345,7 +345,7 @@
template <typename T>
bool
- image1d_b<T>::owns_(const point1d& p) const
+ image1d<T>::owns_(const point1d& p) const
{
mln_precondition(this->has_data());
return this->data_->vb_.has(p);
@@ -353,7 +353,7 @@
template <typename T>
const T&
- image1d_b<T>::operator()(const point1d& p) const
+ image1d<T>::operator()(const point1d& p) const
{
mln_precondition(this->owns_(p));
return this->data_->array_[p.ind()];
@@ -361,7 +361,7 @@
template <typename T>
T&
- image1d_b<T>::operator()(const point1d& p)
+ image1d<T>::operator()(const point1d& p)
{
mln_precondition(this->owns_(p));
return this->data_->array_[p.ind()];
@@ -369,7 +369,7 @@
template <typename T>
const T&
- image1d_b<T>::operator[](unsigned o) const
+ image1d<T>::operator[](unsigned o) const
{
mln_precondition(o < ncells());
return *(this->data_->buffer_ + o);
@@ -377,7 +377,7 @@
template <typename T>
T&
- image1d_b<T>::operator[](unsigned o)
+ image1d<T>::operator[](unsigned o)
{
mln_precondition(o < ncells());
return *(this->data_->buffer_ + o);
@@ -385,7 +385,7 @@
template <typename T>
const T&
- image1d_b<T>::at(int ind) const
+ image1d<T>::at(int ind) const
{
mln_precondition(this->owns_(make::point1d(ind)));
return this->data_->array_[ind];
@@ -393,7 +393,7 @@
template <typename T>
T&
- image1d_b<T>::at(int ind)
+ image1d<T>::at(int ind)
{
mln_precondition(this->owns_(make::point1d(ind)));
return this->data_->array_[ind];
@@ -401,7 +401,7 @@
template <typename T>
const T*
- image1d_b<T>::buffer() const
+ image1d<T>::buffer() const
{
mln_precondition(this->has_data());
return this->data_->buffer_;
@@ -409,7 +409,7 @@
template <typename T>
T*
- image1d_b<T>::buffer()
+ image1d<T>::buffer()
{
mln_precondition(this->has_data());
return this->data_->buffer_;
@@ -417,7 +417,7 @@
template <typename T>
int
- image1d_b<T>::offset(const dpoint1d& dp) const
+ image1d<T>::offset(const dpoint1d& dp) const
{
mln_precondition(this->has_data());
int o = dp[0];
@@ -426,7 +426,7 @@
template <typename T>
point1d
- image1d_b<T>::point_at_offset(unsigned o) const
+ image1d<T>::point_at_offset(unsigned o) const
{
mln_precondition(o < ncells());
point1d p = make::point1d(o + this->data_->vb_.min_ind());
@@ -442,7 +442,7 @@
# include <mln/core/trait/pixter.hh>
# include <mln/core/dpoints_pixter.hh>
-# include <mln/core/pixter1d_b.hh>
+# include <mln/core/pixter1d.hh>
# include <mln/core/w_window.hh>
@@ -455,19 +455,19 @@
// pixter
template <typename T>
- struct fwd_pixter< image1d_b<T> >
+ struct fwd_pixter< image1d<T> >
{
- typedef fwd_pixter1d_b< image1d_b<T> > ret;
+ typedef fwd_pixter1d< image1d<T> > ret;
};
template <typename T>
- struct fwd_pixter< const image1d_b<T> >
+ struct fwd_pixter< const image1d<T> >
{
- typedef fwd_pixter1d_b< const image1d_b<T> > ret;
+ typedef fwd_pixter1d< const image1d<T> > ret;
};
template <typename T>
- struct bkd_pixter< image1d_b<T> >
+ struct bkd_pixter< image1d<T> >
{
typedef mln::internal::fixme ret;
};
@@ -475,19 +475,19 @@
// qixter
template <typename T, typename W>
- struct fwd_qixter< image1d_b<T>, W >
+ struct fwd_qixter< image1d<T>, W >
{
- typedef dpoints_fwd_pixter< image1d_b<T> > ret;
+ typedef dpoints_fwd_pixter< image1d<T> > ret;
};
template <typename T, typename W>
- struct fwd_qixter< const image1d_b<T>, W >
+ struct fwd_qixter< const image1d<T>, W >
{
- typedef dpoints_fwd_pixter< const image1d_b<T> > ret;
+ typedef dpoints_fwd_pixter< const image1d<T> > ret;
};
template <typename T, typename W>
- struct bkd_qixter< image1d_b<T>, W >
+ struct bkd_qixter< image1d<T>, W >
{
typedef mln::internal::fixme ret;
};
Index: mln/core/image2d.hh
--- mln/core/image2d.hh (revision 1276)
+++ mln/core/image2d.hh (working copy)
@@ -28,9 +28,9 @@
#ifndef MLN_CORE_IMAGE2D_B_HH
# define MLN_CORE_IMAGE2D_B_HH
-/*! \file mln/core/image2d_b.hh
+/*! \file mln/core/image2d.hh
*
- * \brief Definition of the basic mln::image2d_b class.
+ * \brief Definition of the basic mln::image2d class.
*/
# include <mln/core/internal/image_primary.hh>
@@ -45,7 +45,7 @@
// FIXME:
-// # include <mln/core/pixter2d_b.hh>
+// # include <mln/core/pixter2d.hh>
// # include <mln/core/dpoints_pixter.hh>
@@ -53,7 +53,7 @@
{
// Fwd decl.
- template <typename T> struct image2d_b;
+ template <typename T> struct image2d;
@@ -61,7 +61,7 @@
{
template <typename T>
- struct data_< image2d_b<T> >
+ struct data_< image2d<T> >
{
data_(const box2d& b, unsigned bdr);
~data_();
@@ -85,7 +85,7 @@
{
template <typename T>
- struct image_< image2d_b<T> > : default_image_< T, image2d_b<T>
>
+ struct image_< image2d<T> > : default_image_< T, image2d<T>
>
{
typedef trait::image::category::primary category;
@@ -111,7 +111,7 @@
* thickness around data.
*/
template <typename T>
- struct image2d_b : public internal::image_primary_< box2d, image2d_b<T> >
+ struct image2d : public internal::image_primary_< box2d, image2d<T> >
{
// Warning: just to make effective types appear in Doxygen:
typedef box2d pset;
@@ -135,7 +135,7 @@
/// Skeleton.
- typedef image2d_b< tag::value_<T> > skeleton;
+ typedef image2d< tag::value_<T> > skeleton;
/// Value_Set associated type.
@@ -143,15 +143,15 @@
/// Constructor without argument.
- image2d_b();
+ image2d();
/// Constructor with the numbers of rows and columns and the
/// border thickness.
- image2d_b(int nrows, int ncols, unsigned bdr = border::thickness);
+ image2d(int nrows, int ncols, unsigned bdr = border::thickness);
/// Constructor with a box and the border thickness (default is
/// 3).
- image2d_b(const box2d& b, unsigned bdr = border::thickness);
+ image2d(const box2d& b, unsigned bdr = border::thickness);
/// Initialize an empty image.
@@ -212,10 +212,10 @@
// Fwd decl.
template <typename T>
- void init_(tag::border_t, unsigned& bdr, const image2d_b<T>& model);
+ void init_(tag::border_t, unsigned& bdr, const image2d<T>& model);
template <typename T, typename J>
- void init_(tag::image_t, mln::image2d_b<T>& target, const J& model);
+ void init_(tag::image_t, mln::image2d<T>& target, const J& model);
@@ -224,13 +224,13 @@
// init_
template <typename T>
- void init_(tag::border_t, unsigned& bdr, const image2d_b<T>& model)
+ void init_(tag::border_t, unsigned& bdr, const image2d<T>& model)
{
bdr = model.border();
}
template <typename T, typename J>
- void init_(tag::image_t, image2d_b<T>& target, const J& model)
+ void init_(tag::image_t, image2d<T>& target, const J& model)
{
box2d b;
init_(tag::bbox, b, model);
@@ -240,13 +240,13 @@
}
- // internal::data_< image2d_b<T> >
+ // internal::data_< image2d<T> >
namespace internal
{
template <typename T>
- data_< image2d_b<T> >::data_(const box2d& b, unsigned bdr)
+ data_< image2d<T> >::data_(const box2d& b, unsigned bdr)
: buffer_(0),
array_ (0),
b_ (b),
@@ -256,14 +256,14 @@
}
template <typename T>
- data_< image2d_b<T> >::~data_()
+ data_< image2d<T> >::~data_()
{
deallocate_();
}
template <typename T>
void
- data_< image2d_b<T> >::update_vb_()
+ data_< image2d<T> >::update_vb_()
{
vb_.pmin() = b_.pmin() - dpoint2d(all(bdr_));
vb_.pmax() = b_.pmax() + dpoint2d(all(bdr_));
@@ -271,7 +271,7 @@
template <typename T>
void
- data_< image2d_b<T> >::allocate_()
+ data_< image2d<T> >::allocate_()
{
update_vb_();
unsigned
@@ -292,7 +292,7 @@
template <typename T>
void
- data_< image2d_b<T> >::deallocate_()
+ data_< image2d<T> >::deallocate_()
{
if (buffer_)
{
@@ -310,43 +310,43 @@
} // end of namespace mln::internal
- // image2d_b<T>
+ // image2d<T>
template <typename T>
- image2d_b<T>::image2d_b()
+ image2d<T>::image2d()
{
}
template <typename T>
- image2d_b<T>::image2d_b(int nrows, int ncols, unsigned bdr)
+ image2d<T>::image2d(int nrows, int ncols, unsigned bdr)
{
init_(make::box2d(nrows, ncols), bdr);
}
template <typename T>
- image2d_b<T>::image2d_b(const box2d& b, unsigned bdr)
+ image2d<T>::image2d(const box2d& b, unsigned bdr)
{
init_(b, bdr);
}
template <typename T>
void
- image2d_b<T>::init_(const box2d& b, unsigned bdr)
+ image2d<T>::init_(const box2d& b, unsigned bdr)
{
mln_precondition(! this->has_data());
- this->data_ = new internal::data_< image2d_b<T> >(b, bdr);
+ this->data_ = new internal::data_< image2d<T> >(b, bdr);
}
template <typename T>
- const typename image2d_b<T>::vset&
- image2d_b<T>::values() const
+ const typename image2d<T>::vset&
+ image2d<T>::values() const
{
return vset::the();
}
template <typename T>
const box2d&
- image2d_b<T>::domain() const
+ image2d<T>::domain() const
{
mln_precondition(this->has_data());
return this->data_->b_;
@@ -354,7 +354,7 @@
template <typename T>
unsigned
- image2d_b<T>::border() const
+ image2d<T>::border() const
{
mln_precondition(this->has_data());
return this->data_->bdr_;
@@ -362,7 +362,7 @@
template <typename T>
std::size_t
- image2d_b<T>::ncells() const
+ image2d<T>::ncells() const
{
mln_precondition(this->has_data());
return this->data_->vb_.npoints();
@@ -370,7 +370,7 @@
template <typename T>
bool
- image2d_b<T>::owns_(const point2d& p) const
+ image2d<T>::owns_(const point2d& p) const
{
mln_precondition(this->has_data());
return this->data_->vb_.has(p);
@@ -378,7 +378,7 @@
template <typename T>
const T&
- image2d_b<T>::operator()(const point2d& p) const
+ image2d<T>::operator()(const point2d& p) const
{
mln_precondition(this->owns_(p));
return this->data_->array_[p.row()][p.col()];
@@ -386,7 +386,7 @@
template <typename T>
T&
- image2d_b<T>::operator()(const point2d& p)
+ image2d<T>::operator()(const point2d& p)
{
mln_precondition(this->owns_(p));
return this->data_->array_[p.row()][p.col()];
@@ -394,7 +394,7 @@
template <typename T>
const T&
- image2d_b<T>::operator[](unsigned o) const
+ image2d<T>::operator[](unsigned o) const
{
mln_precondition(o < ncells());
return *(this->data_->buffer_ + o);
@@ -402,7 +402,7 @@
template <typename T>
T&
- image2d_b<T>::operator[](unsigned o)
+ image2d<T>::operator[](unsigned o)
{
mln_precondition(o < ncells());
return *(this->data_->buffer_ + o);
@@ -410,7 +410,7 @@
template <typename T>
const T&
- image2d_b<T>::at(int row, int col) const
+ image2d<T>::at(int row, int col) const
{
mln_precondition(this->owns_(make::point2d(row, col)));
return this->data_->array_[row][col];
@@ -418,7 +418,7 @@
template <typename T>
T&
- image2d_b<T>::at(int row, int col)
+ image2d<T>::at(int row, int col)
{
mln_precondition(this->owns_(make::point2d(row, col)));
return this->data_->array_[row][col];
@@ -426,7 +426,7 @@
template <typename T>
const T*
- image2d_b<T>::buffer() const
+ image2d<T>::buffer() const
{
mln_precondition(this->has_data());
return this->data_->buffer_;
@@ -434,7 +434,7 @@
template <typename T>
T*
- image2d_b<T>::buffer()
+ image2d<T>::buffer()
{
mln_precondition(this->has_data());
return this->data_->buffer_;
@@ -442,7 +442,7 @@
template <typename T>
int
- image2d_b<T>::offset(const dpoint2d& dp) const
+ image2d<T>::offset(const dpoint2d& dp) const
{
mln_precondition(this->has_data());
int o = dp[0] * this->data_->vb_.len(1) + dp[1];
@@ -451,7 +451,7 @@
template <typename T>
point2d
- image2d_b<T>::point_at_offset(unsigned o) const
+ image2d<T>::point_at_offset(unsigned o) const
{
mln_precondition(o < ncells());
point2d p = make::point2d(o / this->data_->vb_.len(1) +
this->data_->vb_.min_row(),
@@ -468,7 +468,7 @@
# include <mln/core/trait/pixter.hh>
# include <mln/core/dpoints_pixter.hh>
-# include <mln/core/pixter2d_b.hh>
+# include <mln/core/pixter2d.hh>
# include <mln/core/w_window.hh>
@@ -481,45 +481,45 @@
// pixter
template <typename T>
- struct fwd_pixter< image2d_b<T> >
+ struct fwd_pixter< image2d<T> >
{
- typedef fwd_pixter2d_b< image2d_b<T> > ret;
+ typedef fwd_pixter2d< image2d<T> > ret;
};
template <typename T>
- struct fwd_pixter< const image2d_b<T> >
+ struct fwd_pixter< const image2d<T> >
{
- typedef fwd_pixter2d_b< const image2d_b<T> > ret;
+ typedef fwd_pixter2d< const image2d<T> > ret;
};
template <typename T>
- struct bkd_pixter< image2d_b<T> >
+ struct bkd_pixter< image2d<T> >
{
- typedef bkd_pixter2d_b< image2d_b<T> > ret;
+ typedef bkd_pixter2d< image2d<T> > ret;
};
template <typename T>
- struct bkd_pixter< const image2d_b<T> >
+ struct bkd_pixter< const image2d<T> >
{
- typedef bkd_pixter2d_b< const image2d_b<T> > ret;
+ typedef bkd_pixter2d< const image2d<T> > ret;
};
// qixter
template <typename T, typename W>
- struct fwd_qixter< image2d_b<T>, W >
+ struct fwd_qixter< image2d<T>, W >
{
- typedef dpoints_fwd_pixter< image2d_b<T> > ret;
+ typedef dpoints_fwd_pixter< image2d<T> > ret;
};
template <typename T, typename W>
- struct fwd_qixter< const image2d_b<T>, W >
+ struct fwd_qixter< const image2d<T>, W >
{
- typedef dpoints_fwd_pixter< const image2d_b<T> > ret;
+ typedef dpoints_fwd_pixter< const image2d<T> > ret;
};
template <typename T, typename W>
- struct bkd_qixter< image2d_b<T>, W >
+ struct bkd_qixter< image2d<T>, W >
{
typedef mln::internal::fixme ret;
};
@@ -527,19 +527,19 @@
// nixter
template <typename T, typename N>
- struct fwd_nixter< image2d_b<T>, N >
+ struct fwd_nixter< image2d<T>, N >
{
- typedef dpoints_fwd_pixter< image2d_b<T> > ret;
+ typedef dpoints_fwd_pixter< image2d<T> > ret;
};
template <typename T, typename N>
- struct fwd_nixter< const image2d_b<T>, N >
+ struct fwd_nixter< const image2d<T>, N >
{
- typedef dpoints_fwd_pixter< const image2d_b<T> > ret;
+ typedef dpoints_fwd_pixter< const image2d<T> > ret;
};
template <typename T, typename N>
- struct bkd_nixter< image2d_b<T>, N >
+ struct bkd_nixter< image2d<T>, N >
{
typedef mln::internal::fixme ret;
};
Index: mln/core/image3d.hh
--- mln/core/image3d.hh (revision 1276)
+++ mln/core/image3d.hh (working copy)
@@ -28,9 +28,9 @@
#ifndef MLN_CORE_IMAGE3D_B_HH
# define MLN_CORE_IMAGE3D_B_HH
-/*! \file mln/core/image3d_b.hh
+/*! \file mln/core/image3d.hh
*
- * \brief Definition of the basic mln::image3d_b class.
+ * \brief Definition of the basic mln::image3d class.
*/
# include <mln/core/internal/fixme.hh>
@@ -45,7 +45,7 @@
// FIXME:
-// # include <mln/core/pixter3d_b.hh>
+// # include <mln/core/pixter3d.hh>
// # include <mln/core/dpoints_pixter.hh>
@@ -53,7 +53,7 @@
{
// Fwd decl.
- template <typename T> struct image3d_b;
+ template <typename T> struct image3d;
@@ -61,7 +61,7 @@
{
template <typename T>
- struct data_< image3d_b<T> >
+ struct data_< image3d<T> >
{
data_(const box3d& b, unsigned bdr);
~data_();
@@ -87,7 +87,7 @@
{
template <typename T>
- struct image_< image3d_b<T> > : default_image_< T, image3d_b<T>
>
+ struct image_< image3d<T> > : default_image_< T, image3d<T>
>
{
typedef trait::image::category::primary category;
@@ -113,7 +113,7 @@
* thickness around data.
*/
template <typename T>
- struct image3d_b : public internal::image_primary_< box3d, image3d_b<T> >
+ struct image3d : public internal::image_primary_< box3d, image3d<T> >
{
// Warning: just to make effective types appear in Doxygen:
typedef box3d pset;
@@ -127,7 +127,7 @@
/// Super type
- typedef internal::image_primary_< box3d, image3d_b<T> > super_;
+ typedef internal::image_primary_< box3d, image3d<T> > super_;
/// Value associated type.
typedef T value;
@@ -140,7 +140,7 @@
/// Skeleton.
- typedef image3d_b< tag::value_<T> > skeleton;
+ typedef image3d< tag::value_<T> > skeleton;
/// Value_Set associated type.
@@ -148,15 +148,15 @@
/// Constructor without argument.
- image3d_b();
+ image3d();
/// Constructor with a box and the border thickness (default is
/// 3).
- image3d_b(const box3d& b, unsigned bdr = border::thickness);
+ image3d(const box3d& b, unsigned bdr = border::thickness);
/// Constructor with the numbers of indexes and the
/// border thickness.
- image3d_b(int nslis, int nrows, int ncols, unsigned bdr = border::thickness);
+ image3d(int nslis, int nrows, int ncols, unsigned bdr = border::thickness);
/// Initialize an empty image.
@@ -216,7 +216,7 @@
};
template <typename T, typename J>
- void init_(tag::image_t, mln::image3d_b<T>& target, const J& model);
+ void init_(tag::image_t, mln::image3d<T>& target, const J& model);
@@ -225,13 +225,13 @@
// init_
template <typename T>
- void init_(tag::border_t, unsigned& b, const image3d_b<T>& model)
+ void init_(tag::border_t, unsigned& b, const image3d<T>& model)
{
b = model.border();
}
template <typename T, typename J>
- void init_(tag::image_t, image3d_b<T>& target, const J& model)
+ void init_(tag::image_t, image3d<T>& target, const J& model)
{
box3d b;
init_(tag::bbox, b, model);
@@ -241,13 +241,13 @@
}
- // internal::data_< image3d_b<T> >
+ // internal::data_< image3d<T> >
namespace internal
{
template <typename T>
- data_< image3d_b<T> >::data_(const box3d& b, unsigned bdr)
+ data_< image3d<T> >::data_(const box3d& b, unsigned bdr)
: buffer_(0),
array_ (0),
b_ (b),
@@ -257,14 +257,14 @@
}
template <typename T>
- data_< image3d_b<T> >::~data_()
+ data_< image3d<T> >::~data_()
{
deallocate_();
}
template <typename T>
void
- data_< image3d_b<T> >::update_vb_()
+ data_< image3d<T> >::update_vb_()
{
vb_.pmin() = b_.pmin() - dpoint3d(all(bdr_));
vb_.pmax() = b_.pmax() + dpoint3d(all(bdr_));
@@ -272,7 +272,7 @@
template <typename T>
void
- data_< image3d_b<T> >::allocate_()
+ data_< image3d<T> >::allocate_()
{
update_vb_();
unsigned
@@ -299,7 +299,7 @@
template <typename T>
void
- data_< image3d_b<T> >::deallocate_()
+ data_< image3d<T> >::deallocate_()
{
if (buffer_)
{
@@ -325,43 +325,43 @@
} // end of namespace mln::internal
- // image3d_b<T>
+ // image3d<T>
template <typename T>
- image3d_b<T>::image3d_b()
+ image3d<T>::image3d()
{
}
template <typename T>
- image3d_b<T>::image3d_b(const box3d& b, unsigned bdr)
+ image3d<T>::image3d(const box3d& b, unsigned bdr)
{
init_(b, bdr);
}
template <typename T>
- image3d_b<T>::image3d_b(int nslis, int nrows, int ncols, unsigned bdr)
+ image3d<T>::image3d(int nslis, int nrows, int ncols, unsigned bdr)
{
init_(make::box3d(nslis, nrows, ncols), bdr);
}
template <typename T>
void
- image3d_b<T>::init_(const box3d& b, unsigned bdr)
+ image3d<T>::init_(const box3d& b, unsigned bdr)
{
mln_precondition(! this->has_data());
- this->data_ = new internal::data_< image3d_b<T> >(b, bdr);
+ this->data_ = new internal::data_< image3d<T> >(b, bdr);
}
template <typename T>
- const typename image3d_b<T>::vset&
- image3d_b<T>::values() const
+ const typename image3d<T>::vset&
+ image3d<T>::values() const
{
return vset::the();
}
template <typename T>
const box3d&
- image3d_b<T>::domain() const
+ image3d<T>::domain() const
{
mln_precondition(this->has_data());
return data_->b_;
@@ -369,7 +369,7 @@
template <typename T>
unsigned
- image3d_b<T>::border() const
+ image3d<T>::border() const
{
mln_precondition(this->has_data());
return data_->bdr_;
@@ -377,7 +377,7 @@
template <typename T>
std::size_t
- image3d_b<T>::ncells() const
+ image3d<T>::ncells() const
{
mln_precondition(this->has_data());
return data_->vb_.npoints();
@@ -385,7 +385,7 @@
template <typename T>
bool
- image3d_b<T>::owns_(const point3d& p) const
+ image3d<T>::owns_(const point3d& p) const
{
mln_precondition(this->has_data());
return data_->vb_.has(p);
@@ -393,7 +393,7 @@
template <typename T>
const T&
- image3d_b<T>::operator()(const point3d& p) const
+ image3d<T>::operator()(const point3d& p) const
{
mln_precondition(this->owns_(p));
return data_->array_[p.sli()][p.row()][p.col()];
@@ -401,7 +401,7 @@
template <typename T>
T&
- image3d_b<T>::operator()(const point3d& p)
+ image3d<T>::operator()(const point3d& p)
{
mln_precondition(this->owns_(p));
return data_->array_[p.sli()][p.row()][p.col()];
@@ -409,7 +409,7 @@
template <typename T>
const T&
- image3d_b<T>::operator[](unsigned o) const
+ image3d<T>::operator[](unsigned o) const
{
mln_precondition(o < ncells());
return *(data_->buffer_ + o);
@@ -417,7 +417,7 @@
template <typename T>
T&
- image3d_b<T>::operator[](unsigned o)
+ image3d<T>::operator[](unsigned o)
{
mln_precondition(o < ncells());
return *(data_->buffer_ + o);
@@ -425,7 +425,7 @@
template <typename T>
const T&
- image3d_b<T>::at(int sli, int row, int col) const
+ image3d<T>::at(int sli, int row, int col) const
{
mln_precondition(this->owns_(make::point3d(sli, row, col)));
return data_->array_[sli][row][col];
@@ -433,7 +433,7 @@
template <typename T>
T&
- image3d_b<T>::at(int sli, int row, int col)
+ image3d<T>::at(int sli, int row, int col)
{
mln_precondition(this->owns_(make::point3d(sli, row, col)));
return data_->array_[sli][row][col];
@@ -441,7 +441,7 @@
template <typename T>
const T*
- image3d_b<T>::buffer() const
+ image3d<T>::buffer() const
{
mln_precondition(this->has_data());
return data_->buffer_;
@@ -449,7 +449,7 @@
template <typename T>
T*
- image3d_b<T>::buffer()
+ image3d<T>::buffer()
{
mln_precondition(this->has_data());
return data_->buffer_;
@@ -457,7 +457,7 @@
template <typename T>
int
- image3d_b<T>::offset(const dpoint3d& dp) const
+ image3d<T>::offset(const dpoint3d& dp) const
{
mln_precondition(this->has_data());
int o = dp[0];
@@ -466,7 +466,7 @@
template <typename T>
point3d
- image3d_b<T>::point_at_offset(unsigned o) const
+ image3d<T>::point_at_offset(unsigned o) const
{
mln_precondition(o < ncells());
point3d p = make::point3d(o / (data_->vb_.len(1) * data_->vb_.len(2)) +
data_->vb_.min_sli(),
@@ -484,7 +484,7 @@
# include <mln/core/trait/pixter.hh>
# include <mln/core/dpoints_pixter.hh>
-# include <mln/core/pixter3d_b.hh>
+# include <mln/core/pixter3d.hh>
# include <mln/core/w_window.hh>
@@ -497,19 +497,19 @@
// pixter
template <typename T>
- struct fwd_pixter< image3d_b<T> >
+ struct fwd_pixter< image3d<T> >
{
- typedef fwd_pixter3d_b< image3d_b<T> > ret;
+ typedef fwd_pixter3d< image3d<T> > ret;
};
template <typename T>
- struct fwd_pixter< const image3d_b<T> >
+ struct fwd_pixter< const image3d<T> >
{
- typedef fwd_pixter3d_b< const image3d_b<T> > ret;
+ typedef fwd_pixter3d< const image3d<T> > ret;
};
template <typename T>
- struct bkd_pixter< image3d_b<T> >
+ struct bkd_pixter< image3d<T> >
{
typedef mln::internal::fixme ret;
};
@@ -517,19 +517,19 @@
// qixter
template <typename T, typename W>
- struct fwd_qixter< image3d_b<T>, W >
+ struct fwd_qixter< image3d<T>, W >
{
- typedef dpoints_fwd_pixter< image3d_b<T> > ret;
+ typedef dpoints_fwd_pixter< image3d<T> > ret;
};
template <typename T, typename W>
- struct fwd_qixter< const image3d_b<T>, W >
+ struct fwd_qixter< const image3d<T>, W >
{
- typedef dpoints_fwd_pixter< const image3d_b<T> > ret;
+ typedef dpoints_fwd_pixter< const image3d<T> > ret;
};
template <typename T, typename W>
- struct bkd_qixter< image3d_b<T>, W >
+ struct bkd_qixter< image3d<T>, W >
{
typedef mln::internal::fixme ret;
};
Index: mln/convert/to_image.hh
--- mln/convert/to_image.hh (revision 1276)
+++ mln/convert/to_image.hh (working copy)
@@ -33,9 +33,9 @@
* \brief Conversions to mln::Image.
*/
-# include <mln/core/image1d_b.hh>
-# include <mln/core/image2d_b.hh>
-# include <mln/core/image3d_b.hh>
+# include <mln/core/image1d.hh>
+# include <mln/core/image2d.hh>
+# include <mln/core/image3d.hh>
# include <mln/core/concept/point_set.hh>
# include <mln/core/concept/window.hh>
@@ -71,19 +71,19 @@
template <typename V>
struct helper_image_from_< 3, V >
{
- typedef image3d_b<V> ret;
+ typedef image3d<V> ret;
};
template <typename V>
struct helper_image_from_< 2, V >
{
- typedef image2d_b<V> ret;
+ typedef image2d<V> ret;
};
template <typename V>
struct helper_image_from_< 1, V >
{
- typedef image1d_b<V> ret;
+ typedef image1d<V> ret;
};
} // end of namespace mln::internal
@@ -119,9 +119,9 @@
template <typename W>
mln_image_from(W, mln_weight(W)) to_image(const Weighted_Window<W>&
w_win);
- /// Convert an histo \p h into an image1d_b<std::size_t>.
+ /// Convert an histo \p h into an image1d<std::size_t>.
template <typename S>
- image1d_b<std::size_t> to_image(const mln::histo::data<S>& h);
+ image1d<std::size_t> to_image(const mln::histo::data<S>& h);
# ifndef MLN_INCLUDE_ONLY
@@ -175,12 +175,12 @@
}
template <typename S>
- image1d_b<std::size_t> to_image(const histo::data<S>& h)
+ image1d<std::size_t> to_image(const histo::data<S>& h)
{
mln_value(S)
v_min = h.vset()[0],
v_max = h.vset()[h.vset().nvalues() - 1];
- image1d_b<std::size_t> ima(make::box1d(v_min, v_max));
+ image1d<std::size_t> ima(make::box1d(v_min, v_max));
for(std::size_t i = 0; i < h.vset().nvalues(); ++i)
ima(make::point1d(i)) = h[i];
return ima;
Index: mln/display/color_pretty.hh
--- mln/display/color_pretty.hh (revision 1276)
+++ mln/display/color_pretty.hh (working copy)
@@ -36,7 +36,7 @@
# include <mln/trait/image_from_mesh.hh>
# include <mln/core/image_if_value.hh>
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/value/rgb8.hh>
# include <mln/level/fill.hh>
# include <mln/level/paste.hh>
@@ -63,7 +63,7 @@
{
const I& input = exact (input_);
- image2d_b<value::rgb8> output(input.domain().bbox());
+ image2d<value::rgb8> output(input.domain().bbox());
level::fill(output, value::rgb8(255, 0, 0));
// /// FIXME by :
Index: mln/io/pfm/load.hh
--- mln/io/pfm/load.hh (revision 1276)
+++ mln/io/pfm/load.hh (working copy)
@@ -33,7 +33,7 @@
// # include <fstream>
// # include <string>
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/value/int_u8.hh>
@@ -111,7 +111,7 @@
} // end of namespace mln::io::internal
- image2d_b<float> load(const std::string& filename)
+ image2d<float> load(const std::string& filename)
{
std::ifstream file(filename.c_str());
if (! file)
@@ -123,7 +123,7 @@
int nrows, ncols;
internal::read_pfm_header(file, nrows, ncols);
- image2d_b<float> ima(nrows, ncols);
+ image2d<float> ima(nrows, ncols);
internal::load_raw_2d(file, ima);
return ima;
}
Index: mln/io/pgm/load.hh
--- mln/io/pgm/load.hh (revision 1276)
+++ mln/io/pgm/load.hh (working copy)
@@ -33,7 +33,7 @@
# include <fstream>
# include <string>
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/value/int_u8.hh>
@@ -50,12 +50,12 @@
{
template <typename V>
- image2d_b<V> load(const std::string& filename)
+ image2d<V> load(const std::string& filename)
{
return io::internal::pnm::load<V>(PGM, filename);
}
- image2d_b<value::int_u8> load(const std::string& filename)
+ image2d<value::int_u8> load(const std::string& filename)
{
return load<value::int_u8>(filename);
}
Index: mln/io/fits/load.hh
--- mln/io/fits/load.hh (revision 1276)
+++ mln/io/fits/load.hh (working copy)
@@ -33,7 +33,7 @@
# include <fstream>
# include <string>
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/value/int_u8.hh>
# include <mln/io/fitsio.h>
@@ -59,7 +59,7 @@
return;
}
- image2d_b<float> load(const std::string& filename)
+ image2d<float> load(const std::string& filename)
{
fitsfile *fptr;
int status, nfound, anynull;
@@ -78,7 +78,7 @@
std::cout << "ncols : " << ncols
<< "nrows : " << nrows << std::endl;
- image2d_b<float> output(nrows, ncols);
+ image2d<float> output(nrows, ncols);
nullval = 0; // don't check null values
Index: mln/io/ppm/load.hh
--- mln/io/ppm/load.hh (revision 1276)
+++ mln/io/ppm/load.hh (working copy)
@@ -33,7 +33,7 @@
# include <fstream>
# include <string>
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/value/rgb8.hh>
# include <mln/io/internal/pnm/load.hh>
@@ -47,12 +47,12 @@
namespace ppm
{
template <typename V>
- image2d_b<V> load(const std::string& filename)
+ image2d<V> load(const std::string& filename)
{
return io::internal::pnm::load<V>(PPM, filename);
}
- image2d_b<value::rgb8> load(const std::string& filename)
+ image2d<value::rgb8> load(const std::string& filename)
{
return load< value::rgb8 >(filename);
}
Index: mln/io/internal/pnm/load.hh
--- mln/io/internal/pnm/load.hh (revision 1276)
+++ mln/io/internal/pnm/load.hh (working copy)
@@ -38,7 +38,7 @@
# include <fstream>
# include <string>
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/value/int_u8.hh>
# include <mln/value/rgb.hh>
@@ -90,7 +90,7 @@
// used when (sizeof(int_u8) != 1)
template <typename V>
void load_raw_2d_uncontiguous(std::ifstream& file,
- image2d_b<V>& ima)
+ image2d<V>& ima)
{
const int
min_row = geom::min_row(ima),
@@ -147,7 +147,7 @@
/// main function : load pnm format
template <typename V>
- image2d_b<V> load(char type_, const std::string& filename)
+ image2d<V> load(char type_, const std::string& filename)
{
std::ifstream file(filename.c_str());
if (! file)
@@ -162,7 +162,7 @@
read_header(type_ - 3, type_, file, type,
nrows, ncols, maxval);
- image2d_b<V> ima(nrows, ncols);
+ image2d<V> ima(nrows, ncols);
if (type = type_)
load_raw_2d(file, ima);
else
Index: mln/io/pbm/load.hh
--- mln/io/pbm/load.hh (revision 1276)
+++ mln/io/pbm/load.hh (working copy)
@@ -33,7 +33,7 @@
# include <fstream>
# include <string>
-# include <mln/core/image2d_b.hh>
+# include <mln/core/image2d.hh>
# include <mln/io/internal/pnm/load_header.hh>
namespace mln
@@ -93,7 +93,7 @@
} // end of namespace mln::io::internal
- image2d_b<bool> load(const std::string& filename)
+ image2d<bool> load(const std::string& filename)
{
std::ifstream file(filename.c_str());
if (! file)
@@ -106,7 +106,7 @@
int nrows, ncols;
io::internal::pnm::read_header('1', '4', file, type, nrows,
ncols);
- image2d_b<bool> ima(nrows, ncols);
+ image2d<bool> ima(nrows, ncols);
if (type = '4')
internal::load_raw_2d(file, ima);
else