man-pages/man1/pgmkernel.1.html
2021-03-31 01:06:50 +01:00

123 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of pgmkernel</TITLE>
</HEAD><BODY>
<H1>pgmkernel</H1>
Section: User Commands (1)<BR>Updated: 10 December 1992<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">&nbsp;</A>
<H2>NAME</H2>
pgmkernel - generate a convolution kernel
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>pgmkernel</B>
[
<B>-weight</B>
<I>w</I>
]
<I>width </I>
[
<I>height </I>
]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
Generates a portable graymap array of size
<I>width </I>
x
<I>height </I>
(or
<I>width </I>
x
<I>width </I>
if
<I>height </I>
is not specified) to be used as a convolution file by
<B>pnmconvol</B>.
The data in the convolution array K are computed according to the
formula:
<P>
K(i,j) = 1 / ( 1 + w * sqrt((i-width/2)^2 + (j-height/2)^2))
<P>
where
<I>w </I>
is a coefficient specified via the
<I>-weight </I>
flag, and
<I>width </I>
and
<I>height</I>
are the X and Y filter sizes.
<P>
The output PGM file is always written out in ASCII format.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
The optional
<I>-weight </I>
flag should be a real number greater than -1.
The default value is 6.0.
<A NAME="lbAF">&nbsp;</A>
<H2>BUGS</H2>
The computation time is proportional to
<I>width </I>
*
<I>height</I>.
This increases rapidly with the increase of the kernel size.
A better approach could be using a FFT in these cases.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?1+pnmconvol">pnmconvol</A>(1), <A HREF="/cgi-bin/man/man2html?1+pnmsmooth">pnmsmooth</A>(1)
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
Alberto Accomazzi (<A HREF="mailto:alberto@cfa.harvard.edu">alberto@cfa.harvard.edu</A>).
<P>
<P>
<HR>
<A NAME="index">&nbsp;</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">OPTIONS</A><DD>
<DT id="5"><A HREF="#lbAF">BUGS</A><DD>
<DT id="6"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="7"><A HREF="#lbAH">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:23 GMT, March 31, 2021
</BODY>
</HTML>