SauvolaMs, for ancient Torah Scrolls Binarization ?

Shalom Olena team, At Ben-Gurion University in Israel we evaluating binarization approaches for ancient Torah Scrolls right now. You SauvoulaMS approach :"Efficient Multiscale Sauvola's Binarization". seems to be very accurate even despite of inhomogeneous background! So we would be really gad to use it and see how it performs ahead of others Binarization algorithms. I already installed Olena 2.0 under Ubuntu. Could you help me out with a little code SauvolaMs example ? For example how could I apply a SauvolaMs on a single page .tiff format and/or on many pages in .tiff stacks ? best regards Albert Berman, MSc Ben-Gurion University of the Negev Phone: +972-8-6477320 (office) Phone: +972-8-6477311 (lab) Fax: +972-8-6477627 P.O.B. 653 Beer Sheva 84105 Israel

On 27/08/2013 10:37, Albert Berman wrote:
Shalom Olena team,
Hello,
At Ben-Gurion University in Israel we evaluating binarization approaches for ancient Torah Scrolls right now. You SauvoulaMS approach :"Efficient Multiscale Sauvola's Binarization". seems to be very accurate even despite of inhomogeneous background!
So we would be really gad to use it and see how it performs ahead of others Binarization algorithms.
I already installed Olena 2.0 under Ubuntu. Could you help me out with a little code SauvolaMs example ? For example how could I apply a SauvolaMs on a single page .tiff format and/or on many pages in .tiff stacks ?
Here is an example of code running the multi-scale Sauvola binarization algorithm on a TIFF image named `input.tiff' and writing the result to `out.pbm' : // -- example.cc ----------------------------------------------------- #include <mln/core/image/image2d.hh> #include <mln/value/int_u8.hh> #include <mln/io/tiff/load.hh> #include <mln/io/pbm/save.hh> #include <scribo/binarization/sauvola_ms.hh> int main() { using namespace mln; using mln::value::int_u8; image2d<int_u8> input; io::tiff::load(input, "input.tiff"); image2d<bool> bin = scribo::binarization::sauvola_ms(input, 21, 2); io::pbm::save(bin, "bin.pbm"); } // ----------------------------------------------------- example.cc -- In order to compile and link this example, you will need the TIFF library development files installed on your system (presumably from the package `libtiff4-dev' on Ubuntu). Compile and link this example by passing the `-ltiff' option to the compiler : g++ -O3 -DNDEBUG -Wall -Wextra -ltiff -o example example.cc Milena also features input/output routines wrapping the Magick++ APIs (provided by ImageMagick and GraphicsMagick) that are able to read TIFF files (and many other formats) as well, but they cannot handle multi-page TIFF documents at the moment. Best regards, Roland -- Roland Levillain EPITA Research and Development Laboratory (LRDE) 14-16, rue Voltaire - FR-94276 Le Kremlin-Bicêtre Cedex - France Phone: +33 1 53 14 59 45 - Fax: +33 1 53 14 59 22 - www.lrde.epita.fr
participants (2)
-
Albert Berman
-
Roland Levillain