LineMaxEdgeDetectionParams ClassCognex VisionPro 9.22

Class for configuring the edge detection behavior of LineMaxOperator.

Inheritance Hierarchy

System Object
  Cognex.Vision ShareableBase
    Cognex.Vision ChangedEventShareableBase
      Cognex.Vision.LineMax LineMaxEdgeDetectionParams

Namespace: Cognex.Vision.LineMax
Assembly: Cognex.Vision.LineMax.Net (in Cognex.Vision.LineMax.Net.dll) Version: 9.22.2.0
Syntax

public sealed class LineMaxEdgeDetectionParams : ChangedEventShareableBase, 
	IObject

The LineMaxEdgeDetectionParams type exposes the following members.

Constructors

  NameDescription
Public methodLineMaxEdgeDetectionParams

Constructs a new instance of this class.

Top
Methods

  NameDescription
Public methodEquals
Compares the equality of this object with another.
(Overrides ChangedEventShareableBase Equals(Object).)
Public methodGetHashCode
Returns the hash code of this object.
(Overrides ChangedEventShareableBase GetHashCode .)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodResumeAndRaiseChangedEvent

Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase ResumeAndRaiseChangedEvent .)
Public methodSuspendChangedEvent

Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares the equality of two LineMaxEdgeDetectionParams objects.
Public operatorStatic memberInequality
Compares the inequality of two LineMaxEdgeDetectionParams objects.
Top
Fields

  NameDescription
Public fieldStatic memberSfContrastThreshold
Public fieldStatic memberSfGradientKernelSizeInPixels
Public fieldStatic memberSfNormalizedContrastThreshold
Public fieldStatic memberSfProjectionLengthInPixels
Top
Properties

  NameDescription
Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Overrides ChangedEventShareableBase ChangedEventSuspended.)
Public propertyContrastThreshold
Get

Gets the minimum contrast constraint. Edge points are not created for gradients with a contrast below this value.

Public propertyGradientKernelSizeInPixels
Get

Gets size of the 2D kernel used to convert image pixels into image gradients.

Public propertyHandle (Overrides ChangedEventShareableBase Handle.)
Public propertyNormalizedContrastThreshold
Get

Gets the minimum normalized contrast constraint. Edge points are not created for gradients with a normalized contrast below this value.

Public propertyProjectionLengthInPixels
Get

Gets the length of the 1D kernel used during gradient field projection. This length is along the expected line tangent direction.

Top
Events

  NameDescription
Public eventChanged

The actual event.

(Overrides ChangedEventShareableBase Changed.)
Top
Remarks

Edge detection operates by smoothing and decimating the input image, using GradientKernelSizeInPixels. Gradient vectors are then computed for each pixel in the decimated image. Both the gradient vectors and the input image are projected over many caliper-like projection regions, using ProjectionLengthInPixels. A pixel is considered a candidate edge point if its projected gradient magnitude exceeds ContrastThreshold and if the ratio of its projected gradient magnitude and its intensity exceeds NormalizedContrastThreshold. See LineMaxOperator for information on how lines are created from the detected edge points.

See Also