ppmhist(1) General Commands Manual ppmhist(1)NAME
ppmhist - print a histogram of a portable pixmap
SYNOPSIS
ppmhist [-hexcolor] [-noheader] [-map] [-nomap] [-sort={frequency,rgb}] [ppmfile]
DESCRIPTION
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.
OPTIONS
-sort={frequency,rgb}
The -sort option determines the order in which the colors are listed in the output. frequency means to list them in order of how
pixels in the input image have the color, with the most represented colors first. rgb 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.
The default is frequency.
-hexcolor
Print the color components in hexadecimal. Default is decimal.
-noheader
Do not print the column headings.
-map Generates a PPM file of the colormap for the image, with the color histogram as comments.
-nomap Generates the histogram for human reading. This is the default.
SEE ALSO ppm(5), pgmhist(1), ppmtomap(1), pnmhistmap(1), ppmchange(1)AUTHOR
Copyright (C) 1989 by Jef Poskanzer.
17 September 2000 ppmhist(1)
Check Out this Related Man Page
ppmhist(1) General Commands Manual ppmhist(1)NAME
ppmhist - print a histogram of a portable pixmap
SYNOPSIS
ppmhist [-hexcolor] [-noheader] [-map] [-nomap] [-sort={frequency,rgb}] [ppmfile]
DESCRIPTION
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.
OPTIONS
-sort={frequency,rgb}
The -sort option determines the order in which the colors are listed in the output. frequency means to list them in order of how
pixels in the input image have the color, with the most represented colors first. rgb 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.
The default is frequency.
-hexcolor
Print the color components in hexadecimal. Default is decimal.
-noheader
Do not print the column headings.
-map Generates a PPM file of the colormap for the image, with the color histogram as comments.
-nomap Generates the histogram for human reading. This is the default.
SEE ALSO ppm(5), pgmhist(1), ppmtomap(1), pnmhistmap(1), ppmchange(1)AUTHOR
Copyright (C) 1989 by Jef Poskanzer.
17 September 2000 ppmhist(1)
I have a 1250 byte record that I need to sort in column 10-19 and in column 301. I have tried the sort command, but it looks like it needs delimiters to work. The record can have spaces in a lot of its 1250 columns, but 10-19, and 301 are guaranteed. These columns are numeric too.
A sample... (1 Reply)
Hi,
I have a file containing the frequency's of an element sorted in ascending order. The file looks something like this:
#Element Frequency
1 1
2 1
3 1
4 1
5 1
6 ... (5 Replies)
ls --color=always -laX | awk '{print $1, $3, $4, $2, $8}'
|sort -k 1,1 -k 9,9r
they work separately... but i don't know how to combine this to work.
thx! (1 Reply)
Hi everyone,
I've really searched for a solution to this and this is what I found so far:
I need to sort a command output (here represented as a "cat file" command) and from the second down to the second-last line based on the second row and then print ALL the output with the specified section... (7 Replies)
I need to write a shell script "cmn" that, given an integer k, print the k most common words in descending order of frequency.
Example Usage:
user@ubuntu:/$ cmn 4 < example.txt :b: (3 Replies)
Hello,
I have a very large file of around 2 million records which has the following structure:
I have used the standard awk program to sort:
# wordfreq.awk --- print list of word frequencies
{
# remove punctuation
#gsub(/_]/, "", $0)
for (i = 1; i <= NF; i++)
freq++
}
END {
for (word... (3 Replies)
Hello all,
How do I achieve this? I have A, B and A/B in different variables in a file in col2.
I want them to sort in such a way, that the variables appear together, and within a variable, the data is sorted in the order A,B and then A/B. If I sort on the second column, the order becomes A,... (6 Replies)
I have files with hundreds of sequences with frequency values reported as "Freq X" and missing characters represented by a dash ("-"), something like this
>39sample Freq 4
TAGATGTGCCCGTGGGTTTCCCGTCAACACCGGATAGTAGCAGCACTA
>22sample Freq 15
T-GATGTCGTGGGTTTCCCGTCAACACCGGCAAATAGTAGCAGCACTA... (12 Replies)
How to sort the following output based on lowest to highest BE?
The following sort does not work.
$ sort -t. -k1,1n -k2,2n bfd.txt
BE31.116 0s 0s DOWN DAMP
BE31.116 0s 0s DOWN DAMP
BE31.117 0s 0s ... (7 Replies)