tesseract_bin 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +23 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/ext/tesseract_bin/extconf.rb +17 -0
- data/lib/tesseract_bin.rb +12 -0
- data/tesseract_bin.gemspec +660 -0
- data/test/helper.rb +18 -0
- data/test/test_tesseract_bin.rb +7 -0
- data/vendor/tesseract-2.04/AUTHORS +8 -0
- data/vendor/tesseract-2.04/COPYING +23 -0
- data/vendor/tesseract-2.04/ChangeLog +71 -0
- data/vendor/tesseract-2.04/INSTALL +229 -0
- data/vendor/tesseract-2.04/Makefile.am +20 -0
- data/vendor/tesseract-2.04/Makefile.in +641 -0
- data/vendor/tesseract-2.04/NEWS +1 -0
- data/vendor/tesseract-2.04/README +138 -0
- data/vendor/tesseract-2.04/ReleaseNotes +213 -0
- data/vendor/tesseract-2.04/StdAfx.cpp +8 -0
- data/vendor/tesseract-2.04/StdAfx.h +24 -0
- data/vendor/tesseract-2.04/ccmain/Makefile.am +63 -0
- data/vendor/tesseract-2.04/ccmain/Makefile.in +735 -0
- data/vendor/tesseract-2.04/ccmain/adaptions.cpp +1082 -0
- data/vendor/tesseract-2.04/ccmain/adaptions.h +109 -0
- data/vendor/tesseract-2.04/ccmain/applybox.cpp +891 -0
- data/vendor/tesseract-2.04/ccmain/applybox.h +73 -0
- data/vendor/tesseract-2.04/ccmain/baseapi.cpp +1105 -0
- data/vendor/tesseract-2.04/ccmain/baseapi.h +256 -0
- data/vendor/tesseract-2.04/ccmain/blobcmp.cpp +76 -0
- data/vendor/tesseract-2.04/ccmain/blobcmp.h +29 -0
- data/vendor/tesseract-2.04/ccmain/callnet.cpp +93 -0
- data/vendor/tesseract-2.04/ccmain/callnet.h +32 -0
- data/vendor/tesseract-2.04/ccmain/charcut.cpp +704 -0
- data/vendor/tesseract-2.04/ccmain/charcut.h +120 -0
- data/vendor/tesseract-2.04/ccmain/charsample.cpp +699 -0
- data/vendor/tesseract-2.04/ccmain/control.cpp +1842 -0
- data/vendor/tesseract-2.04/ccmain/control.h +198 -0
- data/vendor/tesseract-2.04/ccmain/docqual.cpp +1481 -0
- data/vendor/tesseract-2.04/ccmain/docqual.h +155 -0
- data/vendor/tesseract-2.04/ccmain/expandblob.cpp +82 -0
- data/vendor/tesseract-2.04/ccmain/expandblob.h +13 -0
- data/vendor/tesseract-2.04/ccmain/fixspace.cpp +989 -0
- data/vendor/tesseract-2.04/ccmain/fixspace.h +72 -0
- data/vendor/tesseract-2.04/ccmain/fixxht.cpp +825 -0
- data/vendor/tesseract-2.04/ccmain/fixxht.h +93 -0
- data/vendor/tesseract-2.04/ccmain/imgscale.cpp +154 -0
- data/vendor/tesseract-2.04/ccmain/imgscale.h +32 -0
- data/vendor/tesseract-2.04/ccmain/matmatch.cpp +391 -0
- data/vendor/tesseract-2.04/ccmain/matmatch.h +48 -0
- data/vendor/tesseract-2.04/ccmain/output.cpp +1273 -0
- data/vendor/tesseract-2.04/ccmain/output.h +116 -0
- data/vendor/tesseract-2.04/ccmain/pagewalk.cpp +666 -0
- data/vendor/tesseract-2.04/ccmain/pagewalk.h +155 -0
- data/vendor/tesseract-2.04/ccmain/paircmp.cpp +107 -0
- data/vendor/tesseract-2.04/ccmain/paircmp.h +43 -0
- data/vendor/tesseract-2.04/ccmain/pgedit.cpp +1867 -0
- data/vendor/tesseract-2.04/ccmain/pgedit.h +181 -0
- data/vendor/tesseract-2.04/ccmain/reject.cpp +1775 -0
- data/vendor/tesseract-2.04/ccmain/reject.h +181 -0
- data/vendor/tesseract-2.04/ccmain/scaleimg.cpp +366 -0
- data/vendor/tesseract-2.04/ccmain/scaleimg.h +35 -0
- data/vendor/tesseract-2.04/ccmain/tessbox.cpp +375 -0
- data/vendor/tesseract-2.04/ccmain/tessbox.h +110 -0
- data/vendor/tesseract-2.04/ccmain/tessedit.cpp +278 -0
- data/vendor/tesseract-2.04/ccmain/tessedit.h +49 -0
- data/vendor/tesseract-2.04/ccmain/tessembedded.cpp +110 -0
- data/vendor/tesseract-2.04/ccmain/tessembedded.h +38 -0
- data/vendor/tesseract-2.04/ccmain/tesseractfull.cc +37 -0
- data/vendor/tesseract-2.04/ccmain/tesseractmain.cpp +387 -0
- data/vendor/tesseract-2.04/ccmain/tesseractmain.h +58 -0
- data/vendor/tesseract-2.04/ccmain/tessio.h +110 -0
- data/vendor/tesseract-2.04/ccmain/tessvars.cpp +38 -0
- data/vendor/tesseract-2.04/ccmain/tessvars.h +48 -0
- data/vendor/tesseract-2.04/ccmain/tfacep.h +62 -0
- data/vendor/tesseract-2.04/ccmain/tfacepp.cpp +443 -0
- data/vendor/tesseract-2.04/ccmain/tfacepp.h +85 -0
- data/vendor/tesseract-2.04/ccmain/tstruct.cpp +549 -0
- data/vendor/tesseract-2.04/ccmain/tstruct.h +108 -0
- data/vendor/tesseract-2.04/ccmain/varabled.cpp +346 -0
- data/vendor/tesseract-2.04/ccmain/varabled.h +125 -0
- data/vendor/tesseract-2.04/ccmain/werdit.cpp +193 -0
- data/vendor/tesseract-2.04/ccmain/werdit.h +67 -0
- data/vendor/tesseract-2.04/ccstruct/Makefile.am +25 -0
- data/vendor/tesseract-2.04/ccstruct/Makefile.in +650 -0
- data/vendor/tesseract-2.04/ccstruct/blckerr.h +29 -0
- data/vendor/tesseract-2.04/ccstruct/blobbox.cpp +778 -0
- data/vendor/tesseract-2.04/ccstruct/blobbox.h +381 -0
- data/vendor/tesseract-2.04/ccstruct/blobs.cpp +247 -0
- data/vendor/tesseract-2.04/ccstruct/blobs.h +119 -0
- data/vendor/tesseract-2.04/ccstruct/blread.cpp +537 -0
- data/vendor/tesseract-2.04/ccstruct/blread.h +63 -0
- data/vendor/tesseract-2.04/ccstruct/callcpp.cpp +252 -0
- data/vendor/tesseract-2.04/ccstruct/coutln.cpp +650 -0
- data/vendor/tesseract-2.04/ccstruct/coutln.h +186 -0
- data/vendor/tesseract-2.04/ccstruct/crakedge.h +39 -0
- data/vendor/tesseract-2.04/ccstruct/genblob.cpp +133 -0
- data/vendor/tesseract-2.04/ccstruct/genblob.h +52 -0
- data/vendor/tesseract-2.04/ccstruct/hpddef.h +39 -0
- data/vendor/tesseract-2.04/ccstruct/hpdsizes.h +8 -0
- data/vendor/tesseract-2.04/ccstruct/ipoints.h +479 -0
- data/vendor/tesseract-2.04/ccstruct/labls.cpp +188 -0
- data/vendor/tesseract-2.04/ccstruct/labls.h +38 -0
- data/vendor/tesseract-2.04/ccstruct/linlsq.cpp +249 -0
- data/vendor/tesseract-2.04/ccstruct/linlsq.h +102 -0
- data/vendor/tesseract-2.04/ccstruct/lmedsq.cpp +453 -0
- data/vendor/tesseract-2.04/ccstruct/lmedsq.h +84 -0
- data/vendor/tesseract-2.04/ccstruct/mod128.cpp +100 -0
- data/vendor/tesseract-2.04/ccstruct/mod128.h +85 -0
- data/vendor/tesseract-2.04/ccstruct/normalis.cpp +176 -0
- data/vendor/tesseract-2.04/ccstruct/normalis.h +108 -0
- data/vendor/tesseract-2.04/ccstruct/ocrblock.cpp +369 -0
- data/vendor/tesseract-2.04/ccstruct/ocrblock.h +235 -0
- data/vendor/tesseract-2.04/ccstruct/ocrrow.cpp +216 -0
- data/vendor/tesseract-2.04/ccstruct/ocrrow.h +133 -0
- data/vendor/tesseract-2.04/ccstruct/pageblk.cpp +879 -0
- data/vendor/tesseract-2.04/ccstruct/pageblk.h +318 -0
- data/vendor/tesseract-2.04/ccstruct/pageres.cpp +330 -0
- data/vendor/tesseract-2.04/ccstruct/pageres.h +313 -0
- data/vendor/tesseract-2.04/ccstruct/pdblock.cpp +361 -0
- data/vendor/tesseract-2.04/ccstruct/pdblock.h +181 -0
- data/vendor/tesseract-2.04/ccstruct/pdclass.h +54 -0
- data/vendor/tesseract-2.04/ccstruct/points.cpp +102 -0
- data/vendor/tesseract-2.04/ccstruct/points.h +299 -0
- data/vendor/tesseract-2.04/ccstruct/polyaprx.cpp +588 -0
- data/vendor/tesseract-2.04/ccstruct/polyaprx.h +51 -0
- data/vendor/tesseract-2.04/ccstruct/polyblk.cpp +398 -0
- data/vendor/tesseract-2.04/ccstruct/polyblk.h +122 -0
- data/vendor/tesseract-2.04/ccstruct/polyblob.cpp +357 -0
- data/vendor/tesseract-2.04/ccstruct/polyblob.h +102 -0
- data/vendor/tesseract-2.04/ccstruct/polyvert.cpp +23 -0
- data/vendor/tesseract-2.04/ccstruct/polyvert.h +58 -0
- data/vendor/tesseract-2.04/ccstruct/poutline.cpp +441 -0
- data/vendor/tesseract-2.04/ccstruct/poutline.h +125 -0
- data/vendor/tesseract-2.04/ccstruct/quadlsq.cpp +147 -0
- data/vendor/tesseract-2.04/ccstruct/quadlsq.h +67 -0
- data/vendor/tesseract-2.04/ccstruct/quadratc.cpp +21 -0
- data/vendor/tesseract-2.04/ccstruct/quadratc.h +63 -0
- data/vendor/tesseract-2.04/ccstruct/quspline.cpp +382 -0
- data/vendor/tesseract-2.04/ccstruct/quspline.h +113 -0
- data/vendor/tesseract-2.04/ccstruct/ratngs.cpp +372 -0
- data/vendor/tesseract-2.04/ccstruct/ratngs.h +198 -0
- data/vendor/tesseract-2.04/ccstruct/rect.cpp +229 -0
- data/vendor/tesseract-2.04/ccstruct/rect.h +320 -0
- data/vendor/tesseract-2.04/ccstruct/rejctmap.cpp +545 -0
- data/vendor/tesseract-2.04/ccstruct/rejctmap.h +284 -0
- data/vendor/tesseract-2.04/ccstruct/rwpoly.cpp +89 -0
- data/vendor/tesseract-2.04/ccstruct/rwpoly.h +45 -0
- data/vendor/tesseract-2.04/ccstruct/statistc.cpp +905 -0
- data/vendor/tesseract-2.04/ccstruct/statistc.h +135 -0
- data/vendor/tesseract-2.04/ccstruct/stepblob.cpp +296 -0
- data/vendor/tesseract-2.04/ccstruct/stepblob.h +88 -0
- data/vendor/tesseract-2.04/ccstruct/txtregn.cpp +230 -0
- data/vendor/tesseract-2.04/ccstruct/txtregn.h +155 -0
- data/vendor/tesseract-2.04/ccstruct/vecfuncs.cpp +63 -0
- data/vendor/tesseract-2.04/ccstruct/vecfuncs.h +91 -0
- data/vendor/tesseract-2.04/ccstruct/werd.cpp +967 -0
- data/vendor/tesseract-2.04/ccstruct/werd.h +277 -0
- data/vendor/tesseract-2.04/ccutil/Makefile.am +19 -0
- data/vendor/tesseract-2.04/ccutil/Makefile.in +626 -0
- data/vendor/tesseract-2.04/ccutil/basedir.cpp +118 -0
- data/vendor/tesseract-2.04/ccutil/basedir.h +32 -0
- data/vendor/tesseract-2.04/ccutil/bits16.cpp +30 -0
- data/vendor/tesseract-2.04/ccutil/bits16.h +61 -0
- data/vendor/tesseract-2.04/ccutil/boxread.cpp +105 -0
- data/vendor/tesseract-2.04/ccutil/boxread.h +44 -0
- data/vendor/tesseract-2.04/ccutil/clst.cpp +626 -0
- data/vendor/tesseract-2.04/ccutil/clst.h +1085 -0
- data/vendor/tesseract-2.04/ccutil/debugwin.cpp +500 -0
- data/vendor/tesseract-2.04/ccutil/debugwin.h +103 -0
- data/vendor/tesseract-2.04/ccutil/elst.cpp +593 -0
- data/vendor/tesseract-2.04/ccutil/elst.h +1125 -0
- data/vendor/tesseract-2.04/ccutil/elst2.cpp +606 -0
- data/vendor/tesseract-2.04/ccutil/elst2.h +1121 -0
- data/vendor/tesseract-2.04/ccutil/errcode.cpp +104 -0
- data/vendor/tesseract-2.04/ccutil/errcode.h +104 -0
- data/vendor/tesseract-2.04/ccutil/fileerr.h +34 -0
- data/vendor/tesseract-2.04/ccutil/globaloc.cpp +115 -0
- data/vendor/tesseract-2.04/ccutil/globaloc.h +40 -0
- data/vendor/tesseract-2.04/ccutil/hashfn.cpp +57 -0
- data/vendor/tesseract-2.04/ccutil/hashfn.h +30 -0
- data/vendor/tesseract-2.04/ccutil/host.h +180 -0
- data/vendor/tesseract-2.04/ccutil/hosthplb.h +1 -0
- data/vendor/tesseract-2.04/ccutil/lsterr.h +43 -0
- data/vendor/tesseract-2.04/ccutil/mainblk.cpp +126 -0
- data/vendor/tesseract-2.04/ccutil/mainblk.h +39 -0
- data/vendor/tesseract-2.04/ccutil/memblk.cpp +1106 -0
- data/vendor/tesseract-2.04/ccutil/memblk.h +189 -0
- data/vendor/tesseract-2.04/ccutil/memry.cpp +532 -0
- data/vendor/tesseract-2.04/ccutil/memry.h +192 -0
- data/vendor/tesseract-2.04/ccutil/memryerr.h +38 -0
- data/vendor/tesseract-2.04/ccutil/mfcpch.cpp +5 -0
- data/vendor/tesseract-2.04/ccutil/mfcpch.h +37 -0
- data/vendor/tesseract-2.04/ccutil/ndminx.h +31 -0
- data/vendor/tesseract-2.04/ccutil/notdll.h +28 -0
- data/vendor/tesseract-2.04/ccutil/nwmain.h +176 -0
- data/vendor/tesseract-2.04/ccutil/ocrclass.h +345 -0
- data/vendor/tesseract-2.04/ccutil/ocrshell.cpp +772 -0
- data/vendor/tesseract-2.04/ccutil/ocrshell.h +191 -0
- data/vendor/tesseract-2.04/ccutil/platform.h +18 -0
- data/vendor/tesseract-2.04/ccutil/scanutils.cpp +543 -0
- data/vendor/tesseract-2.04/ccutil/scanutils.h +55 -0
- data/vendor/tesseract-2.04/ccutil/secname.h +9 -0
- data/vendor/tesseract-2.04/ccutil/serialis.cpp +117 -0
- data/vendor/tesseract-2.04/ccutil/serialis.h +93 -0
- data/vendor/tesseract-2.04/ccutil/stderr.h +26 -0
- data/vendor/tesseract-2.04/ccutil/strngs.cpp +495 -0
- data/vendor/tesseract-2.04/ccutil/strngs.h +138 -0
- data/vendor/tesseract-2.04/ccutil/tessclas.h +135 -0
- data/vendor/tesseract-2.04/ccutil/tessopt.cpp +61 -0
- data/vendor/tesseract-2.04/ccutil/tessopt.h +30 -0
- data/vendor/tesseract-2.04/ccutil/tprintf.cpp +122 -0
- data/vendor/tesseract-2.04/ccutil/tprintf.h +35 -0
- data/vendor/tesseract-2.04/ccutil/unichar.cpp +144 -0
- data/vendor/tesseract-2.04/ccutil/unichar.h +84 -0
- data/vendor/tesseract-2.04/ccutil/unicharmap.cpp +172 -0
- data/vendor/tesseract-2.04/ccutil/unicharmap.h +82 -0
- data/vendor/tesseract-2.04/ccutil/unicharset.cpp +307 -0
- data/vendor/tesseract-2.04/ccutil/unicharset.h +267 -0
- data/vendor/tesseract-2.04/ccutil/varable.cpp +672 -0
- data/vendor/tesseract-2.04/ccutil/varable.h +419 -0
- data/vendor/tesseract-2.04/classify/Makefile.am +24 -0
- data/vendor/tesseract-2.04/classify/Makefile.in +647 -0
- data/vendor/tesseract-2.04/classify/adaptive.cpp +535 -0
- data/vendor/tesseract-2.04/classify/adaptive.h +199 -0
- data/vendor/tesseract-2.04/classify/adaptmatch.cpp +2958 -0
- data/vendor/tesseract-2.04/classify/adaptmatch.h +86 -0
- data/vendor/tesseract-2.04/classify/baseline.cpp +58 -0
- data/vendor/tesseract-2.04/classify/baseline.h +91 -0
- data/vendor/tesseract-2.04/classify/blobclass.cpp +123 -0
- data/vendor/tesseract-2.04/classify/blobclass.h +49 -0
- data/vendor/tesseract-2.04/classify/chartoname.cpp +74 -0
- data/vendor/tesseract-2.04/classify/chartoname.h +21 -0
- data/vendor/tesseract-2.04/classify/cluster.cpp +2834 -0
- data/vendor/tesseract-2.04/classify/cluster.h +158 -0
- data/vendor/tesseract-2.04/classify/clusttool.cpp +507 -0
- data/vendor/tesseract-2.04/classify/clusttool.h +70 -0
- data/vendor/tesseract-2.04/classify/cutoffs.cpp +73 -0
- data/vendor/tesseract-2.04/classify/cutoffs.h +49 -0
- data/vendor/tesseract-2.04/classify/extern.h +32 -0
- data/vendor/tesseract-2.04/classify/extract.cpp +100 -0
- data/vendor/tesseract-2.04/classify/extract.h +36 -0
- data/vendor/tesseract-2.04/classify/featdefs.cpp +244 -0
- data/vendor/tesseract-2.04/classify/featdefs.h +71 -0
- data/vendor/tesseract-2.04/classify/flexfx.cpp +87 -0
- data/vendor/tesseract-2.04/classify/flexfx.h +34 -0
- data/vendor/tesseract-2.04/classify/float2int.cpp +126 -0
- data/vendor/tesseract-2.04/classify/float2int.h +65 -0
- data/vendor/tesseract-2.04/classify/fpoint.cpp +73 -0
- data/vendor/tesseract-2.04/classify/fpoint.h +63 -0
- data/vendor/tesseract-2.04/classify/fxdefs.cpp +74 -0
- data/vendor/tesseract-2.04/classify/fxdefs.h +93 -0
- data/vendor/tesseract-2.04/classify/fxid.h +69 -0
- data/vendor/tesseract-2.04/classify/hideedge.cpp +35 -0
- data/vendor/tesseract-2.04/classify/hideedge.h +76 -0
- data/vendor/tesseract-2.04/classify/intfx.cpp +608 -0
- data/vendor/tesseract-2.04/classify/intfx.h +63 -0
- data/vendor/tesseract-2.04/classify/intmatcher.cpp +1524 -0
- data/vendor/tesseract-2.04/classify/intmatcher.h +199 -0
- data/vendor/tesseract-2.04/classify/intproto.cpp +1823 -0
- data/vendor/tesseract-2.04/classify/intproto.h +320 -0
- data/vendor/tesseract-2.04/classify/kdtree.cpp +884 -0
- data/vendor/tesseract-2.04/classify/kdtree.h +118 -0
- data/vendor/tesseract-2.04/classify/mf.cpp +106 -0
- data/vendor/tesseract-2.04/classify/mf.h +43 -0
- data/vendor/tesseract-2.04/classify/mfdefs.cpp +58 -0
- data/vendor/tesseract-2.04/classify/mfdefs.h +60 -0
- data/vendor/tesseract-2.04/classify/mfoutline.cpp +1087 -0
- data/vendor/tesseract-2.04/classify/mfoutline.h +277 -0
- data/vendor/tesseract-2.04/classify/mfx.cpp +436 -0
- data/vendor/tesseract-2.04/classify/mfx.h +52 -0
- data/vendor/tesseract-2.04/classify/normfeat.cpp +132 -0
- data/vendor/tesseract-2.04/classify/normfeat.h +63 -0
- data/vendor/tesseract-2.04/classify/normmatch.cpp +305 -0
- data/vendor/tesseract-2.04/classify/normmatch.h +38 -0
- data/vendor/tesseract-2.04/classify/ocrfeatures.cpp +310 -0
- data/vendor/tesseract-2.04/classify/ocrfeatures.h +148 -0
- data/vendor/tesseract-2.04/classify/outfeat.cpp +262 -0
- data/vendor/tesseract-2.04/classify/outfeat.h +76 -0
- data/vendor/tesseract-2.04/classify/picofeat.cpp +297 -0
- data/vendor/tesseract-2.04/classify/picofeat.h +65 -0
- data/vendor/tesseract-2.04/classify/protos.cpp +472 -0
- data/vendor/tesseract-2.04/classify/protos.h +258 -0
- data/vendor/tesseract-2.04/classify/sigmenu.cpp +225 -0
- data/vendor/tesseract-2.04/classify/sigmenu.h +39 -0
- data/vendor/tesseract-2.04/classify/speckle.cpp +127 -0
- data/vendor/tesseract-2.04/classify/speckle.h +69 -0
- data/vendor/tesseract-2.04/classify/xform2d.cpp +120 -0
- data/vendor/tesseract-2.04/classify/xform2d.h +60 -0
- data/vendor/tesseract-2.04/config/config.guess +1466 -0
- data/vendor/tesseract-2.04/config/config.h.in +188 -0
- data/vendor/tesseract-2.04/config/config.sub +1579 -0
- data/vendor/tesseract-2.04/config/depcomp +530 -0
- data/vendor/tesseract-2.04/config/install-sh +269 -0
- data/vendor/tesseract-2.04/config/missing +198 -0
- data/vendor/tesseract-2.04/config/mkinstalldirs +40 -0
- data/vendor/tesseract-2.04/config/stamp-h.in +0 -0
- data/vendor/tesseract-2.04/configure +10424 -0
- data/vendor/tesseract-2.04/cutil/Makefile.am +14 -0
- data/vendor/tesseract-2.04/cutil/Makefile.in +612 -0
- data/vendor/tesseract-2.04/cutil/bitvec.cpp +115 -0
- data/vendor/tesseract-2.04/cutil/bitvec.h +100 -0
- data/vendor/tesseract-2.04/cutil/callcpp.h +190 -0
- data/vendor/tesseract-2.04/cutil/const.h +108 -0
- data/vendor/tesseract-2.04/cutil/cutil.cpp +92 -0
- data/vendor/tesseract-2.04/cutil/cutil.h +159 -0
- data/vendor/tesseract-2.04/cutil/danerror.cpp +144 -0
- data/vendor/tesseract-2.04/cutil/danerror.h +41 -0
- data/vendor/tesseract-2.04/cutil/debug.cpp +97 -0
- data/vendor/tesseract-2.04/cutil/debug.h +348 -0
- data/vendor/tesseract-2.04/cutil/efio.cpp +62 -0
- data/vendor/tesseract-2.04/cutil/efio.h +32 -0
- data/vendor/tesseract-2.04/cutil/emalloc.cpp +91 -0
- data/vendor/tesseract-2.04/cutil/emalloc.h +44 -0
- data/vendor/tesseract-2.04/cutil/freelist.cpp +75 -0
- data/vendor/tesseract-2.04/cutil/freelist.h +45 -0
- data/vendor/tesseract-2.04/cutil/funcdefs.h +35 -0
- data/vendor/tesseract-2.04/cutil/general.h +33 -0
- data/vendor/tesseract-2.04/cutil/globals.cpp +69 -0
- data/vendor/tesseract-2.04/cutil/globals.h +70 -0
- data/vendor/tesseract-2.04/cutil/listio.cpp +68 -0
- data/vendor/tesseract-2.04/cutil/listio.h +43 -0
- data/vendor/tesseract-2.04/cutil/minmax.h +40 -0
- data/vendor/tesseract-2.04/cutil/oldheap.cpp +337 -0
- data/vendor/tesseract-2.04/cutil/oldheap.h +126 -0
- data/vendor/tesseract-2.04/cutil/oldlist.cpp +393 -0
- data/vendor/tesseract-2.04/cutil/oldlist.h +350 -0
- data/vendor/tesseract-2.04/cutil/structures.cpp +66 -0
- data/vendor/tesseract-2.04/cutil/structures.h +112 -0
- data/vendor/tesseract-2.04/cutil/tessarray.cpp +115 -0
- data/vendor/tesseract-2.04/cutil/tessarray.h +166 -0
- data/vendor/tesseract-2.04/cutil/tordvars.cpp +95 -0
- data/vendor/tesseract-2.04/cutil/tordvars.h +61 -0
- data/vendor/tesseract-2.04/cutil/variables.cpp +317 -0
- data/vendor/tesseract-2.04/cutil/variables.h +170 -0
- data/vendor/tesseract-2.04/dict/Makefile.am +13 -0
- data/vendor/tesseract-2.04/dict/Makefile.in +609 -0
- data/vendor/tesseract-2.04/dict/choicearr.h +96 -0
- data/vendor/tesseract-2.04/dict/choices.cpp +210 -0
- data/vendor/tesseract-2.04/dict/choices.h +241 -0
- data/vendor/tesseract-2.04/dict/context.cpp +270 -0
- data/vendor/tesseract-2.04/dict/context.h +82 -0
- data/vendor/tesseract-2.04/dict/dawg.cpp +363 -0
- data/vendor/tesseract-2.04/dict/dawg.h +394 -0
- data/vendor/tesseract-2.04/dict/hyphen.cpp +84 -0
- data/vendor/tesseract-2.04/dict/hyphen.h +125 -0
- data/vendor/tesseract-2.04/dict/lookdawg.cpp +228 -0
- data/vendor/tesseract-2.04/dict/lookdawg.h +76 -0
- data/vendor/tesseract-2.04/dict/makedawg.cpp +449 -0
- data/vendor/tesseract-2.04/dict/makedawg.h +83 -0
- data/vendor/tesseract-2.04/dict/matchdefs.h +145 -0
- data/vendor/tesseract-2.04/dict/permdawg.cpp +415 -0
- data/vendor/tesseract-2.04/dict/permdawg.h +98 -0
- data/vendor/tesseract-2.04/dict/permngram.cpp +358 -0
- data/vendor/tesseract-2.04/dict/permngram.h +33 -0
- data/vendor/tesseract-2.04/dict/permnum.cpp +522 -0
- data/vendor/tesseract-2.04/dict/permnum.h +83 -0
- data/vendor/tesseract-2.04/dict/permute.cpp +1704 -0
- data/vendor/tesseract-2.04/dict/permute.h +93 -0
- data/vendor/tesseract-2.04/dict/reduce.cpp +424 -0
- data/vendor/tesseract-2.04/dict/reduce.h +112 -0
- data/vendor/tesseract-2.04/dict/states.cpp +382 -0
- data/vendor/tesseract-2.04/dict/states.h +111 -0
- data/vendor/tesseract-2.04/dict/stopper.cpp +1458 -0
- data/vendor/tesseract-2.04/dict/stopper.h +103 -0
- data/vendor/tesseract-2.04/dict/trie.cpp +683 -0
- data/vendor/tesseract-2.04/dict/trie.h +190 -0
- data/vendor/tesseract-2.04/dlltest/Makefile.am +2 -0
- data/vendor/tesseract-2.04/dlltest/Makefile.in +388 -0
- data/vendor/tesseract-2.04/dlltest/dlltest.cpp +163 -0
- data/vendor/tesseract-2.04/dlltest/dlltest.dsp +186 -0
- data/vendor/tesseract-2.04/dlltest/dlltest.vcproj +637 -0
- data/vendor/tesseract-2.04/eurotext.tif +0 -0
- data/vendor/tesseract-2.04/image/Makefile.am +10 -0
- data/vendor/tesseract-2.04/image/Makefile.in +596 -0
- data/vendor/tesseract-2.04/image/bitstrm.cpp +157 -0
- data/vendor/tesseract-2.04/image/bitstrm.h +73 -0
- data/vendor/tesseract-2.04/image/img.h +336 -0
- data/vendor/tesseract-2.04/image/imgbmp.cpp +223 -0
- data/vendor/tesseract-2.04/image/imgbmp.h +50 -0
- data/vendor/tesseract-2.04/image/imgerrs.h +35 -0
- data/vendor/tesseract-2.04/image/imgio.cpp +321 -0
- data/vendor/tesseract-2.04/image/imgio.h +22 -0
- data/vendor/tesseract-2.04/image/imgs.cpp +1764 -0
- data/vendor/tesseract-2.04/image/imgs.h +102 -0
- data/vendor/tesseract-2.04/image/imgtiff.cpp +723 -0
- data/vendor/tesseract-2.04/image/imgtiff.h +89 -0
- data/vendor/tesseract-2.04/image/imgunpk.h +1377 -0
- data/vendor/tesseract-2.04/image/svshowim.cpp +40 -0
- data/vendor/tesseract-2.04/image/svshowim.h +25 -0
- data/vendor/tesseract-2.04/java/Makefile.am +4 -0
- data/vendor/tesseract-2.04/java/Makefile.in +473 -0
- data/vendor/tesseract-2.04/java/com/Makefile.am +1 -0
- data/vendor/tesseract-2.04/java/com/Makefile.in +470 -0
- data/vendor/tesseract-2.04/java/com/google/Makefile.am +1 -0
- data/vendor/tesseract-2.04/java/com/google/Makefile.in +470 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/Makefile.am +4 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/Makefile.in +473 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ScrollView.java +421 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/events/Makefile.am +5 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/events/Makefile.in +474 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/events/SVEvent.java +87 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/events/SVEventHandler.java +296 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/events/SVEventType.java +31 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/Makefile.am +7 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/Makefile.in +476 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVAbstractMenuItem.java +58 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVCheckboxMenuItem.java +60 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVEmptyMenuItem.java +48 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVImageHandler.java +228 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVMenuBar.java +130 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVMenuItem.java +61 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVPopupMenu.java +142 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVSubMenuItem.java +41 -0
- data/vendor/tesseract-2.04/java/com/google/scrollview/ui/SVWindow.java +643 -0
- data/vendor/tesseract-2.04/java/makefile +55 -0
- data/vendor/tesseract-2.04/pageseg/Makefile.am +13 -0
- data/vendor/tesseract-2.04/pageseg/Makefile.in +596 -0
- data/vendor/tesseract-2.04/pageseg/leptonica_pageseg.cpp +363 -0
- data/vendor/tesseract-2.04/pageseg/leptonica_pageseg.h +90 -0
- data/vendor/tesseract-2.04/pageseg/leptonica_pageseg_interface.cpp +82 -0
- data/vendor/tesseract-2.04/pageseg/leptonica_pageseg_interface.h +30 -0
- data/vendor/tesseract-2.04/pageseg/pageseg.cpp +170 -0
- data/vendor/tesseract-2.04/pageseg/pageseg.h +29 -0
- data/vendor/tesseract-2.04/phototest.tif +0 -0
- data/vendor/tesseract-2.04/tessdata/Makefile.am +31 -0
- data/vendor/tesseract-2.04/tessdata/Makefile.in +529 -0
- data/vendor/tesseract-2.04/tessdata/configs/Makefile.am +3 -0
- data/vendor/tesseract-2.04/tessdata/configs/Makefile.in +344 -0
- data/vendor/tesseract-2.04/tessdata/configs/api_config +1 -0
- data/vendor/tesseract-2.04/tessdata/configs/box.train +19 -0
- data/vendor/tesseract-2.04/tessdata/configs/box.train.stderr +18 -0
- data/vendor/tesseract-2.04/tessdata/configs/inter +4 -0
- data/vendor/tesseract-2.04/tessdata/configs/kannada +4 -0
- data/vendor/tesseract-2.04/tessdata/configs/makebox +1 -0
- data/vendor/tesseract-2.04/tessdata/configs/unlv +3 -0
- data/vendor/tesseract-2.04/tessdata/confsets +3 -0
- data/vendor/tesseract-2.04/tessdata/eng.DangAmbigs +39 -0
- data/vendor/tesseract-2.04/tessdata/eng.freq-dawg +0 -0
- data/vendor/tesseract-2.04/tessdata/eng.inttemp +0 -0
- data/vendor/tesseract-2.04/tessdata/eng.normproto +1247 -0
- data/vendor/tesseract-2.04/tessdata/eng.pffmtable +111 -0
- data/vendor/tesseract-2.04/tessdata/eng.unicharset +113 -0
- data/vendor/tesseract-2.04/tessdata/eng.user-words +921 -0
- data/vendor/tesseract-2.04/tessdata/eng.word-dawg +0 -0
- data/vendor/tesseract-2.04/tessdata/makedummies +8 -0
- data/vendor/tesseract-2.04/tessdata/tessconfigs/Makefile.am +3 -0
- data/vendor/tesseract-2.04/tessdata/tessconfigs/Makefile.in +344 -0
- data/vendor/tesseract-2.04/tessdata/tessconfigs/batch +2 -0
- data/vendor/tesseract-2.04/tessdata/tessconfigs/batch.nochop +2 -0
- data/vendor/tesseract-2.04/tessdata/tessconfigs/matdemo +7 -0
- data/vendor/tesseract-2.04/tessdata/tessconfigs/msdemo +13 -0
- data/vendor/tesseract-2.04/tessdata/tessconfigs/nobatch +2 -0
- data/vendor/tesseract-2.04/tessdata/tessconfigs/segdemo +9 -0
- data/vendor/tesseract-2.04/tessdll.cpp +351 -0
- data/vendor/tesseract-2.04/tessdll.dsp +2050 -0
- data/vendor/tesseract-2.04/tessdll.h +143 -0
- data/vendor/tesseract-2.04/tessdll.vcproj +5495 -0
- data/vendor/tesseract-2.04/tesseract.dsp +2124 -0
- data/vendor/tesseract-2.04/tesseract.dsw +116 -0
- data/vendor/tesseract-2.04/tesseract.sln +59 -0
- data/vendor/tesseract-2.04/tesseract.spec +188 -0
- data/vendor/tesseract-2.04/tesseract.vcproj +5859 -0
- data/vendor/tesseract-2.04/testing/Makefile.am +2 -0
- data/vendor/tesseract-2.04/testing/Makefile.in +312 -0
- data/vendor/tesseract-2.04/testing/README +43 -0
- data/vendor/tesseract-2.04/testing/counttestset.sh +61 -0
- data/vendor/tesseract-2.04/testing/reorgdata.sh +44 -0
- data/vendor/tesseract-2.04/testing/reports/1995.bus.3B.sum +1 -0
- data/vendor/tesseract-2.04/testing/reports/1995.doe3.3B.sum +1 -0
- data/vendor/tesseract-2.04/testing/reports/1995.mag.3B.sum +1 -0
- data/vendor/tesseract-2.04/testing/reports/1995.news.3B.sum +1 -0
- data/vendor/tesseract-2.04/testing/reports/2.03.summary +9 -0
- data/vendor/tesseract-2.04/testing/reports/2.04.summary +9 -0
- data/vendor/tesseract-2.04/testing/runalltests.sh +110 -0
- data/vendor/tesseract-2.04/testing/runtestset.sh +61 -0
- data/vendor/tesseract-2.04/textord/Makefile.am +20 -0
- data/vendor/tesseract-2.04/textord/Makefile.in +624 -0
- data/vendor/tesseract-2.04/textord/blkocc.cpp +809 -0
- data/vendor/tesseract-2.04/textord/blkocc.h +327 -0
- data/vendor/tesseract-2.04/textord/blobcmpl.h +31 -0
- data/vendor/tesseract-2.04/textord/drawedg.cpp +77 -0
- data/vendor/tesseract-2.04/textord/drawedg.h +34 -0
- data/vendor/tesseract-2.04/textord/drawtord.cpp +469 -0
- data/vendor/tesseract-2.04/textord/drawtord.h +107 -0
- data/vendor/tesseract-2.04/textord/edgblob.cpp +412 -0
- data/vendor/tesseract-2.04/textord/edgblob.h +100 -0
- data/vendor/tesseract-2.04/textord/edgloop.cpp +211 -0
- data/vendor/tesseract-2.04/textord/edgloop.h +66 -0
- data/vendor/tesseract-2.04/textord/fpchop.cpp +1641 -0
- data/vendor/tesseract-2.04/textord/fpchop.h +238 -0
- data/vendor/tesseract-2.04/textord/gap_map.cpp +166 -0
- data/vendor/tesseract-2.04/textord/gap_map.h +40 -0
- data/vendor/tesseract-2.04/textord/makerow.cpp +2628 -0
- data/vendor/tesseract-2.04/textord/makerow.h +295 -0
- data/vendor/tesseract-2.04/textord/oldbasel.cpp +1761 -0
- data/vendor/tesseract-2.04/textord/oldbasel.h +195 -0
- data/vendor/tesseract-2.04/textord/pithsync.cpp +696 -0
- data/vendor/tesseract-2.04/textord/pithsync.h +134 -0
- data/vendor/tesseract-2.04/textord/pitsync1.cpp +425 -0
- data/vendor/tesseract-2.04/textord/pitsync1.h +135 -0
- data/vendor/tesseract-2.04/textord/scanedg.cpp +452 -0
- data/vendor/tesseract-2.04/textord/scanedg.h +74 -0
- data/vendor/tesseract-2.04/textord/sortflts.cpp +80 -0
- data/vendor/tesseract-2.04/textord/sortflts.h +64 -0
- data/vendor/tesseract-2.04/textord/tessout.h +76 -0
- data/vendor/tesseract-2.04/textord/topitch.cpp +2019 -0
- data/vendor/tesseract-2.04/textord/topitch.h +195 -0
- data/vendor/tesseract-2.04/textord/tordmain.cpp +907 -0
- data/vendor/tesseract-2.04/textord/tordmain.h +132 -0
- data/vendor/tesseract-2.04/textord/tospace.cpp +1939 -0
- data/vendor/tesseract-2.04/textord/tospace.h +193 -0
- data/vendor/tesseract-2.04/textord/tovars.cpp +87 -0
- data/vendor/tesseract-2.04/textord/tovars.h +94 -0
- data/vendor/tesseract-2.04/textord/underlin.cpp +312 -0
- data/vendor/tesseract-2.04/textord/underlin.h +53 -0
- data/vendor/tesseract-2.04/textord/wordseg.cpp +620 -0
- data/vendor/tesseract-2.04/textord/wordseg.h +70 -0
- data/vendor/tesseract-2.04/training/Makefile.am +54 -0
- data/vendor/tesseract-2.04/training/Makefile.in +720 -0
- data/vendor/tesseract-2.04/training/cnTraining.cpp +855 -0
- data/vendor/tesseract-2.04/training/cntraining.dsp +243 -0
- data/vendor/tesseract-2.04/training/cntraining.vcproj +950 -0
- data/vendor/tesseract-2.04/training/mergenf.cpp +451 -0
- data/vendor/tesseract-2.04/training/mergenf.h +106 -0
- data/vendor/tesseract-2.04/training/mfTraining.cpp +1341 -0
- data/vendor/tesseract-2.04/training/mftraining.dsp +285 -0
- data/vendor/tesseract-2.04/training/mftraining.vcproj +1055 -0
- data/vendor/tesseract-2.04/training/name2char.cpp +166 -0
- data/vendor/tesseract-2.04/training/name2char.h +38 -0
- data/vendor/tesseract-2.04/training/training.cpp +190 -0
- data/vendor/tesseract-2.04/training/training.h +130 -0
- data/vendor/tesseract-2.04/training/unicharset_extractor.cpp +140 -0
- data/vendor/tesseract-2.04/training/unicharset_extractor.dsp +335 -0
- data/vendor/tesseract-2.04/training/unicharset_extractor.vcproj +769 -0
- data/vendor/tesseract-2.04/training/wordlist2dawg.cpp +69 -0
- data/vendor/tesseract-2.04/training/wordlist2dawg.dsp +319 -0
- data/vendor/tesseract-2.04/training/wordlist2dawg.vcproj +1113 -0
- data/vendor/tesseract-2.04/viewer/Makefile.am +9 -0
- data/vendor/tesseract-2.04/viewer/Makefile.in +591 -0
- data/vendor/tesseract-2.04/viewer/scrollview.cpp +825 -0
- data/vendor/tesseract-2.04/viewer/scrollview.h +414 -0
- data/vendor/tesseract-2.04/viewer/svmnode.cpp +140 -0
- data/vendor/tesseract-2.04/viewer/svmnode.h +94 -0
- data/vendor/tesseract-2.04/viewer/svpaint.cpp +220 -0
- data/vendor/tesseract-2.04/viewer/svutil.cpp +347 -0
- data/vendor/tesseract-2.04/viewer/svutil.h +138 -0
- data/vendor/tesseract-2.04/wordrec/Makefile.am +23 -0
- data/vendor/tesseract-2.04/wordrec/Makefile.in +641 -0
- data/vendor/tesseract-2.04/wordrec/associate.cpp +62 -0
- data/vendor/tesseract-2.04/wordrec/associate.h +93 -0
- data/vendor/tesseract-2.04/wordrec/badwords.cpp +106 -0
- data/vendor/tesseract-2.04/wordrec/badwords.h +51 -0
- data/vendor/tesseract-2.04/wordrec/bestfirst.cpp +526 -0
- data/vendor/tesseract-2.04/wordrec/bestfirst.h +203 -0
- data/vendor/tesseract-2.04/wordrec/charsample.h +208 -0
- data/vendor/tesseract-2.04/wordrec/chop.cpp +458 -0
- data/vendor/tesseract-2.04/wordrec/chop.h +153 -0
- data/vendor/tesseract-2.04/wordrec/chopper.cpp +750 -0
- data/vendor/tesseract-2.04/wordrec/chopper.h +104 -0
- data/vendor/tesseract-2.04/wordrec/closed.cpp +136 -0
- data/vendor/tesseract-2.04/wordrec/closed.h +65 -0
- data/vendor/tesseract-2.04/wordrec/djmenus.cpp +118 -0
- data/vendor/tesseract-2.04/wordrec/djmenus.h +33 -0
- data/vendor/tesseract-2.04/wordrec/drawfx.cpp +92 -0
- data/vendor/tesseract-2.04/wordrec/drawfx.h +33 -0
- data/vendor/tesseract-2.04/wordrec/findseam.cpp +566 -0
- data/vendor/tesseract-2.04/wordrec/findseam.h +69 -0
- data/vendor/tesseract-2.04/wordrec/gradechop.cpp +226 -0
- data/vendor/tesseract-2.04/wordrec/gradechop.h +91 -0
- data/vendor/tesseract-2.04/wordrec/heuristic.cpp +194 -0
- data/vendor/tesseract-2.04/wordrec/heuristic.h +120 -0
- data/vendor/tesseract-2.04/wordrec/makechop.cpp +281 -0
- data/vendor/tesseract-2.04/wordrec/makechop.h +69 -0
- data/vendor/tesseract-2.04/wordrec/matchtab.cpp +191 -0
- data/vendor/tesseract-2.04/wordrec/matchtab.h +45 -0
- data/vendor/tesseract-2.04/wordrec/matrix.cpp +118 -0
- data/vendor/tesseract-2.04/wordrec/matrix.h +104 -0
- data/vendor/tesseract-2.04/wordrec/measure.h +135 -0
- data/vendor/tesseract-2.04/wordrec/metrics.cpp +363 -0
- data/vendor/tesseract-2.04/wordrec/metrics.h +130 -0
- data/vendor/tesseract-2.04/wordrec/mfvars.cpp +51 -0
- data/vendor/tesseract-2.04/wordrec/mfvars.h +27 -0
- data/vendor/tesseract-2.04/wordrec/msmenus.cpp +110 -0
- data/vendor/tesseract-2.04/wordrec/msmenus.h +45 -0
- data/vendor/tesseract-2.04/wordrec/olutil.cpp +153 -0
- data/vendor/tesseract-2.04/wordrec/olutil.h +128 -0
- data/vendor/tesseract-2.04/wordrec/outlines.cpp +172 -0
- data/vendor/tesseract-2.04/wordrec/outlines.h +148 -0
- data/vendor/tesseract-2.04/wordrec/pieces.cpp +410 -0
- data/vendor/tesseract-2.04/wordrec/pieces.h +154 -0
- data/vendor/tesseract-2.04/wordrec/plotedges.cpp +134 -0
- data/vendor/tesseract-2.04/wordrec/plotedges.h +71 -0
- data/vendor/tesseract-2.04/wordrec/plotseg.cpp +116 -0
- data/vendor/tesseract-2.04/wordrec/plotseg.h +73 -0
- data/vendor/tesseract-2.04/wordrec/render.cpp +152 -0
- data/vendor/tesseract-2.04/wordrec/render.h +58 -0
- data/vendor/tesseract-2.04/wordrec/seam.cpp +482 -0
- data/vendor/tesseract-2.04/wordrec/seam.h +136 -0
- data/vendor/tesseract-2.04/wordrec/split.cpp +182 -0
- data/vendor/tesseract-2.04/wordrec/split.h +115 -0
- data/vendor/tesseract-2.04/wordrec/tally.cpp +68 -0
- data/vendor/tesseract-2.04/wordrec/tally.h +94 -0
- data/vendor/tesseract-2.04/wordrec/tessinit.cpp +108 -0
- data/vendor/tesseract-2.04/wordrec/tessinit.h +46 -0
- data/vendor/tesseract-2.04/wordrec/tface.cpp +272 -0
- data/vendor/tesseract-2.04/wordrec/tface.h +35 -0
- data/vendor/tesseract-2.04/wordrec/wordclass.cpp +284 -0
- data/vendor/tesseract-2.04/wordrec/wordclass.h +64 -0
- metadata +708 -0
@@ -0,0 +1,458 @@
|
|
1
|
+
/* -*-C-*-
|
2
|
+
********************************************************************************
|
3
|
+
*
|
4
|
+
* File: chop.c (Formerly chop.c)
|
5
|
+
* Description:
|
6
|
+
* Author: Mark Seaman, OCR Technology
|
7
|
+
* Created: Fri Oct 16 14:37:00 1987
|
8
|
+
* Modified: Tue Jul 30 16:41:11 1991 (Mark Seaman) marks@hpgrlt
|
9
|
+
* Language: C
|
10
|
+
* Package: N/A
|
11
|
+
* Status: Reusable Software Component
|
12
|
+
*
|
13
|
+
* (c) Copyright 1987, Hewlett-Packard Company.
|
14
|
+
** Licensed under the Apache License, Version 2.0 (the "License");
|
15
|
+
** you may not use this file except in compliance with the License.
|
16
|
+
** You may obtain a copy of the License at
|
17
|
+
** http://www.apache.org/licenses/LICENSE-2.0
|
18
|
+
** Unless required by applicable law or agreed to in writing, software
|
19
|
+
** distributed under the License is distributed on an "AS IS" BASIS,
|
20
|
+
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
21
|
+
** See the License for the specific language governing permissions and
|
22
|
+
** limitations under the License.
|
23
|
+
*
|
24
|
+
*********************************************************************************/
|
25
|
+
|
26
|
+
/*----------------------------------------------------------------------
|
27
|
+
I n c l u d e s
|
28
|
+
----------------------------------------------------------------------*/
|
29
|
+
#include "chop.h"
|
30
|
+
#include "debug.h"
|
31
|
+
#include "outlines.h"
|
32
|
+
#include "olutil.h"
|
33
|
+
#include "tordvars.h"
|
34
|
+
#include "callcpp.h"
|
35
|
+
#include "plotedges.h"
|
36
|
+
#include "const.h"
|
37
|
+
|
38
|
+
#include <math.h>
|
39
|
+
|
40
|
+
/*----------------------------------------------------------------------
|
41
|
+
V a r i a b l e s
|
42
|
+
----------------------------------------------------------------------*/
|
43
|
+
make_int_var (chop_debug, 0, make_chop_debug,
|
44
|
+
3, 1, set_chop_debug, "Chop debug");
|
45
|
+
|
46
|
+
make_int_var (chop_enable, 1, make_chop_enable,
|
47
|
+
3, 2, set_chop_enable, "Chop enable");
|
48
|
+
|
49
|
+
make_toggle_var (vertical_creep, 0, make_vertical_creep,
|
50
|
+
3, 4, set_vertical_creep, "Vertical creep");
|
51
|
+
|
52
|
+
make_int_var (split_length, 10000, make_split_length,
|
53
|
+
3, 5, set_split_length, "Split Length");
|
54
|
+
|
55
|
+
make_int_var (same_distance, 2, make_same_distance,
|
56
|
+
3, 6, set_same_distance, "Same distance");
|
57
|
+
|
58
|
+
make_int_var (min_outline_points, 6, make_min_points,
|
59
|
+
3, 9, set_min_points, "Min Number of Points on Outline");
|
60
|
+
|
61
|
+
make_int_var (inside_angle, -50, make_inside_angle,
|
62
|
+
3, 12, set_inside_angle, "Min Inside Angle Bend");
|
63
|
+
|
64
|
+
make_int_var (min_outline_area, 2000, make_outline_area,
|
65
|
+
3, 13, set_outline_area, "Min Outline Area");
|
66
|
+
|
67
|
+
/*----------------------------------------------------------------------
|
68
|
+
V a r i a b l e s (moved from gradechop)
|
69
|
+
----------------------------------------------------------------------*/
|
70
|
+
make_float_var (split_dist_knob, 0.5, make_split_dist,
|
71
|
+
3, 17, set_split_dist, "Split length adjustment");
|
72
|
+
|
73
|
+
make_float_var (overlap_knob, 0.9, make_overlap_knob,
|
74
|
+
3, 18, set_overlap_knob, "Split overlap adjustment");
|
75
|
+
|
76
|
+
make_float_var (center_knob, 0.15, make_center_knob,
|
77
|
+
3, 19, set_center_knob, "Split center adjustment");
|
78
|
+
|
79
|
+
make_float_var (sharpness_knob, 0.06, make_sharpness_knob,
|
80
|
+
3, 20, set_sharpness_knob, "Split sharpness adjustment");
|
81
|
+
|
82
|
+
make_float_var (width_change_knob, 5.0, make_width_change,
|
83
|
+
3, 21, set_width_change_knob, "Width change adjustment");
|
84
|
+
|
85
|
+
make_float_var (ok_split, 100.0, make_ok_split,
|
86
|
+
3, 14, set_ok_split, "OK split limit");
|
87
|
+
|
88
|
+
make_float_var (good_split, 50.0, make_good_split,
|
89
|
+
3, 15, set_good_split, "Good split limit");
|
90
|
+
|
91
|
+
make_int_var (x_y_weight, 3, make_x_y_weight,
|
92
|
+
3, 16, set_x_y_weight, "X / Y length weight");
|
93
|
+
|
94
|
+
/*----------------------------------------------------------------------
|
95
|
+
M a c r o s
|
96
|
+
----------------------------------------------------------------------*/
|
97
|
+
/**********************************************************************
|
98
|
+
* length_product
|
99
|
+
*
|
100
|
+
* Compute the product of the length of two vectors. The
|
101
|
+
* vectors must be of type POINT. This product is used in computing
|
102
|
+
* angles.
|
103
|
+
**********************************************************************/
|
104
|
+
#define length_product(p1,p2) \
|
105
|
+
(sqrt ((((float) (p1).x * (p1).x + (float) (p1).y * (p1).y) * \
|
106
|
+
((float) (p2).x * (p2).x + (float) (p2).y * (p2).y))))
|
107
|
+
|
108
|
+
/*----------------------------------------------------------------------
|
109
|
+
F u n c t i o n s
|
110
|
+
----------------------------------------------------------------------*/
|
111
|
+
/**********************************************************************
|
112
|
+
* point_priority
|
113
|
+
*
|
114
|
+
* Assign a priority to and edge point that might be used as part of a
|
115
|
+
* split. The argument should be of type EDGEPT.
|
116
|
+
**********************************************************************/
|
117
|
+
PRIORITY point_priority(EDGEPT *point) {
|
118
|
+
return ((PRIORITY) point_bend_angle (point));
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
/**********************************************************************
|
123
|
+
* add_point_to_list
|
124
|
+
*
|
125
|
+
* Add an edge point to a POINT_GROUP containg a list of other points.
|
126
|
+
**********************************************************************/
|
127
|
+
void add_point_to_list(POINT_GROUP point_list, EDGEPT *point) {
|
128
|
+
HEAPENTRY data;
|
129
|
+
|
130
|
+
if (SizeOfHeap (point_list) < MAX_NUM_POINTS - 2) {
|
131
|
+
data.Data = (char *) point;
|
132
|
+
data.Key = point_priority (point);
|
133
|
+
HeapStore(point_list, &data);
|
134
|
+
}
|
135
|
+
|
136
|
+
#ifndef GRAPHICS_DISABLED
|
137
|
+
if (chop_debug > 2)
|
138
|
+
mark_outline(point);
|
139
|
+
#endif
|
140
|
+
}
|
141
|
+
|
142
|
+
|
143
|
+
/**********************************************************************
|
144
|
+
* angle_change
|
145
|
+
*
|
146
|
+
* Return the change in angle (degrees) of the line segments between
|
147
|
+
* points one and two, and two and three.
|
148
|
+
**********************************************************************/
|
149
|
+
int angle_change(EDGEPT *point1, EDGEPT *point2, EDGEPT *point3) {
|
150
|
+
VECTOR vector1;
|
151
|
+
VECTOR vector2;
|
152
|
+
|
153
|
+
int angle;
|
154
|
+
float length;
|
155
|
+
|
156
|
+
/* Compute angle */
|
157
|
+
vector1.x = point2->pos.x - point1->pos.x;
|
158
|
+
vector1.y = point2->pos.y - point1->pos.y;
|
159
|
+
vector2.x = point3->pos.x - point2->pos.x;
|
160
|
+
vector2.y = point3->pos.y - point2->pos.y;
|
161
|
+
/* Use cross product */
|
162
|
+
length = length_product (vector1, vector2);
|
163
|
+
if ((int) length == 0)
|
164
|
+
return (0);
|
165
|
+
angle = static_cast<int>(floor(asin(CROSS (vector1, vector2) /
|
166
|
+
length) / PI * 180.0 + 0.5));
|
167
|
+
|
168
|
+
/* Use dot product */
|
169
|
+
if (SCALAR (vector1, vector2) < 0)
|
170
|
+
angle = 180 - angle;
|
171
|
+
/* Adjust angle */
|
172
|
+
if (angle > 180)
|
173
|
+
angle -= 360;
|
174
|
+
if (angle <= -180)
|
175
|
+
angle += 360;
|
176
|
+
return (angle);
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
/**********************************************************************
|
181
|
+
* init_chop
|
182
|
+
*
|
183
|
+
* Create the required chopper variables.
|
184
|
+
**********************************************************************/
|
185
|
+
void init_chop() {
|
186
|
+
make_same_distance();
|
187
|
+
make_vertical_creep();
|
188
|
+
make_x_y_weight();
|
189
|
+
make_chop_enable();
|
190
|
+
make_chop_debug();
|
191
|
+
make_split_dist();
|
192
|
+
make_overlap_knob();
|
193
|
+
make_sharpness_knob();
|
194
|
+
make_width_change();
|
195
|
+
make_good_split();
|
196
|
+
make_ok_split();
|
197
|
+
make_center_knob();
|
198
|
+
make_split_length();
|
199
|
+
make_min_points();
|
200
|
+
make_inside_angle();
|
201
|
+
make_outline_area();
|
202
|
+
}
|
203
|
+
|
204
|
+
|
205
|
+
/**********************************************************************
|
206
|
+
* is_little_chunk
|
207
|
+
*
|
208
|
+
* Return TRUE if one of the pieces resulting from this split would
|
209
|
+
* less than some number of edge points.
|
210
|
+
**********************************************************************/
|
211
|
+
int is_little_chunk(EDGEPT *point1, EDGEPT *point2) {
|
212
|
+
EDGEPT *p = point1; /* Iterator */
|
213
|
+
int counter = 0;
|
214
|
+
|
215
|
+
do {
|
216
|
+
/* Go from P1 to P2 */
|
217
|
+
if (is_same_edgept (point2, p)) {
|
218
|
+
if (is_small_area (point1, point2))
|
219
|
+
return (TRUE);
|
220
|
+
else
|
221
|
+
break;
|
222
|
+
}
|
223
|
+
p = p->next;
|
224
|
+
}
|
225
|
+
while ((p != point1) && (counter++ < min_outline_points));
|
226
|
+
/* Go from P2 to P1 */
|
227
|
+
p = point2;
|
228
|
+
counter = 0;
|
229
|
+
do {
|
230
|
+
if (is_same_edgept (point1, p)) {
|
231
|
+
return (is_small_area (point2, point1));
|
232
|
+
}
|
233
|
+
p = p->next;
|
234
|
+
}
|
235
|
+
while ((p != point2) && (counter++ < min_outline_points));
|
236
|
+
|
237
|
+
return (FALSE);
|
238
|
+
}
|
239
|
+
|
240
|
+
|
241
|
+
/**********************************************************************
|
242
|
+
* is_small_area
|
243
|
+
*
|
244
|
+
* Test the area defined by a split accross this outline.
|
245
|
+
**********************************************************************/
|
246
|
+
int is_small_area(EDGEPT *point1, EDGEPT *point2) {
|
247
|
+
EDGEPT *p = point1->next; /* Iterator */
|
248
|
+
int area = 0;
|
249
|
+
TPOINT origin;
|
250
|
+
|
251
|
+
do {
|
252
|
+
/* Go from P1 to P2 */
|
253
|
+
origin.x = p->pos.x - point1->pos.x;
|
254
|
+
origin.y = p->pos.y - point1->pos.y;
|
255
|
+
area += CROSS (origin, p->vec);
|
256
|
+
p = p->next;
|
257
|
+
}
|
258
|
+
while (!is_same_edgept (point2, p));
|
259
|
+
|
260
|
+
return (area < min_outline_area);
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
/**********************************************************************
|
265
|
+
* pick_close_point
|
266
|
+
*
|
267
|
+
* Choose the edge point that is closest to the critical point. This
|
268
|
+
* point may not be exactly vertical from the critical point.
|
269
|
+
**********************************************************************/
|
270
|
+
EDGEPT *pick_close_point(EDGEPT *critical_point,
|
271
|
+
EDGEPT *vertical_point,
|
272
|
+
int *best_dist) {
|
273
|
+
EDGEPT *best_point = NULL;
|
274
|
+
int this_distance;
|
275
|
+
int found_better;
|
276
|
+
|
277
|
+
do {
|
278
|
+
found_better = FALSE;
|
279
|
+
|
280
|
+
this_distance = edgept_dist (critical_point, vertical_point);
|
281
|
+
if (this_distance <= *best_dist) {
|
282
|
+
|
283
|
+
if (!(same_point (critical_point->pos, vertical_point->pos) ||
|
284
|
+
same_point (critical_point->pos, vertical_point->next->pos) ||
|
285
|
+
(best_point && same_point (best_point->pos, vertical_point->pos)) ||
|
286
|
+
is_exterior_point (critical_point, vertical_point))) {
|
287
|
+
*best_dist = this_distance;
|
288
|
+
best_point = vertical_point;
|
289
|
+
if (vertical_creep)
|
290
|
+
found_better = TRUE;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
vertical_point = vertical_point->next;
|
294
|
+
}
|
295
|
+
while (found_better == TRUE);
|
296
|
+
|
297
|
+
return (best_point);
|
298
|
+
}
|
299
|
+
|
300
|
+
|
301
|
+
/**********************************************************************
|
302
|
+
* prioritize_points
|
303
|
+
*
|
304
|
+
* Find a list of edge points from the outer outline of this blob. For
|
305
|
+
* each of these points assign a priority. Sort these points using a
|
306
|
+
* heap structure so that they can be visited in order.
|
307
|
+
**********************************************************************/
|
308
|
+
void prioritize_points(TESSLINE *outline, POINT_GROUP points) {
|
309
|
+
EDGEPT *this_point;
|
310
|
+
EDGEPT *local_min = NULL;
|
311
|
+
EDGEPT *local_max = NULL;
|
312
|
+
|
313
|
+
this_point = outline->loop;
|
314
|
+
local_min = this_point;
|
315
|
+
local_max = this_point;
|
316
|
+
do {
|
317
|
+
if (debug_5)
|
318
|
+
cprintf ("(%3d,%3d) min=%3d, max=%3d, dir=%2d, ang=%2.0f\n",
|
319
|
+
this_point->pos.x, this_point->pos.y,
|
320
|
+
(local_min ? local_min->pos.y : 999),
|
321
|
+
(local_max ? local_max->pos.y : 999),
|
322
|
+
direction (this_point), point_priority (this_point));
|
323
|
+
|
324
|
+
if (this_point->vec.y < 0) {
|
325
|
+
/* Look for minima */
|
326
|
+
if (local_max != NULL)
|
327
|
+
new_max_point(local_max, points);
|
328
|
+
else if (is_inside_angle (this_point))
|
329
|
+
add_point_to_list(points, this_point);
|
330
|
+
local_max = NULL;
|
331
|
+
local_min = this_point->next;
|
332
|
+
}
|
333
|
+
else if (this_point->vec.y > 0) {
|
334
|
+
/* Look for maxima */
|
335
|
+
if (local_min != NULL)
|
336
|
+
new_min_point(local_min, points);
|
337
|
+
else if (is_inside_angle (this_point))
|
338
|
+
add_point_to_list(points, this_point);
|
339
|
+
local_min = NULL;
|
340
|
+
local_max = this_point->next;
|
341
|
+
}
|
342
|
+
else {
|
343
|
+
/* Flat area */
|
344
|
+
if (local_max != NULL) {
|
345
|
+
if (local_max->prev->vec.y != 0) {
|
346
|
+
new_max_point(local_max, points);
|
347
|
+
}
|
348
|
+
local_max = this_point->next;
|
349
|
+
local_min = NULL;
|
350
|
+
}
|
351
|
+
else {
|
352
|
+
if (local_min->prev->vec.y != 0) {
|
353
|
+
new_min_point(local_min, points);
|
354
|
+
}
|
355
|
+
local_min = this_point->next;
|
356
|
+
local_max = NULL;
|
357
|
+
}
|
358
|
+
}
|
359
|
+
|
360
|
+
/* Next point */
|
361
|
+
this_point = this_point->next;
|
362
|
+
}
|
363
|
+
while (this_point != outline->loop);
|
364
|
+
}
|
365
|
+
|
366
|
+
|
367
|
+
/**********************************************************************
|
368
|
+
* new_min_point
|
369
|
+
*
|
370
|
+
* Found a new minimum point try to decide whether to save it or not.
|
371
|
+
* Return the new value for the local minimum. If a point is saved then
|
372
|
+
* the local minimum is reset to NULL.
|
373
|
+
**********************************************************************/
|
374
|
+
void new_min_point(EDGEPT *local_min, POINT_GROUP points) {
|
375
|
+
inT16 dir;
|
376
|
+
|
377
|
+
dir = direction (local_min);
|
378
|
+
|
379
|
+
if (dir < 0) {
|
380
|
+
add_point_to_list(points, local_min);
|
381
|
+
return;
|
382
|
+
}
|
383
|
+
|
384
|
+
if (dir == 0 && point_priority (local_min) < 0) {
|
385
|
+
add_point_to_list(points, local_min);
|
386
|
+
return;
|
387
|
+
}
|
388
|
+
}
|
389
|
+
|
390
|
+
|
391
|
+
/**********************************************************************
|
392
|
+
* new_max_point
|
393
|
+
*
|
394
|
+
* Found a new minimum point try to decide whether to save it or not.
|
395
|
+
* Return the new value for the local minimum. If a point is saved then
|
396
|
+
* the local minimum is reset to NULL.
|
397
|
+
**********************************************************************/
|
398
|
+
void new_max_point(EDGEPT *local_max, POINT_GROUP points) {
|
399
|
+
inT16 dir;
|
400
|
+
|
401
|
+
dir = direction (local_max);
|
402
|
+
|
403
|
+
if (dir > 0) {
|
404
|
+
add_point_to_list(points, local_max);
|
405
|
+
return;
|
406
|
+
}
|
407
|
+
|
408
|
+
if (dir == 0 && point_priority (local_max) < 0) {
|
409
|
+
add_point_to_list(points, local_max);
|
410
|
+
return;
|
411
|
+
}
|
412
|
+
}
|
413
|
+
|
414
|
+
|
415
|
+
/**********************************************************************
|
416
|
+
* vertical_projection_point
|
417
|
+
*
|
418
|
+
* For one point on the outline, find the corresponding point on the
|
419
|
+
* other side of the outline that is a likely projection for a split
|
420
|
+
* point. This is done by iterating through the edge points until the
|
421
|
+
* X value of the point being looked at is greater than the X value of
|
422
|
+
* the split point. Ensure that the point being returned is not right
|
423
|
+
* next to the split point. Return the edge point as a result.
|
424
|
+
**********************************************************************/
|
425
|
+
void vertical_projection_point(EDGEPT *split_point, EDGEPT *target_point,
|
426
|
+
EDGEPT** best_point) {
|
427
|
+
EDGEPT *p; /* Iterator */
|
428
|
+
EDGEPT *this_edgept; /* Iterator */
|
429
|
+
int x = split_point->pos.x; /* X value of vertical */
|
430
|
+
int best_dist = LARGE_DISTANCE;/* Best point found */
|
431
|
+
|
432
|
+
if (*best_point != NULL)
|
433
|
+
best_dist = edgept_dist(split_point, *best_point);
|
434
|
+
|
435
|
+
p = target_point;
|
436
|
+
/* Look at each edge point */
|
437
|
+
do {
|
438
|
+
if ((((p->pos.x <= x) && (x <= p->next->pos.x)) ||
|
439
|
+
((p->next->pos.x <= x) && (x <= p->pos.x))) &&
|
440
|
+
!same_point (split_point->pos, p->pos) &&
|
441
|
+
!same_point (split_point->pos, p->next->pos)
|
442
|
+
&& (*best_point == NULL || !same_point ((*best_point)->pos, p->pos))) {
|
443
|
+
|
444
|
+
this_edgept = near_point (split_point, p, p->next);
|
445
|
+
|
446
|
+
if (*best_point == NULL)
|
447
|
+
best_dist = edgept_dist (split_point, this_edgept);
|
448
|
+
|
449
|
+
this_edgept =
|
450
|
+
pick_close_point(split_point, this_edgept, &best_dist);
|
451
|
+
if (this_edgept)
|
452
|
+
*best_point = this_edgept;
|
453
|
+
}
|
454
|
+
|
455
|
+
p = p->next;
|
456
|
+
}
|
457
|
+
while (p != target_point);
|
458
|
+
}
|
@@ -0,0 +1,153 @@
|
|
1
|
+
/* -*-C-*-
|
2
|
+
********************************************************************************
|
3
|
+
*
|
4
|
+
* File: chop.h (Formerly chop.h)
|
5
|
+
* Description:
|
6
|
+
* Author: Mark Seaman, SW Productivity
|
7
|
+
* Created: Fri Oct 16 14:37:00 1987
|
8
|
+
* Modified: Wed Jul 10 14:47:37 1991 (Mark Seaman) marks@hpgrlt
|
9
|
+
* Language: C
|
10
|
+
* Package: N/A
|
11
|
+
* Status: Reusable Software Component
|
12
|
+
*
|
13
|
+
* (c) Copyright 1987, Hewlett-Packard Company.
|
14
|
+
** Licensed under the Apache License, Version 2.0 (the "License");
|
15
|
+
** you may not use this file except in compliance with the License.
|
16
|
+
** You may obtain a copy of the License at
|
17
|
+
** http://www.apache.org/licenses/LICENSE-2.0
|
18
|
+
** Unless required by applicable law or agreed to in writing, software
|
19
|
+
** distributed under the License is distributed on an "AS IS" BASIS,
|
20
|
+
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
21
|
+
** See the License for the specific language governing permissions and
|
22
|
+
** limitations under the License.
|
23
|
+
*
|
24
|
+
*******************************************************************************/
|
25
|
+
|
26
|
+
#ifndef CHOP_H
|
27
|
+
#define CHOP_H
|
28
|
+
|
29
|
+
/*----------------------------------------------------------------------
|
30
|
+
I n c l u d e s
|
31
|
+
----------------------------------------------------------------------*/
|
32
|
+
#include "oldheap.h"
|
33
|
+
#include "seam.h"
|
34
|
+
|
35
|
+
/*----------------------------------------------------------------------
|
36
|
+
T y p e s
|
37
|
+
---------------------------------------------------------------------*/
|
38
|
+
#define MAX_NUM_POINTS 50
|
39
|
+
typedef HEAP *POINT_GROUP;
|
40
|
+
typedef HEAP *SPLIT_GROUP;
|
41
|
+
|
42
|
+
/*----------------------------------------------------------------------
|
43
|
+
V a r i a b l e s
|
44
|
+
----------------------------------------------------------------------*/
|
45
|
+
extern int chop_enable;
|
46
|
+
extern int chop_debug;
|
47
|
+
extern int same_distance;
|
48
|
+
extern int split_length;
|
49
|
+
extern float center_knob;
|
50
|
+
extern float overlap_knob;
|
51
|
+
extern float split_dist_knob;
|
52
|
+
extern float width_change_knob;
|
53
|
+
extern float sharpness_knob;
|
54
|
+
extern int min_outline_area;
|
55
|
+
extern int min_outline_points;
|
56
|
+
extern float good_split;
|
57
|
+
extern float ok_split;
|
58
|
+
extern int chop_enable;
|
59
|
+
|
60
|
+
/*----------------------------------------------------------------------
|
61
|
+
M a c r o s
|
62
|
+
----------------------------------------------------------------------*/
|
63
|
+
/**********************************************************************
|
64
|
+
* point_bend_angle
|
65
|
+
*
|
66
|
+
* Measure the angle of bend at this edge point. The argument should
|
67
|
+
* be of type EDGEPT.
|
68
|
+
**********************************************************************/
|
69
|
+
#define point_bend_angle(point) \
|
70
|
+
(angle_change ((point)->prev, (point), (point)->next))
|
71
|
+
|
72
|
+
/*----------------------------------------------------------------------
|
73
|
+
F u n c t i o n s
|
74
|
+
----------------------------------------------------------------------*/
|
75
|
+
PRIORITY point_priority(EDGEPT *point);
|
76
|
+
|
77
|
+
void add_point_to_list(POINT_GROUP point_list, EDGEPT *point);
|
78
|
+
|
79
|
+
int angle_change(EDGEPT *point1, EDGEPT *point2, EDGEPT *point3);
|
80
|
+
|
81
|
+
void init_chop();
|
82
|
+
|
83
|
+
int is_little_chunk(EDGEPT *point1, EDGEPT *point2);
|
84
|
+
|
85
|
+
int is_small_area(EDGEPT *point1, EDGEPT *point2);
|
86
|
+
|
87
|
+
EDGEPT *pick_close_point(EDGEPT *critical_point,
|
88
|
+
EDGEPT *vertical_point,
|
89
|
+
int *best_dist);
|
90
|
+
|
91
|
+
void prioritize_points(TESSLINE *outline, POINT_GROUP points);
|
92
|
+
|
93
|
+
void new_min_point(EDGEPT *local_min, POINT_GROUP points);
|
94
|
+
|
95
|
+
void new_max_point(EDGEPT *local_max, POINT_GROUP points);
|
96
|
+
|
97
|
+
void vertical_projection_point(EDGEPT *split_point, EDGEPT *target_point,
|
98
|
+
EDGEPT** best_point);
|
99
|
+
|
100
|
+
/*
|
101
|
+
#if defined(__STDC__) || defined(__cplusplus)
|
102
|
+
# define _ARGS(s) s
|
103
|
+
#else
|
104
|
+
# define _ARGS(s) ()
|
105
|
+
#endif*/
|
106
|
+
|
107
|
+
/* chop.c
|
108
|
+
PRIORITY point_priority
|
109
|
+
_ARGS((EDGEPT *point));
|
110
|
+
|
111
|
+
void add_point_to_list
|
112
|
+
_ARGS((POINT_GROUP point_list,
|
113
|
+
EDGEPT *point));
|
114
|
+
|
115
|
+
SEAM *create_split
|
116
|
+
_ARGS((BLOB *blob,
|
117
|
+
POINT_GROUP points));
|
118
|
+
|
119
|
+
SPLIT *extended_split
|
120
|
+
_ARGS((inT32 location,
|
121
|
+
EDGEPT *starting_point));
|
122
|
+
|
123
|
+
SEAM *get_best_pair
|
124
|
+
_ARGS((SPLIT_GROUP split_queue,
|
125
|
+
BLOB *blob));
|
126
|
+
|
127
|
+
void init_chop
|
128
|
+
_ARGS((void));
|
129
|
+
|
130
|
+
EDGEPT *pick_close_point
|
131
|
+
_ARGS((EDGEPT *critical_point,
|
132
|
+
EDGEPT *vertical_point,
|
133
|
+
int *best_dist));
|
134
|
+
|
135
|
+
void prioritize_points
|
136
|
+
_ARGS((TESSLINE *outline,
|
137
|
+
POINT_GROUP points));
|
138
|
+
|
139
|
+
void new_min_point
|
140
|
+
_ARGS((EDGEPT *local_min,
|
141
|
+
POINT_GROUP points));
|
142
|
+
|
143
|
+
void new_max_point
|
144
|
+
_ARGS((EDGEPT *local_max,
|
145
|
+
POINT_GROUP points));
|
146
|
+
|
147
|
+
EDGEPT *vertical_projection_point
|
148
|
+
_ARGS((EDGEPT *split_point,
|
149
|
+
EDGEPT *target_point));
|
150
|
+
|
151
|
+
#undef _ARGS
|
152
|
+
*/
|
153
|
+
#endif
|