View Single Post
Old 07-15-2009, 05:34 AM   #6
Kostas
Still wondering why
Kostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-books
 
Kostas's Avatar
 
Posts: 253
Karma: 800
Join Date: Jun 2009
Location: Athens, Greece
Device: PRS 505, (BlackBerry Bold ?)
Hi frediz, thanks again for the precious info!

Quote:
Originally Posted by frediz View Post
Btw m=20 ? you should have dark pics ?!
No! Maybe the low value is due to the fact I was trying to split plain A4+ pages (750 x 1000 pixels) with 3 or 4 rows of comic strips per page.

Quote:
Originally Posted by frediz View Post
I don't know if you played with s options. This will force splitting not cut sub images with
dimension less than s in this direction.
To be clear, with default s=140 : the height of images produced by mhs won't be less than 140 pixels.
Yes, I did play with the s option, but I got better results tweaking on the value of m.
After a few test, I got 46 pages automatically horizontally splitted in 30 secs!!

Cpu's algorithm was "intelligent" enough to autodetect whether there were 3 or 4 rows, with only one failure!!
Much better than anything that I could get with papercrop which, besides, degrades a lot the quality of the image, despite my efforts to tweak it.

Quote:
Originally Posted by frediz View Post
Checking the code, there is hidden features
mhs = min based horizontal splitting
I see some more filters :
- ahs : average based horizontal splitting
- avs : average based vertical splitting

So splitting can be done also based on an average threshold. And vertically too.
But average based results were not satisfying to me. Min is simple and gave good results. But all of this, once again, was just feelings for my own needs. Some may
have other and be interested in this.
Anyway I can add a "mvs", it wouldn't be hard I think.

yes "splitpages" is a dummy in-the-middle cut.
mvs equivalent would be something ok for you ?
Wow! cpu is far beyond my expectations as is now!
Besides, I'm pretty sure that I don't get the difference between mean and average splitting!

Frediz, you rock!

PS: With an effort on producing clearer instructions, I think this topic deserves a sticky status.
Kostas is offline   Reply With Quote