Filters (Frequency) and Filters (Spatial): Adaptive Noise Reduction: Difference between pages

From MIPAV
(Difference between pages)
Jump to navigation Jump to search
MIPAV>Olgavovk
mNo edit summary
 
MIPAV>Olgavovk
mNo edit summary
 
Line 1: Line 1:
Frequency filters process an image in the frequency domain. The image is first, Fourier transformed, then multiplied with the filter function, and then transformed back to the spatial domain. Attenuating high frequencies results in a smoother image in the spatial domain, attenuating low frequencies enhances the edges.
This algorithm reduces noise without blurring the edges by replacing a pixel value with a weighted sum of all local pixels reached by following a path with small pixel intensity values between neighboring pixels.


=== Background ===
=== Background ===


Frequency filtering is based on the Fourier Transform. The operator usually takes an image and a filter function in the Fourier domain. This image is then multiplied with the filter function in a pixel-by-pixel fashion:
The Adaptive Noise Reduction algorithm is a port to Adaptive Noise Removal Filter, a software program. This program first transforms ''RGB'' color space into ''YCrCb'' color space. When the filtering is complete, it then transforms the ''YCrCb'' color space into ''RGB'' color space. Hence, all of the color operations occur in ''YCrCb'' space. However, the program does not transform black-and-white images into another space.


Equation 1 <div align "left"> </div><br />
In "Frequently Asked Questions About Color," Charles Poynton reveals that the ''RGB''-to-''YCrCb'' and ''YCrCb''-to-''RGB'' conversion equations used in Adaptive Noise Removal Filter differ significantly from standard ones. First, the program creates an edge graph or pixel neighbor graph using a weakly median-filtered version of the ''YCrCb'' space. A weakly median-filter version means that median filtering only occurs if the pixel is not on an edge in ''Y'', ''Cr'', or ''Cb'' space. The edge graph is an array of arrays with the first array having a length equal to the number of pixels in the image and the second array having eight edge weights. The eight edge weights are calculated from the intensity differences between the center pixel and one of the eight neighboring pixels:


G(k,l)=F(k,l)*H(k,l)
<math>
E =\sqrt{((dYwY)^2 + (dRwR)^2 + (dBwB)^2)}
</math>
**converting color;<br />


where ''E'' is the edge weight; ''dY'', ''dR'', and ''dB'' are the ''Y'', ''Cr'', and ''Cb'' differences; and ''wY'', ''wR'', and ''wB'' are the ''Y'', ''Cr'', and ''Cb'' weights derived from the ''Y'', ''Cr'', and ''Cb'' radiuses. A bigger relative radius results in a smaller weight for radiuses &gt;= 0.1, which is typically the case.


Where F(k,l) is the input image in the Fourier domain, H(k,l) is the filter function and G(k,l) is the result filtered image.
After the edge graph is created, the program filters the ''Y'', ''Cr,'' and ''Cb'' spaces separately. It uses the selected pixel as the center of a square with ''L'' = 2''R'' 1 where ''L'' = sides of length, ''R'' = range, and range = (int)(radius 0.999).


The form of the filter function determines the effects of the operator. There are basically four different kinds of filters: lowpass, highpass, bandpass and bandstop filters.
The ''enhancePixel ''function returns the filtered pixel value at every pixel in the image. If neighboring pixels are connected to the center pixel via a low-cost path, queue elements corresponding to these neighboring pixels are added to the priority queue. If no queue element is retrieved from the queue, then the original pixel value is passed unchanged. If elements are retrieved from the queue, then those ''Y, Cr,'' or ''Cb'' pixel values that retrieved queue elements are put into a weighted sum. The weight is derived from an index into the filter array given by the queue element key times the invFilterLen. The filter array is generated with a Gaussian function.


''A low-pass filte''r attenuates high frequencies and retains low frequencies unchanged. The result in the spatial domain is equivalent to that of a smoothing filter; as the blocked high frequencies correspond to sharp intensity changes, i.e. to the fine-scale details and noise in the spatial domain image.
Each queue element has a value, a baseKey, and a key. The ''value'' gives the location within the local [[Image:FiltersSpatialAdaptiveNoiseReduction8.jpg]] local square where ''R'' = range. The ''baseKey'' has a sum of the edgeGraph values over the low-cost path from the center pixel to the selected pixel, and ''key'' is equal to the sum of baseKey and the distMap value for the selected pixel. The distMap value at a given position inside the local square is equal to the edge preservation strength times the distance from the center pixel. A key is only added to the queue if key &lt; maxDistance:''''


''A highpass filter'' yields edge enhancement or edge detection in the spatial domain, because edges contain mostly high frequencies. In other hand, areas of rather constant gray level consist of mainly low frequencies and are, therefore, suppressed.
<math>
M = (int)(Rd(S+512))
</math>


''A bandpass filter'' attenuates very low and very high frequencies, but retains a middle range band of frequencies. Bandpass filtering is used to enhance edges (suppressing low frequencies) while reducing the noise at the same time (attenuating high frequencies).
where ''M'' = maxDistance, ''Rd'' = radius, and ''S'' = edge preservation strength.


The most simple lowpass filter is the ideal lowpass. It suppresses all frequencies higher than the cut-off frequency F''0'' and leaves smaller frequencies unchanged, which can be described as:
The priority queue is implemented as a binary heap and the binary heap is implemented as an array. A binary heap is a nearly full binary tree (only the bottom level may not be complete). This binary heap has the property that for every node other than a leaf, its key value is less than or equal to that of its children. In a binary heap the item of highest priority is always at the root of the tree or at node 0. When the highest priority item at the root is removed, the item of highest priority among the remainder moves into the root position. The children of node ''i'' are at [[Image:FiltersSpatialAdaptiveNoiseReduction10.jpg]] and [[Image:FiltersSpatialAdaptiveNoiseReduction11.jpg]]. The parent of node ''i'' is at <math>
(int) \left ( \frac {i-1}{2} \right )
</math>.


Equation 2 <div align "left"> </div><br />
The filter radius can be separately adjusted for each ''Y, Cr,'' and ''Cb'' channel for color images. For black-and-white images only, the ''Y'' filter radius can be adjusted. A larger radius removes more noise but loses more detail.
 
 
H(k,l)=1 if (k''2'' l''2'')1/2 &lt; F''0''
 
 
and
 
Equation 3 <div align "left"> </div><br />
 
 
H(k,l)=0 if (k''2'' l''2'')1/2 &gt; F''0''
 
 
Where, H(k,l) is the filter function.
 
In most implementations, F''0'' is given as a fraction of the highest frequency represented in the Fourier domain image.
 
The drawback of this filter function is a ringing effect that occurs along the edges of the filtered spatial domain image. See Figure 1.


<div>
<div>


{| border="1" cellpadding="5"
{| border="1" cellpadding="5"
|+ <div>'''Figure 1. The ideal lowpass filter in frequency and spatial domains''' </div>
|+ <div>'''Figure 1. Adaptive Noise Reduction processing''' </div>
|-
|-
|
|
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font size="2pt"><font color="#000000"><div><center>[[Image:ringingEffect.jpg]]</center></div><br />  
<div><div><center>[[Image:exampleAdaptiveNoiseReduction.jpg]]</center></div> </div>
|}
|}


  </div>
  </div>


Better results can be achieved with a Gaussian shaped filter function.
The edge preservation strength can be adjusted. Larger values preserve more edges but sacrifice smoothness in low-contrast areas. Very large values may cause banding.


Equation 4 <div align "left"> </div><br />
To speed the filtering on color images, you can select the Filter ''Cr'' and ''C''b at halv''e''d dimensions check box. When run, the algorithm shrinks the Cr and'' Cb'' spaces by a factor of 2, generates an edge table for the shrunken space, filters the image, and then expands the filtered ''Cr'' and ''Cb'' spaces to their original dimensions. Although the algorithm runs faster, it also loses some details.


The New image option causes MIPAV to place the resulting image in a new image window. The Replace image option causes MIPAV to place the changed image in the same window.


H(k.l)=exp(-F''2''(k,l)/2Fo''2'')
==== Image types ====




Where, H(k,l) is the Gaussian lowpass filter function, and F''0'' is the cut-off frequency.


The advantage is that the Gaussian has the same shape in the spatial and Fourier domains and therefore does not incur the ringing effect in the spatial domain of the filtered image. See also Volume 2 Algorithms, "Gaussian filter". See Figure 2.
You can apply this algorithm to both color and black-and-white 2D images.


==== Special notes ====


None.


{| border="1" cellpadding="5"
==== References ====
|+ <div>'''Figure 2. Gaussian low pass filter: (a) a plot of Gaussian function, (b) the inverse Fourier transform of Gaussian, (c) Frequency response of Gaussian with different F''0''''' </div>
|-
|
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font size="2pt"><font color="#000000"><div><center>[[Image:GaussianLowPass.jpg]]</center></div><br /> </font></font></div>
|}
 
</div>
 
A commonly used discrete approximation to the Gaussian is the Butterworth filter. Applying this filter in the frequency domain shows a similar result to the Gaussian smoothing in the spatial domain. One difference is that the computational cost of the spatial filter increases with the size of the filter kernel, whereas the costs for a frequency filter are independent on the filter function. Hence, the spatial Gaussian filter is more appropriate for narrow lowpass filtering, while the Butterworth filter is a better implementation for wide lowpass filtering. See also "Gaussian and Butterworth filters" .
 
The same principles apply to highpass filters. A highpass filter function can be obtained by inverting the corresponding lowpass filter, e.g. an ideal highpass filter blocks all frequencies smaller than F''0'' and leaves the others unchanged.
 
A bandpass filter is a combination of both lowpass and highpass filters. It attenuates all frequencies smaller than a frequency F''min'' and higher than a frequency F''max'', while the frequencies between the two cut-offs remain in the resulting output image.
 
A bandstop filter is a filter that passes most frequencies unaltered, but attenuates those in a specific range to very low levels.
 
 
 
==== Windowed Finite Impulse Response ====
 
Window functions are time limited. This means there is always a finite integer N''w'' such that w(n) almost equal to 0 for all |n|&gt; N''w''. The final windowed impulse response is thus always time-limited, as needed for practical implementation. This window method designs a finite-impulse-response (FIR) digital filter based on the Hamming function.
 
Hamming function can be described as
 
Equation 5 <div align "left"> </div><br />
 
 
w(n)=0.53836-0.46164*cos(2Pi*n/N-1)
 
 
The method consists of simply windowing a theoretically ideal filter impulse response h(n) by some suitably chosen window function w(n), yielding the following equation:
 
Equation 6 <div align "left"> </div><br />
 
h''w''(n)=w(n)*h(n), where n belongs to Z
 
 
For example, the impulse response of the ideal lowpass filter is the ''sinc'' function.
 
Equation 7 <div align "left"> </div><br />
 
 
h(n)=B*sinc(Bn) almost equal to B*(sin(Pi*Bn)/Pi*Bn), where n belongs to Z
 
 
where B=2f''c'' is the normalized bandwidth of the lowpass filter and f''c'' denotes the cut-off frequency.
 
Since'' h(n)=sinc(BnT)'' decays away from time 0 as 1/n, the method truncates it to the interval [-N, N] for some sufficiently large N defined by the user and as a result it obtains a finite response filter that approximates the ideal filter.
 
As for Hamming function, |N| &gt;3 is sufficient for good approximation.
 
Outline of the method
 
The Filters Frequency method processes images by filtering in the frequency domain in three steps:
 
# It performs a forward Fast Fourier Transform (FFT) to convert a spatial image into its frequency image.
 
# It enhances some frequency components of the image and attenuates other frequency components of the image by using a lowpass, highpass, bandpass, or bandstop filter. Frequency filters may be constructed with 1 of 3 methods: Hamming windows, Gaussian filters, and Butterworth filters. However, for the Gaussian filters only lowpass and highpass filters are available.
 
# It performs an inverse FFT to convert from the frequency domain back into the spatial domain.
 
This method performs all three steps in a single combined process.
 
Note: Since the core algorithm of this module is the FFT, it requires that all the dimensions of an N-dimensional dataset were powers of two. To be able to use this algorithm on datasets with arbitrary dimensions, the data is zero padded to powers of two before applying the forward FFT and stripped down to the original dimensions after applying the inverse FFT. The powers of two are not kept identical because symmetrical Fourier pictures are not required.
 
The module also creates a Gabor filter, which is essentially a tilted Gaussian with two unequal axes at an offset (freqU, freqV) from the origin. A Gabor filter only responds to a texture having both a particular frequency and a particular orientation. Note that a filter and its mirror image reflected across the u and v frequency axes produce identical frequency responses. See also Volume 2 Algorithms, "Gabor Filter".
 
The Frequency Filter algorithm also used in homomorphic filtering, for more information refer to Volume 2 Algorithms, "Homomorphic Filter".
 
<div>
 
{| border="1" cellpadding="5"
|+ <div>'''Figure 3. Applying the Frequency Filter algorithm with different parameters''' </div>
|-
|
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 1pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font size="2pt"><font color="#000000"><div><center>[[Image:FreqFilterExamples.jpg]]</center></div><br /> </font></font></div>
|}
 
</div>


==== References ====
Refer to the following references for more information:


Digital Image Processing Second Edition by Rafael C. Gonzalez and Richard E. Woods, Prentice-Hall, Inc., 2002, Chapter 4.5, pp. 191-194.
Karlis Freivalds, "Adaptive Noise Removal Filter," a software program, University of Latvia, Institute of Mathematics and Computer Science, at http://www.gradetools.com/karlisf.


==== Image types ====
Charles Poynton, "Frequently Asked Questions About Color," at http://www.poynton.com.


2D and 3D grayscale images.
=== Applying the Adaptive Noise Reduction algorithm ===


=== Applying the Frequency Filter algorithm ===


To run this algorithm, complete the following steps:
To run this algorithm, complete the following steps:


# Open an image of interest.
# Open an image.
# Select Algorithms &gt; Filters Frequency.
# Perform, as an option, any image processing, such as improving the contrast, on the image.
# The Frequency Filter dialog box appears.
# Select Algorithms &gt; Filters (spatial) &gt; Adaptive noise reduction. The Adaptive Noise Reduction dialog box opens.
# Fill out the dialog box.
# Complete the information in the dialog box.
# Specify the destination image frame, and then, press OK.
# Click OK. The algorithm begins to run.


Depending on whether you selected the New Image or Replace Image option, the result appears in a new window or replaces the original image.
; A pop-up window appears with the status. A series of status messages appear in the window.
; When the algorithm finishes running, the pop-up window closes.
; Depending on whether you selected New image or Replace image, the results appear in a new window or replace the image to which the algorithm was applied.


<div>
<div>


{| border="1" cellpadding="5"
{| border="1" cellpadding="5"
|+ <div>'''Figure 4. Extract Object dialog box ''' </div>
|+ <div>'''Figure 2. Adaptive Noise Reduction dialog box''' </div>
|-
|-
|
|
<div>'''Process each slice independently (2.5D)''' </div>
<div>'''Y radius''' </div>
|
|
<div>If true, processes each slice of a 3D image independently. </div>
<div>Specifies the local square used for ''Y'' space filtering, which is approximately [[Image:FiltersSpatialAdaptiveNoiseReductionlz.jpg]]in size.  </div><div>As the radius increases, the algorithm removes more noise, but loses more detail. The default value is 2.0. </div>
| rowspan="5" colspan="1" |
| rowspan="2" colspan="1" |
<div><div><center>[[Image:FreqFilterDialogBox.jpg]]</center></div> </div>
<div><div><center>[[Image:dialogboxAdaptiveNoiseReduction.jpg]]</center></div> </div><div> </div>
|-
|-
|
|
<div>'''Windowed finite impulse response''' </div>
<div>'''Cr radius''' </div>
|
|
<div>If selected, the method will use the Windowed finite impulse response algorithm. </div>
<div>Specifies the local square used for ''Cr ''space filtering (only available for color), which is approximately <div align="left">[[Image:FiltersSpatialAdaptiveNoiseReduction3.jpg]]</div> in size.  </div><div>As the radius increases, the algorithm removes more noise, but loses more detail. The default value is 4.0. </div>
|-
|-
|
|
<div>Crop image to save memory </div>
<div>'''Cb radius''' </div>
|
| rowspan="1" colspan="2" |
<div>If selected, this option crops image if the (largest image dimension kDim - 1) value exceeds the smallest power of 2 number which is more or equal to the largest dimension. </div>
<div>Specifies the local square used for ''Cb'' space filtering, which is approximately [[Image:FiltersSpatialAdaptiveNoiseReduction4.jpg]]in size. As the radius increases, the algorithm removes more noise but loses more detail. The default value is 5.0. </div>
|-
|-
|
|
<div>Convolution kernel diameter-odd </div>
<div>'''Edge preservation strength''' </div>
|
<div>It must be an odd integer larger or equal than 3, see also [FiltersFrequency.html#wp1056083 "Windowed Finite Impulse Response"]. </div>
|-
|
<div>Gaussian filter </div>
|
<div>If selected the method uses the Gaussian filter. </div>
|-
|
<div>Butterworth filter </div>
| rowspan="1" colspan="2" |
| rowspan="1" colspan="2" |
<div>If selected the method uses the Butterworth filter. </div>
<div>Specifies a value for preserving edges. Larger values preserve more edges but sacrifice smoothness in low-contrast areas. Very large values may cause banding.  </div><div>For color images, the default value is 3072.0. For black-and-white images, the default value is [[Image:FiltersSpatialAdaptiveNoiseReduction5.jpg]] where ''IMx'' is image maximum and ''IMn'' is image minimum. </div>
|-
|-
|
|
<div>Order </div>
<div>'''Filter Cr and Cb at halved dimensions''' </div>
| rowspan="1" colspan="2" |
| rowspan="1" colspan="2" |
<div>The order of the Butterworth filter. </div>
<div>Causes the algorithm to run faster but with some loss of detail. For color images, the default value is enabled; for other images, the default value is disabled. </div>
|-
| rowspan="1" colspan="3" |
<div>Destination </div>
|-
|-
|
|
<div>New image </div>
<div>'''New image''' </div>
| rowspan="1" colspan="2" |
| rowspan="1" colspan="2" |
<div>The result image appears in a new image frame </div>
<div>Shows the results of the algorithm in a new image window. </div>
|-
|-
|
|
<div>Replace image </div>
<div>'''Replace image''' </div>
| rowspan="1" colspan="2" |
| rowspan="1" colspan="2" |
<div>The result image appears in the same image frame, replacing the result image. </div>
<div>Replaces the original source image with the results of the algorithm. </div>
|-
| rowspan="1" colspan="3" |
<div>Filter specifications </div>
|-
| rowspan="1" colspan="3" |
<div>In that part of the dialog box, first select the filter type. Choose among: Lowpass, Highpass, Bandpass and Bandstop option. Then. Enter the lowpass frequency value, and also the higher frequency cutoff value if the Bandpass option is chosen. </div>
|-
|-
|
|
Line 236: Line 130:
|-
|-
|
|
<div>'''Cancel''' </div>
<div>'''Cancel ''' </div>
| rowspan="1" colspan="2" |
| rowspan="1" colspan="2" |
<div>Disregards any changes that you made in the dialog box and closes this dialog box. </div>
<div>Disregards any changes you made in this dialog box and closes the dialog box. </div>
|-
|-
|
|
Line 246: Line 140:
|}
|}


  </div><div> </div>
  </div>


[[Category:Help]]
[[Category:Help]]
[[Category:Help:Algorithms]]
[[Category:Help:Algorithms]]

Revision as of 18:14, 18 May 2012

This algorithm reduces noise without blurring the edges by replacing a pixel value with a weighted sum of all local pixels reached by following a path with small pixel intensity values between neighboring pixels.

Background

The Adaptive Noise Reduction algorithm is a port to Adaptive Noise Removal Filter, a software program. This program first transforms RGB color space into YCrCb color space. When the filtering is complete, it then transforms the YCrCb color space into RGB color space. Hence, all of the color operations occur in YCrCb space. However, the program does not transform black-and-white images into another space.

In "Frequently Asked Questions About Color," Charles Poynton reveals that the RGB-to-YCrCb and YCrCb-to-RGB conversion equations used in Adaptive Noise Removal Filter differ significantly from standard ones. First, the program creates an edge graph or pixel neighbor graph using a weakly median-filtered version of the YCrCb space. A weakly median-filter version means that median filtering only occurs if the pixel is not on an edge in Y, Cr, or Cb space. The edge graph is an array of arrays with the first array having a length equal to the number of pixels in the image and the second array having eight edge weights. The eight edge weights are calculated from the intensity differences between the center pixel and one of the eight neighboring pixels:

    • converting color;

where E is the edge weight; dY, dR, and dB are the Y, Cr, and Cb differences; and wY, wR, and wB are the Y, Cr, and Cb weights derived from the Y, Cr, and Cb radiuses. A bigger relative radius results in a smaller weight for radiuses >= 0.1, which is typically the case.

After the edge graph is created, the program filters the Y, Cr, and Cb spaces separately. It uses the selected pixel as the center of a square with L = 2R 1 where L = sides of length, R = range, and range = (int)(radius 0.999).

The enhancePixel function returns the filtered pixel value at every pixel in the image. If neighboring pixels are connected to the center pixel via a low-cost path, queue elements corresponding to these neighboring pixels are added to the priority queue. If no queue element is retrieved from the queue, then the original pixel value is passed unchanged. If elements are retrieved from the queue, then those Y, Cr, or Cb pixel values that retrieved queue elements are put into a weighted sum. The weight is derived from an index into the filter array given by the queue element key times the invFilterLen. The filter array is generated with a Gaussian function.

Each queue element has a value, a baseKey, and a key. The value gives the location within the local FiltersSpatialAdaptiveNoiseReduction8.jpg local square where R = range. The baseKey has a sum of the edgeGraph values over the low-cost path from the center pixel to the selected pixel, and key is equal to the sum of baseKey and the distMap value for the selected pixel. The distMap value at a given position inside the local square is equal to the edge preservation strength times the distance from the center pixel. A key is only added to the queue if key < maxDistance:'

where M = maxDistance, Rd = radius, and S = edge preservation strength.

The priority queue is implemented as a binary heap and the binary heap is implemented as an array. A binary heap is a nearly full binary tree (only the bottom level may not be complete). This binary heap has the property that for every node other than a leaf, its key value is less than or equal to that of its children. In a binary heap the item of highest priority is always at the root of the tree or at node 0. When the highest priority item at the root is removed, the item of highest priority among the remainder moves into the root position. The children of node i are at FiltersSpatialAdaptiveNoiseReduction10.jpg and FiltersSpatialAdaptiveNoiseReduction11.jpg. The parent of node i is at .

The filter radius can be separately adjusted for each Y, Cr, and Cb channel for color images. For black-and-white images only, the Y filter radius can be adjusted. A larger radius removes more noise but loses more detail.

Figure 1. Adaptive Noise Reduction processing
ExampleAdaptiveNoiseReduction.jpg

The edge preservation strength can be adjusted. Larger values preserve more edges but sacrifice smoothness in low-contrast areas. Very large values may cause banding.

To speed the filtering on color images, you can select the Filter Cr and Cb at halved dimensions check box. When run, the algorithm shrinks the Cr and Cb spaces by a factor of 2, generates an edge table for the shrunken space, filters the image, and then expands the filtered Cr and Cb spaces to their original dimensions. Although the algorithm runs faster, it also loses some details.

The New image option causes MIPAV to place the resulting image in a new image window. The Replace image option causes MIPAV to place the changed image in the same window.

Image types

You can apply this algorithm to both color and black-and-white 2D images.

Special notes

None.

References

Refer to the following references for more information:

Karlis Freivalds, "Adaptive Noise Removal Filter," a software program, University of Latvia, Institute of Mathematics and Computer Science, at http://www.gradetools.com/karlisf.

Charles Poynton, "Frequently Asked Questions About Color," at http://www.poynton.com.

Applying the Adaptive Noise Reduction algorithm

To run this algorithm, complete the following steps:

  1. Open an image.
  2. Perform, as an option, any image processing, such as improving the contrast, on the image.
  3. Select Algorithms > Filters (spatial) > Adaptive noise reduction. The Adaptive Noise Reduction dialog box opens.
  4. Complete the information in the dialog box.
  5. Click OK. The algorithm begins to run.
A pop-up window appears with the status. A series of status messages appear in the window.
When the algorithm finishes running, the pop-up window closes.
Depending on whether you selected New image or Replace image, the results appear in a new window or replace the image to which the algorithm was applied.
Figure 2. Adaptive Noise Reduction dialog box
Y radius
Specifies the local square used for Y space filtering, which is approximately FiltersSpatialAdaptiveNoiseReductionlz.jpgin size.
As the radius increases, the algorithm removes more noise, but loses more detail. The default value is 2.0.
DialogboxAdaptiveNoiseReduction.jpg
Cr radius
Specifies the local square used for Cr space filtering (only available for color), which is approximately
FiltersSpatialAdaptiveNoiseReduction3.jpg
in size.
As the radius increases, the algorithm removes more noise, but loses more detail. The default value is 4.0.
Cb radius
Specifies the local square used for Cb space filtering, which is approximately FiltersSpatialAdaptiveNoiseReduction4.jpgin size. As the radius increases, the algorithm removes more noise but loses more detail. The default value is 5.0.
Edge preservation strength
Specifies a value for preserving edges. Larger values preserve more edges but sacrifice smoothness in low-contrast areas. Very large values may cause banding.
For color images, the default value is 3072.0. For black-and-white images, the default value is FiltersSpatialAdaptiveNoiseReduction5.jpg where IMx is image maximum and IMn is image minimum.
Filter Cr and Cb at halved dimensions
Causes the algorithm to run faster but with some loss of detail. For color images, the default value is enabled; for other images, the default value is disabled.
New image
Shows the results of the algorithm in a new image window.
Replace image
Replaces the original source image with the results of the algorithm.
OK
Applies the algorithm according to the specifications in this dialog box.
Cancel
Disregards any changes you made in this dialog box and closes the dialog box.
Help
Displays online help for this dialog box.