Class ScewSweep
Inheritance
System.Object
ScewSweep
Assembly: IronOcr.dll
Syntax
public sealed class ScewSweep : ValueType
Tuning how IronOCR searches for a page's skew angle runs through ScewSweep, the small settings record that drives the deskew estimation. It bundles the parameters that decide how wide and how finely the estimator hunts for the tilt that best straightens a scan, so a project can trade detection speed against precision.
Three read-only values define a sweep. Range is the span of angles searched in degrees, Delta is the step between candidate angles within that span, and Reduction is the downscaling factor applied while testing, where a larger reduction speeds the search on big images. The Default static value supplies a balanced configuration, and the DefaultRange, DefaultDelta, and DefaultReduction constants expose its individual settings for reference. The constructor takes the same three parameters with those defaults, so a custom sweep widens Range for badly tilted input or shrinks Delta for a finer angle estimate. The orientation correction how-to covers straightening a skewed page.
Constructors
ScewSweep(Int32, Single, Single)
Declaration
public ScewSweep(int reduction = 4, float range = 7F, float delta = 1F)
Parameters
| Type |
Name |
Description |
| System.Int32 |
reduction |
|
| System.Single |
range |
|
| System.Single |
delta |
|
Fields
Default
Declaration
public static ScewSweep Default
Field Value
DefaultDelta
Declaration
public const float DefaultDelta = 1F
Field Value
| Type |
Description |
| System.Single |
|
DefaultRange
Declaration
public const float DefaultRange = 7F
Field Value
| Type |
Description |
| System.Single |
|
DefaultReduction
Declaration
public const int DefaultReduction = 4
Field Value
| Type |
Description |
| System.Int32 |
|
Properties
Delta
Declaration
public float Delta { get; }
Property Value
| Type |
Description |
| System.Single |
|
Range
Declaration
public float Range { get; }
Property Value
| Type |
Description |
| System.Single |
|
Reduction
Declaration
public int Reduction { get; }
Property Value
| Type |
Description |
| System.Int32 |
|