Search found 4 matches

by MitchMitchel23
2014-09-29T07:22:50-07:00
Forum: Users
Topic: Calculate white-point with histogram
Replies: 10
Views: 3597

Re: Calculate white-point with histogram

Hi fmw42!

Script with level:

infile="T_001.png"
inname=`convert $infile -format "%t" info:`
maxbin=`convert $infile -depth 8 -format "%c" histogram:info:- | sed 's/^[ ]*//' | tr -cs "0-9\n" " " | sort -g -r -k 1 | head -n 1 | cut -d" " -f2`
echo $maxbin
maxpct=`convert xc: -format "%[fx:$maxbin ...
by MitchMitchel23
2014-09-28T12:34:01-07:00
Forum: Users
Topic: Calculate white-point with histogram
Replies: 10
Views: 3597

Re: Calculate white-point with histogram

I'm using ImageMagick 6.7.7-10 2014-03-06 Q16 on Ubuntu 14.04 LTS x64.

I already tried textcleaner.sh. Really nice script, but it's not what I want, because there is not only text. The result should be also greyscale, not black and white.

The best results without loosing to much information was ...
by MitchMitchel23
2014-09-28T11:34:06-07:00
Forum: Users
Topic: Calculate white-point with histogram
Replies: 10
Views: 3597

Re: Calculate white-point with histogram

Hi fmw42!

Here is an example:
http://spies-online.org/T_001.png

HIstogram:
http://spies-online.org/histogram.gif

-auto-level seems to do nothing:
http://spies-online.org/T_001_auto-level.png

The result with -linear-stretch 0%x83%:
http://spies-online.org/T_001_linear-stretch.png

The ...
by MitchMitchel23
2014-09-28T08:08:42-07:00
Forum: Users
Topic: Calculate white-point with histogram
Replies: 10
Views: 3597

Calculate white-point with histogram

Hi!

I have thousends of scans of old documents (all greyscale, all of different grey backgrounds). I would like to use convert-stretch on each file individually.
I thought I could use the histogram to calculate the white-point I have to use.

Sample histogram "convert Test_001.png -define ...