87 lines
2.9 KiB
HTML
87 lines
2.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ppmshift</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ppmshift</H1>
|
|
Section: User Commands (1)<BR>Updated: 16 November 1993<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ppmshift - shift lines of a portable pixmap left or right by a random amount
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
ppmshift
|
|
<I>shift</I>
|
|
|
|
[<I>ppmfile</I>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Reads a portable pixmap as input. Shifts every row of image data to the
|
|
left or right by a certain amount. The 'shift' parameter determines by how
|
|
many pixels a row is to be shifted at most.
|
|
<P>
|
|
|
|
Another one of those effects I intended to use for MPEG tests.
|
|
Unfortunately, this program will not help me here - it creates too random
|
|
patterns to be used for animations. Still, it might give interesting
|
|
results on still images.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>EXAMPLE</H2>
|
|
|
|
Check this out: Save your favourite model's picture from something like
|
|
alt.binaries.pictures.supermodels (ok, or from any other picture source),
|
|
convert it to ppm, and process it e.g. like this, assuming the picture is
|
|
800x600 pixels:
|
|
|
|
<BR> # take the upper half, and leave it like it is
|
|
<BR> pnmcut 0 0 800 300 cs.ppm >upper.ppm
|
|
<P>
|
|
<BR> # take the lower half, flip it upside down, dim it and distort it a little
|
|
<BR> pnmcut 0 300 800 300 cs.ppm | pnmflip -tb | ppmdim 0.7 |
|
|
<BR> ppmshift 10 >lower.ppm
|
|
<P>
|
|
<BR> # and concatenate the two pieces
|
|
<BR> pnmcat -tb upper.ppm lower.ppm >newpic.ppm
|
|
|
|
The resulting picture looks like the image being reflected on a water
|
|
surface with slight ripples.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A>(5), <A HREF="/cgi-bin/man/man2html?1+pnmcut">pnmcut</A>(1), <A HREF="/cgi-bin/man/man2html?1+pnmflip">pnmflip</A>(1), <A HREF="/cgi-bin/man/man2html?1+ppmdim">ppmdim</A>(1), <A HREF="/cgi-bin/man/man2html?1+pnmcat">pnmcat</A>(1)
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Copyright (C) 1993 by Frank Neumann
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">EXAMPLE</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:25 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|