128 lines
2.7 KiB
HTML
128 lines
2.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ppmhist</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ppmhist</H1>
|
|
Section: User Commands (1)<BR>Updated: 17 September 2000<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ppmhist - print a histogram of a portable pixmap
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ppmhist</B>
|
|
|
|
[<B>-hexcolor</B>]
|
|
|
|
[<B>-noheader</B>]
|
|
|
|
[<B>-map</B>]
|
|
|
|
[<B>-nomap</B>]
|
|
|
|
[<B>-sort=</B>{<B>frequency</B>,<B>rgb</B>}]
|
|
|
|
[<I>ppmfile</I>]
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Reads a PPM image as input. Generates a histogram of the colors in
|
|
the image, i.e. a list of all the colors and how many pixels of each color
|
|
are in the image.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-sort=</B>{<B>frequency</B>,<B>rgb</B>}
|
|
|
|
<DD>
|
|
The
|
|
<B>-sort</B>
|
|
|
|
option determines the order in which the colors are listed in the output.
|
|
<B>frequency </B>
|
|
|
|
means to list them in order of how pixels in the input image have the color,
|
|
with the most represented colors first.
|
|
<B>rgb</B>
|
|
|
|
means to sort them first by the intensity of the red component of the color,
|
|
the of the green, then of the blue, with the least intense first.
|
|
<P>
|
|
The default is
|
|
<B>frequency</B>.
|
|
|
|
<P>
|
|
<DT id="2"><B>-hexcolor</B>
|
|
|
|
<DD>
|
|
Print the color components in hexadecimal. Default is decimal.
|
|
<DT id="3"><B>-noheader</B>
|
|
|
|
<DD>
|
|
Do not print the column headings.
|
|
<DT id="4"><B>-map</B>
|
|
|
|
<DD>
|
|
Generates a PPM file of the colormap for the image, with the color
|
|
histogram as comments.
|
|
<DT id="5"><B>-nomap</B>
|
|
|
|
<DD>
|
|
Generates the histogram for human reading. This is the default.
|
|
<P>
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A></B>(5),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pgmhist">pgmhist</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ppmtomap">ppmtomap</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmhistmap">pnmhistmap</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ppmchange">ppmchange</A></B>(1)
|
|
|
|
<P>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Copyright (C) 1989 by Jef Poskanzer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="11"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:24 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|