[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-29 Thread Rolf Bensch
I just committed dynamic thresholding to git. 1 bit B/W scans can be controlled by following options: - threshold - threshold-curve - gamma Dynamic thresholding uses a look up table of thresholds. The table is generated for each scan from the parameters threshold-curve as slope and threshold as

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-09 Thread Rolf Bensch
Am 09.02.2012 01:30, schrieb ibu ? radempa ?: > The patch works and I've sent further logs to Rolf off-list. ibu > I just pushed the patch to git. Many thanks to ibu for testing. Cheers, Rolf

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-09 Thread ibu ☉ radempa ䷰
ibu ? radempa ? wrote: >> I guess pixma_binarize_line was not called before. > > Please find new logs, again from a fresh clone with your patches, > attached. Still only part of the area is scanned in lineart mode, bith > for flatbed and ADF. Just for record: I made a mistake and forgot to 'make

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-08 Thread ibu ☉ radempa ䷰
Dated 2012-02-08 10:02, Rolf Bensch said: > Am 07.02.2012 11:18, schrieb ibu ? radempa ?: >> Attached you find both. The command lines are included on top of the log >> files; I used 300dpi for flatbed and 75dpi for ADF. (After scanning >> lineart with ADF the paper got stuck, of course, and I had

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-08 Thread Rolf Bensch
Am 07.02.2012 11:18, schrieb ibu ? radempa ?: > Attached you find both. The command lines are included on top of the log > files; I used 300dpi for flatbed and 75dpi for ADF. (After scanning > lineart with ADF the paper got stuck, of course, and I had to reboot the > device - which is a pre-existin

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-07 Thread ibu ☉ radempa ䷰
Dated 2012-02-07 10:30, Rolf Bensch said: >>> There seems to be a problem somewhere around post_process_image_data in >>> pixma_mp150.c. Please use the attached patch to generate log files of >>> gray and lineart scans. Please send them packed to avoid an unreadable >>> ML archive. >> >> Attached.

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-07 Thread Rolf Bensch
Am 06.02.2012 17:52, schrieb ibu ? radempa ?: > > Thanks! There is a small typo however in your commit: > > DEVICE ("Canon PIXMA MX360", "MX360", MX350_PID, 1200, 0, 0, 638, 1050, > PIXMA_CAP_CIS | PIXMA_CAP_ADF), > > should read > > DEVICE ("Canon PIXMA MX360", "MX360", MX360_PID, 1200, 0, 0, 638,

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-06 Thread Rolf Bensch
Hello Ibu, > > Hello Rolf, > > thanks for the patch. I've tried it with a scanner in the pixma_mp150 > series, Canon MX360, which is however not yet added to pixma_mp150.c, > and I'm therefore using this patch: Did you patch your sources or did you fetch the latest version from git? > > $ diff

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-04 Thread ibu ☉ radempa ䷰
Rolf Bensch wrote: > I just commited 1 bit B/W lineart for all scanners in the pixma_mp150 > and pixma_mp810 subdrivers to the git tree. > > Due to the fact that these ccd scanners doesn't support generic lineart, > I implemented software-lineart. The graphic frontend (Xsane) provides a > slider t

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-04 Thread Rolf Bensch
Hi Allan, I still reused the code from the genesys backend. But without a capable genesys or epjitsu scanner I took the code snippets I understood. Please give me a short summary about the missing parts. Especially of the needed interface parameters and the frontend usage e.g. xsane. Many than

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-04 Thread Rolf Bensch
Hi, Am 03.02.2012 23:35, schrieb ?l ??gn?r: > Am Fr, 03 Feb 2012 22:31:51 CET schrieb Rolf Bensch: > > Hi, > >> I just commited 1 bit B/W lineart for all scanners in the pixma_mp150 >> and pixma_mp810 subdrivers to the git tree. > > Great, I remember, that Gernot told me, he might code these too s

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-03 Thread Аl Воgnеr
Am Fr, 03 Feb 2012 22:31:51 CET schrieb Rolf Bensch: Hi, > I just commited 1 bit B/W lineart for all scanners in the pixma_mp150 > and pixma_mp810 subdrivers to the git tree. Great, I remember, that Gernot told me, he might code these too some day for the 9000F. So maybe you can talk about this

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-03 Thread Rolf Bensch
Hello, I just commited 1 bit B/W lineart for all scanners in the pixma_mp150 and pixma_mp810 subdrivers to the git tree. Due to the fact that these ccd scanners doesn't support generic lineart, I implemented software-lineart. The graphic frontend (Xsane) provides a slider to set the threshold.

[sane-devel] PIXMA: 1 Bit B/W Lineart for pixma_mp150 and pixma_mp810 Subdrivers

2012-02-03 Thread m. allan noah
Cool. You might also want to look at the dynamic thresholding code I added to the epjitsu backend. Stef was able to copy it to genesys as well. Basically adds a sliding window and some hysteresis to the threshold determination, brings out text on gray backgrounds and such. I'd like to add it to san