Deskew(SaneBorderColor,Int32,Int32) Method (SaneAcquiredImage)
Deskew an image, i.e. detects a correct position of image.
Here is a "good" sequence of operations for image processing:
1. Despeckle an image (Despeckle(Int32,Int32,Int32,Int32) method)
2. Deskew an image (Deskew(SaneBorderColor,Int32,Int32) method)
3. Detect image border (DetectBorder(Int32) 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.
Please see example here: SaneAcquiredImage.
Target Platforms: .NET 8, .NET 7; .NET 6