← 返回命令列表

Linux command

pnminterp 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Interpolate image (scale up)

pnminterp [factor] [input.pnm] > [output.pnm]

Double image size

pnminterp 2 [input.pnm] > [output.pnm]

Triple image size

pnminterp 3 [input.pnm] > [output.pnm]

说明

pnminterp enlarges PNM images by an integer factor using bilinear interpolation. Unlike simple pixel replication (as done by pnmenlarge), interpolation produces smoother results by computing weighted averages of neighboring pixels. The scaling factor must be a positive integer, producing an output image that is N times larger in each dimension. This tool is a simplified interface to pamscale's interpolation mode. Part of the Netpbm toolkit; superseded by pamscale.

FAQ

What is the pnminterp command used for?

pnminterp enlarges PNM images by an integer factor using bilinear interpolation. Unlike simple pixel replication (as done by pnmenlarge), interpolation produces smoother results by computing weighted averages of neighboring pixels. The scaling factor must be a positive integer, producing an output image that is N times larger in each dimension. This tool is a simplified interface to pamscale's interpolation mode. Part of the Netpbm toolkit; superseded by pamscale.

How do I run a basic pnminterp example?

Run `pnminterp [factor] [input.pnm] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more pnminterp examples?

This page includes 3 examples for pnminterp, plus related commands for nearby Linux tasks.