* scribo/primitive/extract/lines_pattern.hh: Fix missing include.
* scribo/primitive/extract/non_text.hh: Change debug level for
debug image.
* src/primitive/extract/alignments.cc: Improve comment.
---
scribo/ChangeLog | 11 +++++++++++
scribo/scribo/primitive/extract/lines_pattern.hh | 7 ++++---
scribo/scribo/primitive/extract/non_text.hh | 4 ++--
scribo/src/primitive/extract/alignments.cc | 1 +
4 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index f4dcf15..08642d5 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,14 @@
+2011-05-11 Guillaume Lazzara <lazzara(a)fidji.lrde.epita.fr>
+
+ Small fixes in Scribo.
+
+ * scribo/primitive/extract/lines_pattern.hh: Fix missing include.
+
+ * scribo/primitive/extract/non_text.hh: Change debug level for
+ debug image.
+
+ * src/primitive/extract/alignments.cc: Improve comment.
+
2011-05-06 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
Load and save color information.
diff --git a/scribo/scribo/primitive/extract/lines_pattern.hh
b/scribo/scribo/primitive/extract/lines_pattern.hh
index f96c7b3..85bdbe4 100644
--- a/scribo/scribo/primitive/extract/lines_pattern.hh
+++ b/scribo/scribo/primitive/extract/lines_pattern.hh
@@ -195,9 +195,10 @@ namespace scribo
continue;
}
- // If the background parts of the pattern have exactly or
- // less than 95% of background pixels, the current pixel is
- // considered as part of the background.
+ // If the background parts of the pattern have exactly
+ // or less than 95% of background pixels each, the
+ // current pixel is considered as part of the
+ // background.
is_foreground = true;
for (unsigned i = 0; i < q_arr.size(); ++i)
if ((length - *(tmp_ptr + q_arr[i])) < miss_ratio)
diff --git a/scribo/scribo/primitive/extract/non_text.hh
b/scribo/scribo/primitive/extract/non_text.hh
index e2a6a03..0ceee13 100644
--- a/scribo/scribo/primitive/extract/non_text.hh
+++ b/scribo/scribo/primitive/extract/non_text.hh
@@ -329,9 +329,9 @@ namespace scribo
// Debug
{
- debug::logger().log_image(debug::Special,//debug::AuxiliaryResults,
+ debug::logger().log_image(debug::AuxiliaryResults,
txt, "txt_components");
- debug::logger().log_image(debug::Special,//debug::AuxiliaryResults,
+ debug::logger().log_image(debug::AuxiliaryResults,
txtblocks, "txt_blocks");
}
diff --git a/scribo/src/primitive/extract/alignments.cc
b/scribo/src/primitive/extract/alignments.cc
index 2508ec9..6690b17 100644
--- a/scribo/src/primitive/extract/alignments.cc
+++ b/scribo/src/primitive/extract/alignments.cc
@@ -30,6 +30,7 @@
#include <scribo/text/extract_lines_wo_merge.hh>
#include <scribo/primitive/extract/alignments.hh>
+#include <scribo/primitive/remove/separators.hh>
#include <scribo/debug/usage.hh>
const char *args_desc[][2] =
--
1.5.6.5
Show replies by date