LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pgmslice

extracts a row or column from a PGM image and outputs the gray values

TLDR

Extract row or column slice from image
$ pgmslice -row [100] [input.pgm]
copy
Extract column slice
$ pgmslice -col [200] [input.pgm]
copy

SYNOPSIS

pgmslice [options] [file]

DESCRIPTION

pgmslice extracts a row or column from a PGM image and outputs the gray values. Useful for analyzing image cross-sections. Part of Netpbm toolkit.

PARAMETERS

-row n

Extract horizontal slice at row n.
-col n
Extract vertical slice at column n.

SEE ALSO

pamcut(1), pgmhist(1)

Copied to clipboard
Kai