From 895d59028ee1b2c060f6a3beec979b2ae7455dda Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 13 Jan 2005 16:52:06 +0000 Subject: [PATCH] * improved lmt filter (98% efficiency). * bumped version to 0.4. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/pwntcha/trunk@461 92316355-f0b4-4df1-b90c-862c8a59935f --- README | 2 ++ configure.ac | 2 +- src/lmt.c | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README b/README index 3971d36..c70f3b2 100644 --- a/README +++ b/README @@ -2,3 +2,5 @@ PWNTCHA - Pretend We're Not a Turing Computer but a Human Antagonist This is research software. It comes with absolutely no warranty. +Papers: +http://yann.lecun.com/exdb/publis/index.html diff --git a/configure.ac b/configure.ac index c456a41..5c6492d 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ AC_PREREQ(2.50) AC_CONFIG_AUX_DIR(autotools) AC_CANONICAL_SYSTEM -AM_INIT_AUTOMAKE(pwntcha, 0.3) +AM_INIT_AUTOMAKE(pwntcha, 0.4) AM_CONFIG_HEADER(config.h) AC_PROG_CC diff --git a/src/lmt.c b/src/lmt.c index 7aea16a..580f4d2 100644 --- a/src/lmt.c +++ b/src/lmt.c @@ -34,6 +34,8 @@ char *decode_lmt(struct image *img) tmp = image_dup(img); filter_contrast(tmp); filter_black_stuff(tmp); + filter_smooth(tmp); + filter_median(tmp); find_glyphs(tmp); image_free(tmp); @@ -54,6 +56,7 @@ static void find_glyphs(struct image *img) { font = font_load_variable("font_freesans_24_09AZ.bmp", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"); + filter_smooth(font->img); if(!font) exit(1); }