1. Home
  2. Computing & Technology
  3. Linux
Linux / Unix Command: pgmslice
Command Library

NAME

pgmslice - extract one line of pixel values out of a portable graymap  

SYNOPSIS

pgmslice -row|-col line [pgmfile]  

DESCRIPTION

Extracts one line of pixel values out of a portable graymap and outputs it in a two column ascii format, with the first value being the pixel's position in the line and the second value the pixel's greyscale value. This is useful for making cross sections through, for example, greyscale CCD images.  

OPTIONS

-row
Extract a row of pixels
-col
Extract a column of pixels
 

SEE ALSO

pgm(5)  

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Linux

©2008 About.com, a part of The New York Times Company.

All rights reserved.