ScanFix Xpress v9.0 for .NET - Updated
RemoveBorder() Method




Accusoft.ScanFixXpressSdk Namespace > ScanFix Class > RemoveBorder Method : RemoveBorder() Method
Locate border pixels and will replace them with the specified pad color and/or remove the pixels from the image.
Syntax
'Declaration
 
Public Overloads Function RemoveBorder() As BorderRemovalResults
'Usage
 
Dim instance As ScanFix
Dim value As BorderRemovalResults
 
value = instance.RemoveBorder()
public BorderRemovalResults RemoveBorder()
public: BorderRemovalResults* RemoveBorder(); 
public:
BorderRemovalResults^ RemoveBorder(); 

Return Value

A BorderRemovalResults object containing information about the results of the border removal process.
Exceptions
ExceptionDescription
Thrown when image type is unsupported.
Thrown when operation failed.
Remarks

Optionally, it can also deskew the image based on the angle of the detected border.

Note:Use this function if the default control parameters are adequate.

When to use border removal and what results to expect:

Border removal attempts to find "border-like" characteristics of an image. On images that it finds no suitable borders, or multiple suitable borders, a low confidence will likely to be returned. Border removal in most cases tolerates white specks in the border and black specks in the page unless the specks account for a susbstantial portion, say more than 25%, of all the pixels in a large area. Thick black or white streaks on images may cause reduced accuracy for border removal, as they resemble nice, straight edges. Irregular borders, such as the ones with white areas in the border, may cause some portions of the border to be left on the image.

See Also

Reference

ScanFix Class
ScanFix Members
Overload List

Is this page helpful?
Yes No
Thanks for your feedback.