Re: contrast shrink?

Anthony Thyssen <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <20100331135123.75094827@wraith>
On Tue, 30 Mar 2010 22:57:34 -0400
[email protected] wrote:

| I use ImageMagick a LOT.
| Thanks for a great program.
| 
| I use
| convert imagein -channel all -contrast-stretch 0x0 imageout
| on raw film scans to expand the histogram prior to gui editing. 
| Sometimes I'd like to shrink/de-contrast an image.
| like
| convert imagein -channel all -contrast-stretch -1%%x-1%% imageout
| But negative arguments to -contrast-stretch seem to be ignored, with no 
| complaint, and no effect on the image.
| 
| Can I achieve a contrast shrink some other way?
| TIA
| 

+level 1%

See IM examples, Color Modifications, Reversed Level Adjustments

Instead of -contrast-stretch 0  you should use -auto-level which.
the former stretched 'binned' history values, the later uses exact
maximum and minimum values.

It is not well documented yet as their is still work to be done in
the 'Histogram Modification' area, and the current operators are
a little all over the place.



  Anthony Thyssen ( System Programmer )    <[email protected]>
 --------------------------------------------------------------------------
int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
+r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2
]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n","]#"[!a[q-1]]);}
 --------------------------------------------------------------------------
   Anthony's Castle     http://www.cit.griffith.edu.au/~anthony/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.