Page 1 of 1
Restoring quantum range after -evaluate min max
Posted: 2017-04-20T17:32:51-07:00
by geoland
A short query.
Having applied -evaluate min=% and -evaluate max=%
where % = a chosen value
Is quantum range restored to the image automatically with the new values applied or is it necessary to normalize or auto-level the image.
I may be missing a salient point about IM operation.
Re: Restoring quantum range after -evaluate min max
Posted: 2017-04-20T17:34:08-07:00
by fmw42
I do not think the image will be automatically stretched to full dynamic range by using -evaluate min or max. It just sets the upper/lower bound.
Re: Restoring quantum range after -evaluate min max
Posted: 2017-04-20T17:35:30-07:00
by geoland
-auto-level might be necessary then.
Re: Restoring quantum range after -evaluate min max
Posted: 2017-04-20T17:36:53-07:00
by fmw42
Code: Select all
convert -size 256x256 gradient: -evaluate min 50% result.png
Shows that the maximum value will be 50% gray and minimum value is 0. So it just clips at that value and does not stretch again to full dynamic range.
If you want it stretched, use -level or -contrast-stretch or add -auto-level after -evaluate
Re: Restoring quantum range after -evaluate min max
Posted: 2017-04-20T17:40:27-07:00
by geoland
Thanks Fred. That's what I thought. Saved me a lot of playing around.
Re: Restoring quantum range after -evaluate min max
Posted: 2017-04-21T03:14:53-07:00
by snibgo
wrote:Is quantum range restored to the image automatically with the new values applied or is it necessary to normalize or auto-level the image.
IM operations don't auto-level. If you want this, you need to explicitly ask for it.