Accusoft ImagXpress 12
RemoveScratches Method
See Also  Send comments on this topic.
IPDefectX1

The x-coordinate of the starting point of the scratch to be removed.

This value must be greater than or equal to 0.

IPDefectY1

The y-coordinate of the starting point of the scratch to be removed.

This value must be greater than or equal to 0.

IPDefectX2

The x-coordinate of the ending point of the scratch to be removed.

This value must be greater than or equal to 0.

IPDefectY2

The y-coordinate of the ending point of the scratch to be removed.

This value must be greater than or equal to 0.

IPDefectLineWidth

The width of the scratch in pixels.

This value must be greater than or equal to 1.

IPDefectThreshold

An integer value which controls how bright a pixel must be before it is considered a scratch.

Valid range is between -255 and 255.

The default value is 0.

IPDefectFilterAdjustment

An integer value which controls where the filter boundary begins relative to the scratch for smoothing to occur.

Valid range is between -6 and 2.

The default value is 0.

IPDefectSmoothingAdjustment

An integer value which controls how much smoothing is applied to the pixels in the scratch.

Valid range is -5 and 100.

The default value is 0.

IPDefectType
An enumDefectType enumeration used in determining what type of scratch to process.
AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : RemoveScratches Method

Glossary Item Box

Description

Removes scratches within color images along a line.

Syntax

Visual Basic
Public Sub RemoveScratches( _
   ByVal IPDefectX1 As Long, _
   ByVal IPDefectY1 As Long, _
   ByVal IPDefectX2 As Long, _
   ByVal IPDefectY2 As Long, _
   ByVal IPDefectLineWidth As Long, _
   ByVal IPDefectThreshold As Integer, _
   ByVal IPDefectFilterAdjustment As Integer, _
   ByVal IPDefectSmoothingAdjustment As Integer, _
   ByVal IPDefectType As enumDefectType _
) 

Parameters

IPDefectX1

The x-coordinate of the starting point of the scratch to be removed.

This value must be greater than or equal to 0.

IPDefectY1

The y-coordinate of the starting point of the scratch to be removed.

This value must be greater than or equal to 0.

IPDefectX2

The x-coordinate of the ending point of the scratch to be removed.

This value must be greater than or equal to 0.

IPDefectY2

The y-coordinate of the ending point of the scratch to be removed.

This value must be greater than or equal to 0.

IPDefectLineWidth

The width of the scratch in pixels.

This value must be greater than or equal to 1.

IPDefectThreshold

An integer value which controls how bright a pixel must be before it is considered a scratch.

Valid range is between -255 and 255.

The default value is 0.

IPDefectFilterAdjustment

An integer value which controls where the filter boundary begins relative to the scratch for smoothing to occur.

Valid range is between -6 and 2.

The default value is 0.

IPDefectSmoothingAdjustment

An integer value which controls how much smoothing is applied to the pixels in the scratch.

Valid range is -5 and 100.

The default value is 0.

IPDefectType
ValueDescription
DefectTypeDarkA dark defect is to be removed.
DefectTypeLightA light defect is to be removed.
An enumDefectType enumeration used in determining what type of scratch to process.

Remarks

Prior to calling RemoveScratches, an Area must be set, using the Area method.

If the starting and ending points of the scratch are identical, an IX_Error_InvalidScratchLinePoints error is returned.

Note: Available in Professional Edition.

See Also

©2013. Accusoft Corporation. All Rights Reserved.