commands.sh

pamslice

all

Extract one line of values out of a PAM image.

More info →

Options (3)

-rboolean

Print the values of the pixels in the n'th row in a table

Example: pamslice {{[-r|-row]}} {{n}} {{path/to/image.pam}}
-cboolean

Print the values of the pixels in the n'th column in a table

Example: pamslice {{[-c|-column]}} {{n}} {{path/to/image.pam}}
-xboolean

Produce output in a format suitable for input to an `xmgr` for visualisation

Example: pamslice {{[-r|-row]}} {{n}} {{[-x|-xmgr]}} {{path/to/image.pam}}

Examples (4)

Print the values of the pixels in the n'th row in a table

pamslice [-r|-row] n path/to/image.pam

Print the values of the pixels in the n'th column in a table

pamslice [-c|-column] n path/to/image.pam

Consider the m'th plane of the input image only

pamslice [-r|-row] n -plane m path/to/image.pam

Produce output in a format suitable for input to an `xmgr` for visualisation

pamslice [-r|-row] n [-x|-xmgr] path/to/image.pam
made by @shridhargupta | data from tldr-pages