VintaSoft Twain .NET SDK v10.2
Deskew Method (AcquiredImage)




Vintasoft.Twain Namespace > AcquiredImage Class : Deskew Method
Free space around rotated image will be filled with this color.
Specifies scan interval for X axis. Recommended value is 5.
Specifies scan interval for X axis. Recommended value is 5.
Deskew an image, i.e. detects a correct position of image.
Syntax
'Declaration
 
Public Sub Deskew( _
   ByVal borderColor As BorderColor, _
   ByVal scanIntervalX As Integer, _
   ByVal scanIntervalY As Integer _
) 
'Usage
 
Dim instance As AcquiredImage
Dim borderColor As BorderColor
Dim scanIntervalX As Integer
Dim scanIntervalY As Integer
 
instance.Deskew(borderColor, scanIntervalX, scanIntervalY)
public void Deskew( 
   BorderColor borderColor,
   int scanIntervalX,
   int scanIntervalY
)
public: void Deskew( 
   BorderColor borderColor,
   int scanIntervalX,
   int scanIntervalY
) 
public:
void Deskew( 
   BorderColor borderColor,
   int scanIntervalX,
   int scanIntervalY
) 

Parameters

borderColor
Free space around rotated image will be filled with this color.
scanIntervalX
Specifies scan interval for X axis. Recommended value is 5.
scanIntervalY
Specifies scan interval for X axis. Recommended value is 5.
Remarks
Here is a "good" sequence of operations for image processing:
1. Despeckle an image (Despeckle method)
2. Deskew an image (Deskew method)
3. Detect image border (DetectBorder method)

Possible values for scanIntervalX and scanIntervalY parameters: 1 - every column (row) will be scanned, 2 - every second column (row) will be scanned, 3 - every third column (row) will be scanned, and so on. Big values of these parameters may speed up deskewing process, but may worsen results.
Example
Please see example here.
Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

AcquiredImage Class
AcquiredImage Members
Despeckle Method
DetectBorder Method