VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.ImageProcessing.Document Namespace / DespeckleCommand Class / DespeckleCommand Constructors / DespeckleCommand Constructor(Int32,Int32,Int32)
Syntax Remarks Requirements SeeAlso
In This Topic
    DespeckleCommand Constructor(Int32,Int32,Int32)
    In This Topic
    Initializes a new instance of the DespeckleCommand class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal level1
    Maximal quantity of pixels in a small noise. Valid values are from 0 to 100, recommended value is 8. What is "small noise" see below.
    As System.Int32, _
    ByVal level2
    Maximal quantity of pixels in a medium noise. Valid values are from 0 to 100, recommended value is 25. What is "medium noise" see below.
    As System.Int32, _
    ByVal radius
    Radius of area around medium noise in which there is no "good objects". Valid values are from 0 to 100, recommended value is 30. What is "good objects" see below.
    As System.Int32 _
    )
    public DespeckleCommand(
    System.Int32 level1,
    System.Int32 level2,
    System.Int32 radius
    )
    public: DespeckleCommand(
    System.Int32 level1,
    System.Int32 level2,
    System.Int32 radius
    )
    public:
    DespeckleCommand(
    System.Int32 level1,
    System.Int32 level2,
    System.Int32 radius
    )

    Parameters

    level1
    Maximal quantity of pixels in a small noise. Valid values are from 0 to 100, recommended value is 8. What is "small noise" see below.
    level2
    Maximal quantity of pixels in a medium noise. Valid values are from 0 to 100, recommended value is 25. What is "medium noise" see below.
    radius
    Radius of area around medium noise in which there is no "good objects". Valid values are from 0 to 100, recommended value is 30. What is "good objects" see below.
    Remarks

    Current algorithm removes two types of noise:

    1. "Small" noise - a set of pixels (non background pixels) with quantity of pixels less than value of level1 parameter. This set of pixels will be replaced to background pixels.

    2. "Medium" noise - a set of pixels (non background pixels) with quantity of pixels less than value of level2 parameter. This set of pixels will be replaced to background pixels if around this set of pixels in a region with radius of value of radius parameter there is no "good objects". "Good object" - not a noise.

    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also