
Image labels
Mosaic labels
Projection labels
Sonar labels
History file
P(i,j) = Original DN value of input image at position i,j
(center of filter window/boxcar)
X(i,j) = Output DN value of resulting filter operation
S(i,j) = Sum of points over the boxcar centered at i,j
N(i,j) = Number of valid points in the boxcar centered at i,j
The LPF option is defined by: S(i,j)
LPF(i,j) = ------ = average(i,j)
N(i,j)
X(i,j) = MULT * LPF(i,j)
where
MULT = multiplicative gain(see below)
The low pass filter (LPF) is simply an image whose pixels have been set equal to the average of the boxcar. This filtering option enhances the low frequency component of an image. Windows that do not contain enough pixels with DNs in the valid range will cause the center pixel to be set to either 0, -32768 or the maximum negative floating point number depending on the bit type of the input image(see the PRESERVE option for information on how to keep this from happening). All other pixels will be filtered(i.e., pixel value set to the average of the boxcar window). This filter is referrd to as a smoothing filter. HPF(i,j) = NORM * (1 - ADBK) + P(i,j) * MULT * (1 + ADBK) - LPF(i,j) * MULT
where
NORM = normalization factor(see below)
ADBK = value to be added back to filtered results(see below)
The high pass filter (HPF) is the differance of the center pixel of the boxcar window's DN and the average of the boxcar window(i.e., center pixel's DN minus the average or LPF). This filtering option enhances the high frequency component of the image, versus the low frequency enhancement of the LPF smoothing options. Boxcar windows that do not contain sufficient number of pixels with valid DNs will cause the center pixel of the window to be set to 0, -32768 or the maximum negative floating point number depending on the bit type. Image pixels that are below the valid range of data will be set to 0, -32768 or maximum negative floating point number, while those that are above the valid range will be set to 255, 32767 and maximum floating point number(see the PRESERVE option for information on how to keep these cases from happening. P(i,j)
X(i,j) = MULT * -------- - NORM
LPF(i,j)
The divide filter (DIV) is a special case of the HPF option; the window's center pixel of the boxcar is divided by the average of the boxcar. Boxcars that do not contain sufficient number of pixels with valid data cause the center pixel to be set to 0, -32768 or the maximum negative floating point number depending on the bit type. Image pixels that are below the valid range of data will be set to 0, -32768 or the maximum negative floating point number, while pixels that are above the valid range will be set to 255, 32767 or the maximum floating point number(see the PRESERVE option for information on how to keep this from happening).![[Example Image]](p4ss.gif)
![[Example Image]](filter_lpf11x11.gif)
![[Example Image]](filter_hpf7x7.gif)
|
U.S. Department of the Interior |
U.S. Geological Survey |
Jobs
Home | Search | Disclaimers & Privacy Web Rings Send comments to webman@TerraWeb.wr.usgs.gov URL: Last Modified: Thu Oct 31 15:08:22 MST 2002 |