summary refs log tree commit diff
path: root/ppmflash.html
blob: 7b86ab5ad85c9a5ea2f4fa01547c8389f22ae156 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Ppmflash User Manual</TITLE></HEAD>
<BODY>
<H1>ppmflash</H1>
Updated: 26 January 2003
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
ppmflash - brighten a picture to approach white

<A NAME="lbAC">&nbsp;</A>

<H2>SYNOPSIS</H2>
ppmflash 
<I>flashfactor</I>
[<I>ppmfile</I>]

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>ppmflash</b> reads a PPM image as input.  It changes the color of
each pixel to bring it a specified amount closer to white.  It
generates a PPM image of the result.

<p><i>flashfactor</i> is a real number between 0 and 1, inclusive.
<b>ppmflash</b> increases the intensity of each RGB component by the
fraction <i>flashfactor</i> of the difference between the current
value and full intensity.  So if a pixel contains 60% full red, 10%
full green, and no blue and you specify 0.5 (half), <b>ppmflash</b>
increases the red to 80% (because it was 40% from full intensity, so
it adds half of 40% to the original 60%), the green to 55%, and the
blue to 50%.

<p>If <i>flashfactor</i> is zero, the output is identical to the input.
If <i>flashfactor</i> is one, the output is all white.

<p><b>ppmbrighten</b> does a more normal kind of brightening.
<b>pamfunc</b> does a very simple brightening.  Both
<b>ppmbrighten</b> and <b>pamfunc</b> can reduce brightness as well.

<p><b>pnmgamma</b> is another way people do a similar brightening, though
it isn't really intended for that.

<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="ppmbrighten.html">ppmbrighten</A>
<A HREF="pamfunc.html">pamfunc</A>,
<A HREF="pnmgamma.html">pnmgamma</A>,
<A HREF="ppm.html">ppm</A>,

<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>

Copyright (C) 1993 by Frank Neumann

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">SEE ALSO</A>
<LI><A HREF="#lbAF">AUTHOR</A>
</UL>
</BODY>
</HTML>