Daniel Reetz, the founder of the DIY Book Scanner community, has recently started making videos of prototyping and shop tips. If you are tinkering with a book scanner (or any other project) in your home shop, these tips will come in handy. https://www.youtube.com/channel/UCn0gq8 ... g_8K1nfInQ

"Extreme" Despeckling?

Scan Tailor specific announcements, releases, workflows, tips, etc. NO FEATURE REQUESTS IN THIS FORUM, please.
ibr4him
Posts: 102
Joined: 18 Oct 2010, 10:36

Re: "Extreme" Despeckling?

Post by ibr4him » 29 Jan 2011, 22:04


Anonymous1

Re: "Extreme" Despeckling?

Post by Anonymous1 » 29 Jan 2011, 22:35

With no C++ experience, have fun waiting. I'm still hacking around :P

Anonymous1

Re: "Extreme" Despeckling?

Post by Anonymous1 » 30 Jan 2011, 13:29

Wow, that was amazingly simple!

Okay, so the "Bounding Box" picture zone option is actually working!

This is the image mask (white = don't make bitonal):
Screenshot.png
Screenshot-1.png
I'll post a working patch soon (I'm still integrating it with the GUI).

Anonymous1

Re: "Extreme" Despeckling?

Post by Anonymous1 » 30 Jan 2011, 14:03

@Tulon, how would I check for the state of a checkbox from within OutputGenerator.cpp? I saw there was a render params variable, but it was a bit hard to understand...

Tulon
Posts: 687
Joined: 03 Oct 2009, 06:13
Number of books owned: 0
Location: London, UK
Contact:

Re: "Extreme" Despeckling?

Post by Tulon » 30 Jan 2011, 14:17

Anonymous wrote:@Tulon, how would I check for the state of a checkbox from within OutputGenerator.cpp? I saw there was a render params variable, but it was a bit hard to understand...
You can't access it directly, as OutputGenerator runs in a different thread. The way to go is to represent the checkbox in output::Settings, read it from output::Task::process() and pass it to OutputGenerator from there.
Scan Tailor experimental doesn't output 96 DPI images. It's just what your software shows when DPI information is missing. Usually what you get is input DPI times the resolution enhancement factor.

Anonymous1

Re: "Extreme" Despeckling?

Post by Anonymous1 » 30 Jan 2011, 16:28

Tulon wrote:You can't access it directly, as OutputGenerator runs in a different thread. The way to go is to represent the checkbox in output::Settings, read it from output::Task::process() and pass it to OutputGenerator from there.
Hmm, my lack of C++ knowledge is taking it's toll. I can't seem to get it to work. I'll probably play with it more tomorrow...

User avatar
jimboh
Posts: 82
Joined: 06 Jan 2011, 00:55

Re: "Extreme" Despeckling?

Post by jimboh » 30 Jan 2011, 17:01

Is that Bounding Box automatic, or manually created with mouse clicks on the corners?

Anonymous1

Re: "Extreme" Despeckling?

Post by Anonymous1 » 30 Jan 2011, 18:44

It's automatic. That's what I was trying to do, but now I have to let the user turn it off ;)

User avatar
jimboh
Posts: 82
Joined: 06 Jan 2011, 00:55

Re: "Extreme" Despeckling?

Post by jimboh » 30 Jan 2011, 19:45

Anonymous wrote:It's automatic. ... but now I have to let the user turn it off ;)
Cool!

Anonymous1

Re: "Extreme" Despeckling?

Post by Anonymous1 » 30 Jan 2011, 23:53

Aargh, I am still stuck with the UI stuff... Time to attempt to segment the image mask to allow multiple bounding boxes to be generated.

Post Reply