Accusoft.ImagXpress13.Net
DocumentBlobRemoval Method




A System.Drawing.Rectangle which represents the area to remove blobs from. Use an empty rectangle (0,0,0,0) to represent the entire image.
An integer value which represents the minimum number of pixels for an object to be considered a blob for removal purposes. This value should be an integer greater than 0. The default value is 300.
An integer value which represents the maximum number of pixels for an objet to be considered a blob for removal purposes. This value should be an integer greater than 0. The default value is 10000.
The minimum density, as a percentile in the range [0 – 100], that an object must have to be removed. The density is defined as the number of black pixels in the object divided by the area of the convex hull of the object. Solid convex objects such as circles and squares will have densities approaching 100 (with some variation due to rounding in the hull calculation), while hollow or concave objects like the letters "O" and "C" will have low densities. The default value is 50.
Locates and removes large black objects in images such as binder punch holes.
Syntax
'Declaration
 
Public Sub DocumentBlobRemoval( _
   ByVal Area As Rectangle, _
   Optional ByVal MinPixelCount As Integer, _
   Optional ByVal MaxPixelCount As Integer, _
   Optional ByVal MinDensity As Short _
) 
'Usage
 
Dim instance As Processor
Dim Area As Rectangle
Dim MinPixelCount As Integer
Dim MaxPixelCount As Integer
Dim MinDensity As Short
 
instance.DocumentBlobRemoval(Area, MinPixelCount, MaxPixelCount, MinDensity)
public void DocumentBlobRemoval( 
   Rectangle Area,
   int MinPixelCount,
   int MaxPixelCount,
   short MinDensity
)
public: void DocumentBlobRemoval( 
   Rectangle Area,
   int MinPixelCount,
   int MaxPixelCount,
   short MinDensity
) 
public:
void DocumentBlobRemoval( 
   Rectangle Area,
   int MinPixelCount,
   int MaxPixelCount,
   short MinDensity
) 

Parameters

Area
A System.Drawing.Rectangle which represents the area to remove blobs from. Use an empty rectangle (0,0,0,0) to represent the entire image.
MinPixelCount
An integer value which represents the minimum number of pixels for an object to be considered a blob for removal purposes. This value should be an integer greater than 0. The default value is 300.
MaxPixelCount
An integer value which represents the maximum number of pixels for an objet to be considered a blob for removal purposes. This value should be an integer greater than 0. The default value is 10000.
MinDensity
The minimum density, as a percentile in the range [0 – 100], that an object must have to be removed. The density is defined as the number of black pixels in the object divided by the area of the convex hull of the object. Solid convex objects such as circles and squares will have densities approaching 100 (with some variation due to rounding in the hull calculation), while hollow or concave objects like the letters "O" and "C" will have low densities. The default value is 50.
Remarks

ImagXpress removes only black images on a white image. To remove white pixels on a black image requires prior processing, to negate the bitonal image. You can specify a subset of the image to speed processing time and limit unwanted blob removal.

The image is examined for the blobs, such as the black holes left on copies by binder hole punches in the original image. Blobs within the specified region are removed from the current image.

ImagXpress finds black blobs meeting the specified minimum pixel count and yet not exceeding the specified maximum pixel count. The removed blobs are replaced with white pixels. Without a set detection area, the entire image is examined and updated if it meets the criteria. If a blob is detected on the boundaries of a sub-image, only the portion of the blob within the boundaries is removed.

Note: Available in Professional edition.

See Also

Reference

Processor Class
Processor Members

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback