Linux command
pgmslice 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Extract row or column slice from image
pgmslice -row [100] [input.pgm]
Extract column slice
pgmslice -col [200] [input.pgm]
说明
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.
参数
- -row _n_
- Extract horizontal slice at row n.
- -col _n_
- Extract vertical slice at column n.
FAQ
What is the pgmslice command used for?
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.
How do I run a basic pgmslice example?
Run `pgmslice -row [100] [input.pgm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -row _n_ do in pgmslice?
Extract horizontal slice at row n.