From 93743f9500abd926ad4f6f1eb553c7d3c85ad7b1 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Mon, 4 Mar 2024 07:44:55 +0100 Subject: [PATCH] pamslice: add page (#12397) * pamslice: add page * Update pages/common/pamslice.md Co-authored-by: K.B.Dharun Krishna --------- Co-authored-by: K.B.Dharun Krishna --- pages/common/pamslice.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/pamslice.md diff --git a/pages/common/pamslice.md b/pages/common/pamslice.md new file mode 100644 index 000000000..61fb97596 --- /dev/null +++ b/pages/common/pamslice.md @@ -0,0 +1,20 @@ +# pamslice + +> Extract one line of values out of a PAM image. +> More information: . + +- Print the values of the pixels in the n'th row in a table: + +`pamslice -row {{n}} {{path/to/image.pam}}` + +- Print the values of the pixels in the n'th column in a table: + +`pamslice -column {{n}} {{path/to/image.pam}}` + +- Consider the m'th plane of the input image only: + +`pamslice -row {{n}} -plane {{m}} {{path/to/image.pam}}` + +- Produce output in a format suitable for input to an `xmgr` for visualisation: + +`pamslice -row {{n}} -xmgr {{path/to/image.pam}}`