Commit 04cf5bcc authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Delete Dalila's sandbox.

	* dalila/Makefile,
	* dalila/photo.cc,
	* dalila/plop.cc,
	* dalila/start.sh,
	* dalila/table.cc: Delete.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@4234 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 171c5729
2009-07-03 Guillaume Lazzara <lazzara@lrde.epita.fr>
Delete Dalila's sandbox.
* dalila/Makefile,
* dalila/photo.cc,
* dalila/plop.cc,
* dalila/start.sh,
* dalila/table.cc: Delete.
2009-07-01 Guillaume Lazzara <lazzara@lrde.epita.fr>
Add new programs to extract data from microfilms.
......
OLENA_INCLUDE_PATH=../../../
CXXFLAGS=-I$(OLENA_INCLUDE_PATH) -ggdb3 -Wall -O1 -DNDEBUG
all: photo table
photo: demat.hh photo.cc
g++ $(CXXFLAGS) photo.cc -o photo
table: demat.hh table.cc
g++ $(CXXFLAGS) table.cc -o table
dclean: clean
rm -f photo
rm -f table
clean:
rm -f *.pbm *.pgm *.ppm
// Copyright (C) 2008 EPITA Research and Development Laboratory
//
// This file is part of the Milena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
// of the GNU General Public License version 2 as published by the
// Free Software Foundation.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this library; see the file COPYING. If not, write to
// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
// Boston, MA 02111-1307, USA.
//
// As a special exception, you may use this file as part of a free
// software library without restriction. Specifically, if other files
// instantiate templates or use macros or inline functions from this
// file, or you compile this file and link it with other files to
// produce an executable, this file does not by itself cause the
// resulting executable to be covered by the GNU General Public
// License. This exception does not however invalidate any other
// reasons why the executable file might be covered by the GNU General
// Public License.
#include "demat.hh"
int main(int argc, char*argv[])
{
using namespace mln;
using value::int_u8;
if (argc < 2)
{
std::cout << argv[0] << " <in.pbm> <out.pgm> <l> <bbox_larger> <bbox_distance> <min_comp_nsites>" << std::endl
<< std::endl << std::endl
<< std::endl
<< "=========="
<< std::endl << std::endl
<< "<in.pbm> B/W inverted input image."
<< std::endl << std::endl
/* << "<out.ppm> RGB8 output image."
<< std::endl << std::endl
<< "<bbox_distance> Maximum distance between character bounding boxes. Used for bbox grouping."
<< std::endl << std::endl
<< "<min_comp_nsites> Minimum site count of a character/text component."
<< std::endl
<< " If a component have a site count lesser than this value, it is erased."
<< std::endl << std::endl
<< std::endl*/
<< "=========="
<< std::endl << std::endl
<< "HINT: compile with -DNOUT to avoid debug images."
<< std::endl << std::endl;
return 1;
}
scribo::demat(argv, false);
return 0;
}
#include <mln/essential/2d.hh>
int main()
{
using namespace mln;
image2d<bool> ima1(2, 3);
image2d<bool> ima2(2, 3);
data::fill(ima1, 2);
data::fill(ima2, 3);
// debug::println(ima1);
// debug::println(ima2);
// debug::println(ima2 - ima1);
// debug::println(arith::minus(ima2, ima1));
ima1 * ima2;
}
#!/bin/sh
out_location="./images-out"
treat_file()
{
file=$1
shift
echo "-------------------------"
echo " * Processing $file..."
echo " => Running: $1 $file"
echo "-------------------------"
d1=`date +%s`
time $1 $file
d2=`date +%s`
echo ""
dstdir="$out_location/`basename $file .pbm`"
echo "Moving output files to $dstdir..."
mkdir -p $dstdir
mv -f *.pbm $dstdir 2>/dev/null
mv -f *.ppm $dstdir 2>/dev/null
mv -f *.pgm $dstdir 2>/dev/null
echo ""
}
treat_dir()
{
for file in $2/*; do
treat_file $file $1
done
}
rm -f *.pbm *.ppm *.pgm
make
# Traite une seule image
# Usage: ./starh.sh <file.pbm> <table | photo>
if [ $# -eq 2 ]; then
treat_file $1 ./$2
else
# Traite toutes les images
treat_dir ./table ./images/factures
treat_dir ./photo ./images/photos
fi
// Copyright (C) 2008 EPITA Research and Development Laboratory
//
// This file is part of the Milena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
// of the GNU General Public License version 2 as published by the
// Free Software Foundation.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this library; see the file COPYING. If not, write to
// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
// Boston, MA 02111-1307, USA.
//
// As a special exception, you may use this file as part of a free
// software library without restriction. Specifically, if other files
// instantiate templates or use macros or inline functions from this
// file, or you compile this file and link it with other files to
// produce an executable, this file does not by itself cause the
// resulting executable to be covered by the GNU General Public
// License. This exception does not however invalidate any other
// reasons why the executable file might be covered by the GNU General
// Public License.
#include "demat.hh"
int main(int argc, char*argv[])
{
using namespace mln;
using value::int_u8;
if (argc < 2)
{
std::cout << argv[0] << " <in.pbm> <out.pgm> <l> <bbox_larger> <bbox_distance> <min_comp_nsites>" << std::endl
<< std::endl << std::endl
<< std::endl
<< "=========="
<< std::endl << std::endl
<< "<in.pbm> B/W inverted input image."
<< std::endl << std::endl
/* << "<out.ppm> RGB8 output image."
<< std::endl << std::endl
<< "<l> Line length"
<< std::endl << std::endl
<< "<bbox_distance> Maximum distance between character bounding boxes. Used for bbox grouping."
<< std::endl << std::endl
<< "<min_comp_nsites> Minimum site count of a character/text component."
<< std::endl
<< " If a component have a site count lesser than this value, it is erased."
<< std::endl << std::endl
<< std::endl*/
<< "=========="
<< std::endl << std::endl
<< "HINT: compile with -DNOUT to avoid debug images."
<< std::endl << std::endl;
return 1;
}
scribo::demat(argv, true);
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment