summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-01-19 19:27:36 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-01-19 19:27:36 +0100
commitf1e6a065189ceb482fa8f4c32f1fabc954197068 (patch)
treecf6bd51d99b7f8643f24ddd58df4e9c245a12496
parenta5312a309aab882494f7b1a9b9916fe0d3ffb057 (diff)
add man page
-rw-r--r--pnmcurve.146
1 files changed, 46 insertions, 0 deletions
diff --git a/pnmcurve.1 b/pnmcurve.1
new file mode 100644
index 0000000..89cb8c4
--- /dev/null
+++ b/pnmcurve.1
@@ -0,0 +1,46 @@
+.Dd January 19 2008
+.Dt PNMCURVE 1
+.Os
+.Sh NAME
+.Nm pnmcurve
+.Nd apply tone curves to pnm images
+.Sh SYNOPSIS
+.Nm
+.Op Fl r
+.Op Fl g
+.Op Fl b
+.Op Fl c Ar curve
+.Sh DESCRIPTION
+.Nm
+applies tone curves to pnm images.
+Curves are specified as a set of control points of a cubic spline.
+.Nm
+applies the resulting spline curve to the pnm image read
+from stdin and writes the resulting image to stdout.
+Command line switches allow to apply the curve only to
+selected color channels.
+.Pp
+The options are as follows:
+.Bl -tag -width indent
+.It Fl r
+Apply curve to red channel.
+.It Fl g
+Apply curve to green channel.
+.It Fl b
+Apply curve to blue channel.
+.It Fl c
+Curve to apply.
+Curves must be of the form
+x1:y1,x2:y2,x3:y3 where xi:yi are
+control points of a cubic spline curve.
+xi, yi must be in the range [0.0,1.0].
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh EXAMPLES
+.Dl "pnmcurve -c 0.0:0.0,0.5:0.2,1.0:1.0 < test.pnm > darker.pnm"
+.Pp
+.Sh SEE ALSO
+pnm(5)
+.Sh AUTHOR
+Johannes Hofmann <Johannes.Hofmann@gmx.de>