Collection of Filter methods supported by the Common Vision Blox Foundation Package. More...
Static Public Member Functions | |
static Image | Canny (ImagePlane imgPlane, EdgeFilter edgeFilter, int lowerThreshold, int upperThreshold) |
Edge filter using the Canny algorithm. More... | |
static Image | Laplace (Image img, FixedFilterSize size) |
This function applies a square high pass Laplace filter to an image. More... | |
static Image | Sharpen (Image img) |
This function applies a FixedFilterSize.Kernel3x3 sharpen filter to an image. More... | |
static Image | LowPass (Image img, FixedFilterSize size) |
This function applies a square low pass filter to an image. More... | |
static Image | HighPass (Image img, FixedFilterSize size) |
This function applies a square high pass filter to an image. More... | |
static Image | Gauss (Image img, FixedFilterSize size) |
This function applies a low high pass Gaussian filter to an image. More... | |
static Image | BoxMean (Image img, Size2D maskSize) |
This function sets each pixel in the output image to the average of all the input image pixels in the rectangular neighborhood defined by the maskSize parameter. More... | |
static Image | BoxMean (Image img, Size2D maskSize, Point2D maskOffset) |
This function sets each pixel in the output image to the average of all the input image pixels in the rectangular neighborhood defined by the maskSize and the maskOffset parameters. This has the effect of smoothing or blurring the input image. More... | |
static Image | BoxMin (Image img, Size2D maskSize) |
This function sets each pixel in the output image to the minimum value all the input image pixels in the rectangular neighborhood defined by the maskSize parameter. More... | |
static Image | BoxMin (Image img, Size2D maskSize, Point2D maskOffset) |
This function sets each pixel in the output image to the minimum value all the input image pixels in the rectangular neighborhood defined by the maskSize and the maskOffset parameters. More... | |
static Image | BoxMax (Image img, Size2D maskSize) |
This function sets each pixel in the output image to the maximum value all the input image pixels in the rectangular neighborhood defined by the maskSize parameter More... | |
static Image | BoxMax (Image img, Size2D maskSize, Point2D maskOffset) |
This function sets each pixel in the output image to the maximum value all the input image pixels in the rectangular neighborhood defined by the maskSize and the maskOffset parameters. More... | |
static Image | BoxMedian (Image img, Size2D maskSize) |
This function sets each pixel in the output image to the median value all the input image pixels in the rectangular neighborhood defined by the maskSize parameters. More... | |
static Image | BoxMedian (Image img, Size2D maskSize, Point2D maskOffset) |
This function sets each pixel in the output image to the median value all the input image pixels in the rectangular neighborhood defined by the maskSize and the maskOffset parameters. More... | |
static Image | ColorMedian (Image img, FixedFilterSize maskType) |
Apply a color-correct box median filter to an RGB image. More... | |
static Image | Wiener (Image img, Size2D maskSize) |
This function performs adaptive filtering of an image degraded by constant power additive noise. More... | |
static Image | Wiener (Image img, Size2D maskSize, Point2D maskOffset) |
This function performs adaptive filtering of an image degraded by constant power additive noise. More... | |
static Image | Wiener (Image img, Size2D maskSize, double noiseThreshold) |
This function performs adaptive filtering of an image degraded by constant power additive noise. More... | |
static Image | Wiener (Image img, Size2D maskSize, Point2D maskOffset, double noiseThreshold) |
This function performs adaptive filtering of an image degraded by constant power additive noise. More... | |
static Image | Prewitt (Image img, FilterOrientation orientation) |
Applies a Prewitt edge filter to the input image. More... | |
static Image | Scharr (Image img, FilterOrientation orientation) |
Applies a Scharr edge filter to the input image. More... | |
static Image | Sobel (Image img, FilterOrientation orientation, FixedFilterSize maskSize) |
Applies a Sobel edge filter to the input image. More... | |
static Image | Sobel2nd (Image img, FilterOrientation orientation, FixedFilterSize maskSize) |
Applies a 2nd order Sobel edge filter to the input image. More... | |
static Image | Sobel2ndCross (Image img, FixedFilterSize maskSize) |
Applies a 2nd order Sobel cross edge filter to the input image. More... | |
static Image | Roberts (Image img, RobertsDirection direction) |
Apply a Roberts edge detector to the input image. More... | |
static Image | User (Image img, double[,] kernel) |
Apply a user-defined linear convolution filter to an image. More... | |
static Image | User (Image img, double[,] kernel, Point2D maskOffset) |
Apply a user-defined linear convolution filter to an image. More... | |
Collection of Filter methods supported by the Common Vision Blox Foundation Package.
This function sets each pixel in the output image to the maximum value all the input image pixels in the rectangular neighborhood defined by the maskSize parameter
Mask offset is automatically set to the center of the image.
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function sets each pixel in the output image to the maximum value all the input image pixels in the rectangular neighborhood defined by the maskSize and the maskOffset parameters.
img | Image to be filtered |
maskSize | Filter mask to be used |
maskOffset | Mask center pixel location |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function sets each pixel in the output image to the average of all the input image pixels in the rectangular neighborhood defined by the maskSize parameter.
This has the effect of smoothing or blurring the input image. Mask offset is automatically set to the center of the image.
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function sets each pixel in the output image to the average of all the input image pixels in the rectangular neighborhood defined by the maskSize and the maskOffset parameters. This has the effect of smoothing or blurring the input image.
img | Image to be filtered |
maskSize | Filter mask to be used |
maskOffset | Mask center pixel location |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function sets each pixel in the output image to the median value all the input image pixels in the rectangular neighborhood defined by the maskSize parameters.
Mask offset is automatically set to the center of the image.
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function sets each pixel in the output image to the median value all the input image pixels in the rectangular neighborhood defined by the maskSize and the maskOffset parameters.
img | Image to be filtered |
maskSize | Filter mask to be used |
maskOffset | Mask center pixel location |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function sets each pixel in the output image to the minimum value all the input image pixels in the rectangular neighborhood defined by the maskSize parameter.
Mask offset is automatically set to the center of the image.
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function sets each pixel in the output image to the minimum value all the input image pixels in the rectangular neighborhood defined by the maskSize and the maskOffset parameters.
img | Image to be filtered |
maskSize | Filter mask to be used |
maskOffset | Mask center pixel location |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
|
static |
Edge filter using the Canny algorithm.
The algorithm uses three stages:
imgPlane | Image plane to be filtered. |
edgeFilter | Edge filter method to be used. |
lowerThreshold | Lower threshold for hysteresis thresholding. |
upperThreshold | Upper threshold for edge detection and hysteresis thresholding. |
ObjectDisposedException | If the input imgPlane has already been disposed. |
|
static |
Apply a color-correct box median filter to an RGB image.
The input image must have an RGB color model.
img | Image to apply the filter to. |
maskType | Mask size to use. |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
|
static |
This function applies a low high pass Gaussian filter to an image.
img | Image to be filtered. |
size | Either FixedFilterSize.Kernel3x3 or FixedFilterSize.Kernel5x5. |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
ArgumentException | If the size parameter is invalid (only 3x3 and 5x5 filter masks are supported |
|
static |
This function applies a square high pass filter to an image.
img | Image to be filtered. |
size | Either FixedFilterSize.Kernel3x3 or FixedFilterSize.Kernel5x5. |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
ArgumentException | If the size parameter is invalid (only 3x3 and 5x5 filter masks are supported |
|
static |
This function applies a square high pass Laplace filter to an image.
img | Image to be filtered. |
size | Either FixedFilterSize.Kernel3x3 or FixedFilterSize.Kernel5x5. |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
ArgumentException | If the size parameter is invalid (only 3x3 and 5x5 filter masks are supported |
|
static |
This function applies a square low pass filter to an image.
img | Image to be filtered. |
size | Either FixedFilterSize.Kernel3x3 or FixedFilterSize.Kernel5x5. |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
ArgumentException | If the size parameter is invalid (only 3x3 and 5x5 filter masks are supported |
|
static |
Applies a Prewitt edge filter to the input image.
Note that the Prewitt filter zeros out negative edges - if you want to use a filter that preserves the negative edges, please use Sobel or Scharr instead.
img | Image to filter. |
orientation | Orientation of the filter. |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
|
static |
Apply a Roberts edge detector to the input image.
Result values of the Roberts filter that are less than zero will be zeroed out.
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
|
static |
Applies a Scharr edge filter to the input image.
The Scharr filter's output, in case of an 8 bit monochrome input image, will be scaled to the range 0...255, with 128 corresponding to a filter result of zero.
img | Image to filter |
orientation | Orientation of the filter |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function applies a FixedFilterSize.Kernel3x3 sharpen filter to an image.
img | Image to be filtered |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
|
static |
Applies a Sobel edge filter to the input image.
The Sobel filter's output, in case of an 8 bit monochrome input image, will be scaled to the range 0...255, with 128 corresponding to a filter result of zero.
img | Image to filter |
orientation | Orientation of the filter |
maskSize | Mask size (3x3 or 5x5) |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
|
static |
Applies a 2nd order Sobel edge filter to the input image.
The Sobel filter's output, in case of an 8 bit monochrome input image, will be scaled to the range 0...255, with 128 corresponding to a filter result of zero.
img | Image to filter |
orientation | Orientation of the filter |
maskSize | Mask size (3x3 or 5x5) |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
|
static |
Applies a 2nd order Sobel cross edge filter to the input image.
The Sobel filter's output, in case of an 8 bit monochrome input image, will be scaled to the range 0...255, with 128 corresponding to a filter result of zero.
img | Image to filter |
maskSize | Mask size (3x3 or 5x5) |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
Apply a user-defined linear convolution filter to an image.
img | Image to apply the filter to. |
kernel | Coefficients of the filter kernel; must be a two-dimensional array. |
ArgumentNullException | If the input img or kernel is null. |
ObjectDisposedException | If the input img has already been disposed |
InvalidOperationException | If the user kernel has a rank != 2. |
Apply a user-defined linear convolution filter to an image.
img | Image to apply the filter to. |
kernel | Coefficients of the filter kernel; must be a two-dimensional array. |
maskOffset | reference point of the filter mask, relative to the top left cell of the mask |
ArgumentNullException | If the input img or kernel is null. |
ObjectDisposedException | If the input img has already been disposed |
InvalidOperationException | If the user kernel has a rank != 2. |
This function performs adaptive filtering of an image degraded by constant power additive noise.
For each pixel of the input image, the function determines the local image mean and variance in the rectangular neighborhood (mask) defined by maskSize . The deviation from the local average is then diminished according to the local variance and the noise threshold parameters. The noise threshold parameter may be zero, in which case the function tries to determine itself what local noise threshold to apply. This normally yields the best results.
Mask offset is automatically set to the center of the image.
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
This function performs adaptive filtering of an image degraded by constant power additive noise.
For each pixel of the input image, the function determines the local image mean and variance in the rectangular neighborhood (mask) defined by maskSize . The deviation from the local average is then diminished according to the local variance and the noise threshold parameters. The noise threshold parameter may be zero, in which case the function tries to determine itself what local noise threshold to apply. This normally yields the best results.
Mask offset is automatically set to the center of the image.
img | Image to be filtered |
maskSize | Filter mask to be used |
noiseThreshold | Noise suppression threshold.Valid input ranges from 0 to 1; with 0 causing the function to determine the threshold automatically. |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
ArgumentOutOfRangeException | If the noiseThreshold is outside its range. |
This function performs adaptive filtering of an image degraded by constant power additive noise.
For each pixel of the input image, the function determines the local image mean and variance in the rectangular neighborhood (mask) defined by maskSize and maskOffset . The deviation from the local average is then diminished according to the local variance and the noise threshold parameters. The noise threshold parameter may be zero, in which case the function tries to determine itself what local noise threshold to apply. This normally yields the best results.
img | Image to be filtered |
maskSize | Filter mask to be used |
maskOffset | Mask center pixel location |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
|
static |
This function performs adaptive filtering of an image degraded by constant power additive noise.
For each pixel of the input image, the function determines the local image mean and variance in the rectangular neighborhood (mask) defined by maskSize and maskOffset . The deviation from the local average is then diminished according to the local variance and the noise threshold parameters. The noise threshold parameter may be zero, in which case the function tries to determine itself what local noise threshold to apply. This normally yields the best results.
img | Image to be filtered |
maskSize | Filter mask to be used |
maskOffset | Mask center pixel location |
noiseThreshold | Noise suppression threshold.Valid input ranges from 0 to 1; with 0 causing the function to determine the threshold automatically. |
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
ArgumentOutOfRangeException | If the noiseThreshold is outside its range. |