siriz / leptonica

Automatically exported from code.google.com/p/leptonica
0 stars 0 forks source link

adaptmaptest.c is hard to use since suggested example file wet-day.jpg is missing #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run adaptmaptest.exe

What is the expected output? What do you see instead?
Certain #defines seem customized for wet-day.jpg, so I'm not sure what I'm
supposed to see.
In addition, adaptmaptest.exe (and many other prog programs) assumes the
presence of gthumb which won't work under Windows. I'll file a separate
issue for this since fix is somewhat complicated.

What version of the product are you using? On what operating system?
leptonlib-1.63.
Microsoft Visual Studio 2008 SP1 with latest updates also applied.
Windows XP Pro SP3.

Please provide any additional information below.

Original issue reported on code.google.com by tomp2...@gmail.com on 4 Dec 2009 at 10:18

GoogleCodeExporter commented 9 years ago
Thanks.  This will be included in 1.64.
I've attached the image here for you.

Original comment by dan.bloo...@gmail.com on 4 Dec 2009 at 10:41

Attachments:

GoogleCodeExporter commented 9 years ago
Wow works nicely. But it seems a little like cheating to have to specify the
"Location of image region" as XS, YS, WS, HS.

Does some example exist that shows cleanup of wet-day.jpg but using an
auto-determined image region? Would pageseg.c's pixGetRegionsBinary() do this 
somehow?

Original comment by tomp2...@gmail.com on 5 Dec 2009 at 12:21

GoogleCodeExporter commented 9 years ago
Fixed in 1.64.

Yes, the demonstration is cheating to the extent that it doesn't
show how to find the image region.  That's another story, and
the approach to auto-determining the image regions depends on the
characteristics of the scan -- particularly on the expected variation
in illumination.  

One approach is to do region growing outside the image, and hope
that you don't grow into the image.

Original comment by dan.bloo...@gmail.com on 3 Jan 2010 at 11:39