| 1 |
.\" RCSid "$Id: pfilt.1,v 1.6 2023/12/08 17:56:26 greg Exp $"
|
| 2 |
.TH PFILT 1 11/8/96 RADIANCE
|
| 3 |
.SH NAME
|
| 4 |
pfilt - filter a RADIANCE picture
|
| 5 |
.SH SYNOPSIS
|
| 6 |
.B pfilt
|
| 7 |
[
|
| 8 |
.B options
|
| 9 |
]
|
| 10 |
[
|
| 11 |
.B file
|
| 12 |
]
|
| 13 |
.SH DESCRIPTION
|
| 14 |
.I Pfilt
|
| 15 |
performs anti-aliasing and scaling on a RADIANCE picture
|
| 16 |
or hyperspectral image.
|
| 17 |
The program makes two passes on the picture file in order to
|
| 18 |
set the exposure to the correct average value.
|
| 19 |
If no
|
| 20 |
.I file
|
| 21 |
is given, the standard input is read.
|
| 22 |
.TP 10n
|
| 23 |
.BI -x \ res
|
| 24 |
Set the output x resolution to
|
| 25 |
.I res.
|
| 26 |
This must be less than or equal to the x dimension
|
| 27 |
of the target device.
|
| 28 |
If
|
| 29 |
.I res
|
| 30 |
is given as a slash followed by a real number, the input resolution
|
| 31 |
is divided by this number to get the output resolution.
|
| 32 |
By default, the output resolution is the same as the input.
|
| 33 |
.TP
|
| 34 |
.BI -y \ res
|
| 35 |
Set the output y resolution to
|
| 36 |
.I res,
|
| 37 |
similar to the specification of the x resolution above.
|
| 38 |
.TP
|
| 39 |
.BI -p \ rat
|
| 40 |
Set the pixel aspect ratio to
|
| 41 |
.I rat.
|
| 42 |
Either the x or the y resolution will be reduced so that the pixels have
|
| 43 |
this ratio for the specified picture.
|
| 44 |
If
|
| 45 |
.I rat
|
| 46 |
is zero, then the x and y resolutions will adhere to the given maxima.
|
| 47 |
Zero is the default.
|
| 48 |
.TP
|
| 49 |
.BI -c
|
| 50 |
Pixel aspect ratio is being corrected, so do not write PIXASPECT
|
| 51 |
variable to output file.
|
| 52 |
.TP
|
| 53 |
.BI -e \ exp
|
| 54 |
Adjust the exposure.
|
| 55 |
If
|
| 56 |
.I exp
|
| 57 |
is preceded by a '+' or '-', the exposure is interpreted in f-stops
|
| 58 |
(ie. the power of two).
|
| 59 |
Otherwise,
|
| 60 |
.I exp
|
| 61 |
is interpreted as a straight multiplier.
|
| 62 |
The individual primaries can be changed using
|
| 63 |
.I \-er,
|
| 64 |
.I \-eg
|
| 65 |
and
|
| 66 |
.I \-eb.
|
| 67 |
Multiple exposure options have a cumulative effect.
|
| 68 |
.TP
|
| 69 |
.BR -t \ lamp
|
| 70 |
Color-balance the image as if it were illuminated by fixtures of
|
| 71 |
the given type.
|
| 72 |
The specification must match a pattern listed in the lamp
|
| 73 |
lookup table (see the \-f option below).
|
| 74 |
.TP
|
| 75 |
.BR -f \ lampdat
|
| 76 |
Use the specified lamp lookup table rather than the default (lamp.tab).
|
| 77 |
.TP
|
| 78 |
.BR \-1
|
| 79 |
Use only one pass on the file.
|
| 80 |
This allows the exposure to be controlled absolutely, without
|
| 81 |
any averaging.
|
| 82 |
Note that a single pass is much quicker and should be used whenever
|
| 83 |
the desired exposure is known and star patterns are not required.
|
| 84 |
.TP
|
| 85 |
.BR \-2
|
| 86 |
Use two passes on the input.
|
| 87 |
This is the default.
|
| 88 |
.TP
|
| 89 |
.BR \-b
|
| 90 |
Use box filtering (default).
|
| 91 |
Box filtering averages the input pixels corresponding
|
| 92 |
to each separate output pixel.
|
| 93 |
.TP
|
| 94 |
.BI -r \ rad
|
| 95 |
Use Gaussian filtering with a radius of
|
| 96 |
.I rad
|
| 97 |
relative to the output pixel size.
|
| 98 |
This option with a radius around 0.6 and a reduction in image width and
|
| 99 |
height of 2 or 3 produces the highest quality pictures.
|
| 100 |
A radius greater than 0.7 results in a defocused picture.
|
| 101 |
.TP
|
| 102 |
.BI -m \ frac
|
| 103 |
Limit the influence of any given input pixel to
|
| 104 |
.I frac
|
| 105 |
of any given output pixel.
|
| 106 |
This option may be used to mitigate the problems associated with
|
| 107 |
inadequate image sampling, at the expense of a slightly blurred
|
| 108 |
image.
|
| 109 |
The fraction given should not be less than the output picture dimensions
|
| 110 |
over the input picture dimensions (x_o*y_o/x_i/y_i), or blurring
|
| 111 |
will occur over the entire image.
|
| 112 |
This option implies the
|
| 113 |
.I \-r
|
| 114 |
option for Gaussian filtering, which defaults to a radius of 0.6.
|
| 115 |
.TP
|
| 116 |
.BI -h \ lvl
|
| 117 |
Set intensity considered ``hot'' to
|
| 118 |
.I lvl.
|
| 119 |
This is the level above which areas of the image will begin
|
| 120 |
to exhibit star diffraction patterns (see below).
|
| 121 |
The default is 100 watts/sr/m2.
|
| 122 |
.TP
|
| 123 |
.BI -n \ N
|
| 124 |
Set the number of points on star patterns to
|
| 125 |
.I N.
|
| 126 |
A value of zero turns star patterns off.
|
| 127 |
The default is 0.
|
| 128 |
(Note that two passes are required for star patterns.)\0
|
| 129 |
.TP
|
| 130 |
.BI -s \ val
|
| 131 |
Set the spread for star patterns to
|
| 132 |
.I val.
|
| 133 |
This is the value a star pattern will have at the
|
| 134 |
edge of the image.
|
| 135 |
The default is .0001.
|
| 136 |
.TP
|
| 137 |
.BR \-a
|
| 138 |
Average hot spots as well.
|
| 139 |
By default, the areas of the picture above the hot level
|
| 140 |
are not used in setting the exposure.
|
| 141 |
.SH ENVIRONMENT
|
| 142 |
RAYPATH directories to search for lamp lookup table
|
| 143 |
.SH FILES
|
| 144 |
/tmp/rt??????
|
| 145 |
.SH AUTHOR
|
| 146 |
Greg Ward
|
| 147 |
.SH "SEE ALSO"
|
| 148 |
getinfo(1), ies2rad(1), pcomb(1), pcompos(1), pflip(1), pinterp(1),
|
| 149 |
pvalue(1), protate(1), rad(1), rcomb(1), rmtxop(1),
|
| 150 |
rpict(1), ximage(1)
|