Commits

Jakub Wilk  committed 4e27495

Add support for the Brink and Pendock's minimum-cross entropy method.

  • Participants
  • Parent commits b0ea934

Comments (0)

Files changed (3)

File doc/changelog

   * Make “setup.py clean -a” remove compiled manual page (unless it was built
     by “setup.py sdist”).
   * Check Python version at runtime, not only in setup.py.
+  * Add support for the Brink and Pendock's minimum-cross entropy method.
 
- -- Jakub Wilk <jwilk@jwilk.net>  Mon, 18 Feb 2013 23:02:45 +0100
+ -- Jakub Wilk <jwilk@jwilk.net>  Wed, 13 Mar 2013 20:41:09 +0100
 
 didjvu (0.2.6) unstable; urgency=low
 

File doc/didjvu.xml

                         <listitem><para>Bernsen thresholding algorithm</para></listitem>
                     </varlistentry>
                     <varlistentry>
+                        <term><literal>brink</literal></term>
+                        <listitem><para>Brink and Pendock's minimum-cross entropy method</para>
+                            <note><para>this method requires Gamera ≥ 3.4.0</para></note>
+                        </listitem>
+                    </varlistentry>
+                    <varlistentry>
                         <term><literal>djvu</literal></term>
                         <listitem><para>DjVu thresholding algorithm</para></listitem>
                     </varlistentry>

File lib/gamera_extra.py

         from gamera.plugins.binarization import white_rohrer_threshold
         if has_version(3, 3, 1):
             from gamera.plugins.binarization import shading_subtraction
+        if has_version(3, 4, 0):
+            from gamera.plugins.binarization import brink_threshold
     methods = {}
     for name, plugin in vars(_methods).items():
         if name.startswith('_'):