Detects and removes specks from the current image.
Visual Basic |
---|
Public Sub DocumentDespeckle( _ ByVal SpeckWidth As Integer, _ ByVal SpeckHeight As Integer _ ) |
- SpeckWidth
The maximum pixel width an object is considered a speck.
Range: 1 - 100
Typical: 2
- SpeckHeight
The maximum pixel height an object is considered a speck.
Range: 1 - 100
Typical: 2
Despeckle is the process of removing random specks of noise from an image. This method examines the current image to find objects meeting the current criteria for specks and then removes them. If no parameters are provided, the defaults are used.
Output
- ImagXpress validates the input, detects the specks, removes them and returns results from the process. If the operation fails, the current image is unchanged. If no errors occur, ImagXpress despeckles the current image. If the despeckle operation is not performed for any reason, the current image is not modified.
- IPImageWasModified is set to True if the image was modified, and False if image was not modified.
- IPCountOfSpecsFound is set with the number of specks found.
Using the DocumentDespeckle method
- Load a 1 bit image from a file or stream input.
- Call DocumentDespeckle
- Image is despeckled, according to parameter specifications and limitations.
Note: Available in Professional Edition.