Accusoft.ImagXpress13.Net
RemoveScratches Method




A point value which represents the starting point of the scratch to be removed. The coordinate values of the point must be greater than or equal to 0.
A point value which represents the ending point of the scratch to be removed. The coordinate values of the point must be greater than or equal to 0.
An integer value which represents the width of the scratch in pixels. This value must be greater than or equal to 1.
An integer value which represents how bright a pixel must be before it is considered a scratch. This value must be between -255 and 255 inclusive.
An integer value which controls where the filter boundary begins relative to the scratch for smoothing to occur. Pixels near (not inside) the scratch are filtered to make a smooth transition. This value must be between -6 and 2 inclusive. A default value of 0 is recommended for a starting value.
An integer value which controls how much smoothing is applied to the pixels in the scratch. This value must be between -5 and 100 inclusive. A default value of 0 is recommended for a starting value.
The DefectType value used in determining the type of scratch to process, essentially either dark or light scratches.
Removes what appear to be scratches within color images along a line.
Syntax
'Declaration
 
Public Sub RemoveScratches( _
   ByVal scratchStartingPoint As Point, _
   ByVal scratchEndingPoint As Point, _
   ByVal scratchLineWidth As Integer, _
   ByVal scratchThreshold As Integer, _
   ByVal scratchFilterAdjustment As Integer, _
   ByVal scratchSmoothingAdjustment As Integer, _
   ByVal scratchType As DefectType _
) 
'Usage
 
Dim instance As Processor
Dim scratchStartingPoint As Point
Dim scratchEndingPoint As Point
Dim scratchLineWidth As Integer
Dim scratchThreshold As Integer
Dim scratchFilterAdjustment As Integer
Dim scratchSmoothingAdjustment As Integer
Dim scratchType As DefectType
 
instance.RemoveScratches(scratchStartingPoint, scratchEndingPoint, scratchLineWidth, scratchThreshold, scratchFilterAdjustment, scratchSmoothingAdjustment, scratchType)

Parameters

scratchStartingPoint
A point value which represents the starting point of the scratch to be removed. The coordinate values of the point must be greater than or equal to 0.
scratchEndingPoint
A point value which represents the ending point of the scratch to be removed. The coordinate values of the point must be greater than or equal to 0.
scratchLineWidth
An integer value which represents the width of the scratch in pixels. This value must be greater than or equal to 1.
scratchThreshold
An integer value which represents how bright a pixel must be before it is considered a scratch. This value must be between -255 and 255 inclusive.
scratchFilterAdjustment
An integer value which controls where the filter boundary begins relative to the scratch for smoothing to occur. Pixels near (not inside) the scratch are filtered to make a smooth transition. This value must be between -6 and 2 inclusive. A default value of 0 is recommended for a starting value.
scratchSmoothingAdjustment
An integer value which controls how much smoothing is applied to the pixels in the scratch. This value must be between -5 and 100 inclusive. A default value of 0 is recommended for a starting value.
scratchType
The DefectType value used in determining the type of scratch to process, essentially either dark or light scratches.
Exceptions
ExceptionDescription
System.ArgumentExceptionThrown when the scratch starting and ending points are the same.
Remarks

Before calling this method you must set an area using the SetArea method.

Note: Available in Professional edition.

Thrown when the scratch starting and ending points are the same.
See Also

Reference

Processor Class
Processor Members

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback