about summary refs log tree commit diff
path: root/pgmabel.html
blob: 31f170a285fb60404096d7a5133f0d0ee1c33e81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD><title>Pgmabel User Manual</title></HEAD>

<BODY>
<H1>pgmabel</H1>
Updated: June 2002
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pgmabel - create cross section using Abel Integration for Deconvolution

<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<b>pgmabel</b>
[<b>-help</b>]
[<b>-axis</b> <i>axis</i>]
[<b>-factor</b> <i>factor</i>]
[<b>-pixsize</b> <i>pixsize</i>]
[<b>-left</b> | <b>-right</b>]
[<b>-verbose</b>]
[<I>filespec</I>]

<P>You can abbreviate any option to its shortest unique prefix.

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>pgmabel</b> reads as input a PGM image, which it assumes to be an
image of a rotational symmetric transparent object.  The image must have
a vertical symmetry axis.  <b>pgmabel</b> produces as output an image of
a cross-section of the image.

<b>pgmabel</b> does the calculation by performing the Abel Integration
for Deconvolution of an axial-symmetrical image by solving the system
of linear equations.

After integration, <b>pgmabel</b> weights all gray-values of one side
by the surface area of the calculated ring in square pixels divided by
4*<i>factor</i> multiplied by the size of one pixel (<i>pixsize</i>).
With the <b>-verbose</b> option, <b>pgmabel</b> prints the weighting
factors.

<P>Where the caculation generates a negative result, the output is black.

<P>The computation is unstable against periodic structures with size 2 in
the vertical direction.

<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>

<dt><b>-help</b>
<dd>Prints a help message.

<dt><b>-axis</b> <i>axis</i>
<dd>Position of the axis of symmetry in the image in pixels from the left
edge of the image.  Default is the center of the image.

<dt><b>-factor</b> <i>factor</i>
<dd>User defined factor for enhancement of the output.  Use a <i>factor</i>
less than 1 for decreasing gary values.  Default is 1.0.

<dt><b>-pixsize</b> <i>pixsize</i>
<dd>The size of a pixel for getting scale invariant.  Default is 0.1.

<dt><b>-left</b>
Calculate only the left side of the image.  You cannot specify both
<b>left</b> and <b>right</b>.

<dt><b>-right</b>
Analogous to <b>-left</b>.

<dt><b>-verbose</b>
<dd>print information about the calculation.

</DL>

<A NAME="example">&nbsp;</A>
<h2>EXAMPLE</h2>

<p>Rotate a PGM image to get an image with a vertical axis of symmetry,
then calculate the cross section:

<pre>
    pnmrotate 90 file.pgm | pgmabel -axis 140 &gt;cross_section.pgm
</pre>



<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>

<B><A HREF="pnmrotate.html">pnmrotate</A></B>,
<B><A HREF="pgm.html">pgm</A></B>,

<A NAME="history">&nbsp;</A>
<H2>HISTORY</H2>

<p>This program was added to Netpbm in Release 10.3 (June 2002).

<A NAME="author"></a>
<h2>AUTHOR</h2>

<p>Volker Schmidt (lefti@voyager.boerde.de)

<p>Copyright (C) 1997-2002 German Aerospace research establishment

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">OPTIONS</A>
<LI><A HREF="#example">EXAMPLE</A>
<LI><A HREF="#lbAF">SEE ALSO</A>
<LI><A HREF="#history">HISTORY</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>