---
milena/sandbox/anthony/Makefile | 21 +++++++++++++++++
milena/sandbox/anthony/src/scale_space.cc | 36 +++++++++++++++++++++++++++++
2 files changed, 57 insertions(+), 0 deletions(-)
create mode 100644 milena/sandbox/anthony/Makefile
create mode 100644 milena/sandbox/anthony/src/scale_space.cc
diff --git a/milena/sandbox/anthony/Makefile b/milena/sandbox/anthony/Makefile
new file mode 100644
index 0000000..7f990da
--- /dev/null
+++ b/milena/sandbox/anthony/Makefile
@@ -0,0 +1,21 @@
+CCACHE=ccache
+CC=g++
+CFLAGS=-Wall -Werror -O3 -DNDEBUG
+CLIBS=-I../../../scribo/ -I../../
+CLEAN=*.o output/* log final.xml *.pgm
+
+SRC=src/scale_space.cc
+OUTPUT=a.out
+
+all: scale
+
+scale:
+ $(CCACHE) $(CC) $(CFLAGS) $(CLIBS) $(SRC) -o $(OUTPUT)
+
+clean:
+ rm -rf $(CLEAN)
+
+mrproper: clean
+ rm -f $(OUTPUT)
+
+.PHONY: scale clean mrproper
diff --git a/milena/sandbox/anthony/src/scale_space.cc
b/milena/sandbox/anthony/src/scale_space.cc
new file mode 100644
index 0000000..9e452a3
--- /dev/null
+++ b/milena/sandbox/anthony/src/scale_space.cc
@@ -0,0 +1,36 @@
+#include <mln/binarization/all.hh>
+
+#include <mln/core/image/image2d.hh>
+
+#include <mln/data/all.hh>
+#include <mln/draw/line.hh>
+
+#include <mln/fun/v2v/rgb_to_luma.hh>
+
+#include <mln/io/pgm/all.hh>
+
+#include <mln/labeling/all.hh>
+#include <mln/literal/all.hh>
+#include <mln/logical/and.hh>
+
+#include <mln/value/all.hh>
+
+#include <tesseract/baseapi.h>
+
+#include <scribo/binarization/sauvola.hh>
+#include <scribo/core/component_set.hh>
+#include <scribo/preprocessing/denoise_fg.hh>
+#include <scribo/primitive/extract/all.hh>
+
+using namespace mln;
+
+int main(int argc, char** argv)
+{
+ image2d<value::int_u8> original;
+
+ io::pgm::load(original, "images/keith.pgm");
+
+ io::pgm::save(original, "final.pgm");
+
+ return 0;
+}
--
1.7.2.5
Show replies by date