CVB.Net 14.0
Fft.Filter Class Reference

Creation functions for FFT filters. More...

Static Public Member Functions

static FftImage CreateBandStop (FftImage img, float center1, float center2)
 Create a Fourier space representation of a band stop filter with a default width of 10%. More...
 
static FftImage CreateBandStop (FftImage img, float center1, float center2, float width)
 Create a Fourier space representation of a band stop filter. More...
 
static FftImage CreateBandPass (FftImage img, float center1, float center2)
 Create a Fourier space representation of a band pass filter. More...
 
static FftImage CreateBandPass (FftImage img, float center1, float center2, float width)
 Create a Fourier space representation of a band pass filter. More...
 
static FftImage CreateHighPass (FftImage img, float center)
 Create a Fourier space representation of a high pass filter. More...
 
static FftImage CreateHighPass (FftImage img, float center, float width)
 Create a Fourier space representation of a high pass filter. More...
 
static FftImage CreateLowPass (FftImage img, float center)
 Create a Fourier space representation of a low pass filter. More...
 
static FftImage CreateLowPass (FftImage img, float center, float width)
 Create a Fourier space representation of a low pass filter. More...
 

Detailed Description

Creation functions for FFT filters.

Member Function Documentation

◆ CreateBandPass() [1/2]

static FftImage CreateBandPass ( FftImage  img,
float  center1,
float  center2 
)
static

Create a Fourier space representation of a band pass filter.

Such a filter can be applied to an image by multiplying the image's Fourier transform with this filter image and then transforming the result back to Cartesian space.

Parameters
imgImage to apply the filter on.This input image will not directly be processed - it is required to determine the necessary size of the result image only.
center1Lower cutoff position of the filter relative to the frequency range (range [0...1]).
center2Upper cutoff position of the filter relative to the frequency range (range [0...1]).
Returns
Filter's Fourier representation
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ CreateBandPass() [2/2]

static FftImage CreateBandPass ( FftImage  img,
float  center1,
float  center2,
float  width 
)
static

Create a Fourier space representation of a band pass filter.

Such a filter can be applied to an image by multiplying the image's Fourier transform with this filter image and then transforming the result back to Cartesian space.

Parameters
imgImage to apply the filter on.This input image will not directly be processed - it is required to determine the necessary size of the result image only.
center1Lower cutoff position of the filter relative to the frequency range (range [0...1]).
center2Upper cutoff position of the filter relative to the frequency range (range [0...1]).
widthWidth of the filter cutoff region (range [0...1]). Helps to reduce ring artifacts.
Returns
Filter's Fourier representation
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ CreateBandStop() [1/2]

static FftImage CreateBandStop ( FftImage  img,
float  center1,
float  center2 
)
static

Create a Fourier space representation of a band stop filter with a default width of 10%.

Such a filter can be applied to an image by multiplying the image's Fourier transform with this filter image and then transforming the result back to Cartesian space.

Parameters
imgImage to apply the filter on.This input image will not directly be processed - it is required to determine the necessary size of the result image only.
center1Lower cutoff position of the filter relative to the frequency range (range [0...1]).
center2Upper cutoff position of the filter relative to the frequency range (range [0...1]).
Returns
Filter's Fourier representation
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ CreateBandStop() [2/2]

static FftImage CreateBandStop ( FftImage  img,
float  center1,
float  center2,
float  width 
)
static

Create a Fourier space representation of a band stop filter.

Such a filter can be applied to an image by multiplying the image's Fourier transform with this filter image and then transforming the result back to Cartesian space.

Parameters
imgImage to apply the filter on.This input image will not directly be processed - it is required to determine the necessary size of the result image only.
center1Lower cutoff position of the filter relative to the frequency range (range [0...1]).
center2Upper cutoff position of the filter relative to the frequency range (range [0...1]).
widthWidth of the filter cutoff region (range [0...1]). Helps to reduce ring artifacts.
Returns
Filter's Fourier representation
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ CreateHighPass() [1/2]

static FftImage CreateHighPass ( FftImage  img,
float  center 
)
static

Create a Fourier space representation of a high pass filter.

Such a filter can be applied to an image by multiplying the image's Fourier transform with this filter image and then transforming the result back to Cartesian space.

Parameters
imgImage to apply the filter on.This input image will not directly be processed - it is required to determine the necessary size of the result image only.
centerCutoff position of the filter relative to the frequency range (range [0...1]).
Returns
Filter's Fourier representation
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ CreateHighPass() [2/2]

static FftImage CreateHighPass ( FftImage  img,
float  center,
float  width 
)
static

Create a Fourier space representation of a high pass filter.

Such a filter can be applied to an image by multiplying the image's Fourier transform with this filter image and then transforming the result back to Cartesian space.

Parameters
imgImage to apply the filter on.This input image will not directly be processed - it is required to determine the necessary size of the result image only.
centerCutoff position of the filter relative to the frequency range (range [0...1]).
widthWidth of the filter cutoff region (range [0...1]). Helps to reduce ring artifacts.
Returns
Filter's Fourier representation
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ CreateLowPass() [1/2]

static FftImage CreateLowPass ( FftImage  img,
float  center 
)
static

Create a Fourier space representation of a low pass filter.

Such a filter can be applied to an image by multiplying the image's Fourier transform with this filter image and then transforming the result back to Cartesian space.

Parameters
imgImage to apply the filter on.This input image will not directly be processed - it is required to determine the necessary size of the result image only.
centerCutoff position of the filter relative to the frequency range (range [0...1]).
Returns
Filter's Fourier representation
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ CreateLowPass() [2/2]

static FftImage CreateLowPass ( FftImage  img,
float  center,
float  width 
)
static

Create a Fourier space representation of a low pass filter.

Such a filter can be applied to an image by multiplying the image's Fourier transform with this filter image and then transforming the result back to Cartesian space.

Parameters
imgImage to apply the filter on.This input image will not directly be processed - it is required to determine the necessary size of the result image only.
centerCutoff position of the filter relative to the frequency range (range [0...1]).
widthWidth of the filter cutoff region (range [0...1]). Helps to reduce ring artifacts.
Returns
Filter's Fourier representation
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed