Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/doc/netpbm/ms/pamdeinterlace.ms

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TL
Pamdeinterlace User Manual
.SH 1
pamdeinterlace
.LP
Updated: 11 November 2001
.br
Table Of Contents
.SH 2
NAME
.LP
pamdeinterlace - remove every other row from a PAM/PNM image
.SH 2
SYNOPSIS
.LP
\fBpamdeinterlace\fR
[\fB-takeodd\fR]
[\fB-takeeven\fR]
[\fIinfile\fR]
.LP
You can use the minimum unique abbreviation of the options.  You
can use two hyphens instead of one.  You can separate an option name
from its value with white space instead of an equals sign.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBpamdeinterlace\fR removes all the even-numbered or odd-numbered
rows from the input PNM or PAM image.  Specify which with the
\fB-takeeven\fR and \fB-takeodd\fR options.
.LP
This can be useful if the image is a video capture from an
interlaced video source.  In that case, each row shows the subject
1/60 second before or after the two rows that surround it.  If the
subject is moving, this can detract from the quality of the image.
.LP
Because the resulting image is half the height of the input image,
you will then want to use \fBpamstretch\fR or \fBpamscale\fR to
restore it to its normal height:
.DS L
\f(CWpamdeinterlace myimage.ppm | pamstretch -yscale=2 >newimage.ppm
\fR.DE
.LP
Another, usually better, way to deinterlace an image is with
\fBpammixinterlace\fR.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-takeodd\fR"
Take the odd-numbered rows from the input and put them in the
output.  The rows are numbered starting at zero, so the first row in
the output is the second row from the input.  You cannot specify both
\fB-takeeven\fR and \fB-takeodd\fR.
.IP "\fB-takeeven\fR"
Take the even-numbered rows from the input and put them in the
output.  The rows are numbered starting at zero, so the first row in
the output is the first row from the input.  This is the default.  You
cannot specify both \fB-takeeven\fR and \fB-takeodd\fR.
.RE
.SH 2
SEE ALSO
.LP
\fBpammixinterlace\fR,
\fBpam\fR
\fBpnm\fR
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.LP

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.