CogTrevista ClassCognex VisionPro 9.25 SR1
Class that holds the Trevista run parameters. These parameters are used by the Execute(ICogVisionData) method and control how the Trevista algorithm will generate the output images.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.Trevista CogTrevista

Namespace: Cognex.VisionPro.Trevista
Assembly: Cognex.VisionPro.Trevista (in Cognex.VisionPro.Trevista.dll) Version: 93.1.0.0
Syntax

[SerializableAttribute]
public class CogTrevista : CogSerializableChangedEventBase, 
	IDisposable

The CogTrevista type exposes the following members.

Constructors

  NameDescription
Public methodCogTrevista 
Constructs a default CogTrevista object.
Public methodCogTrevista(CogTrevista)
Constructs a deep copy of the supplied CogTrevista object.
Protected methodCogTrevista(SerializationInfo, StreamingContext)
Serialization constructor for CogTrevista object.
Top
Methods

  NameDescription
Public methodCreateFloatHistogram
Creates a histogram of the internal floating point values for the image that you specify.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose 
Releases all resources used by this CogTrevista object.
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Take the input CogImage8Interlaced and unpack its 8 bit pixels into four "shading" images. Process those to produce the requested output images.
Protected methodFinalize
Releases all unmanaged resources used by this CogTrevista object.
(Overrides Object Finalize .)
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.)
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected methodOnChanged(Int64)
This method should be called internally whenever the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Protected methodOnChanged(CogChangedEventArgs)
This method may be called internally whenever a derived object's state may have changed and the derived object expresses this change via a derived CogChangedEventArgs class.
(Inherited from CogSerializableChangedEventBase.)
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and raises the Changed event 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.
(Inherited from CogSerializableChangedEventBase.)
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
(Inherited from CogSerializableChangedEventBase.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfContourImageParams
This bit will be set in the EventArgs of a Changed event every time the value returned by ContourImageParams may have changed.
Public fieldStatic memberSfCpuProcessingThreadCountMax
This bit will be set in the EventArgs of a Changed event every time the value returned by CpuProcessingThreadCountMax may have changed.
Public fieldStatic memberSfCreateFloatHistogram
This bit will be set in the EventArgs of a Changed event every time the value returned by CreateFloatHistogram() may have changed.
Public fieldStatic memberSfDepthImageParams
This bit will be set in the EventArgs of a Changed event every time the value returned by DepthImageParams may have changed.
Public fieldStatic memberSfDomeDiameter
This bit will be set in the EventArgs of a Changed event every time the value returned by DomeDiameter may have changed.
Public fieldStatic memberSfGPUDeviceIndex
This bit will be set in the EventArgs of a Changed event every time the value returned by GPUDeviceIndex may have changed.
Public fieldStatic memberSfGreyscaleImageParams
This bit will be set in the EventArgs of a Changed event every time the value returned by GreyscaleImageParams may have changed.
Public fieldStatic memberSfMotionAccuracy
This bit will be set in the EventArgs of a Changed event every time the value returned by MotionAccuracy may have changed.
Public fieldStatic memberSfMotionFilterSize
This bit will be set in the EventArgs of a Changed event every time the value returned by MotionFilterSize may have changed.
Public fieldStatic memberSfMotionType
This bit will be set in the EventArgs of a Changed event every time the value returned by MotionType may have changed.
Protected fieldStatic memberSfNextSf
Public fieldStatic memberSfProcessorType
This bit will be set in the EventArgs of a Changed event every time the value returned by ProcessorType may have changed.
Public fieldStatic memberSfSensorCompensationModifier
This bit will be set in the EventArgs of a Changed event every time the value returned by SensorCompensationModifier may have changed.
Public fieldStatic memberSfSensorCorrectionEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by SensorCorrectionEnabled may have changed.
Public fieldStatic memberSfSensorPixelSize
This bit will be set in the EventArgs of a Changed event every time the value returned by SensorPixelSize may have changed.
Public fieldStatic memberSfShadingImage1Params
This bit will be set in the EventArgs of a Changed event every time the value returned by ShadingImage1Params may have changed.
Public fieldStatic memberSfShadingImage2Params
This bit will be set in the EventArgs of a Changed event every time the value returned by ShadingImage2Params may have changed.
Public fieldStatic memberSfShadingImage3Params
This bit will be set in the EventArgs of a Changed event every time the value returned by ShadingImage3Params may have changed.
Public fieldStatic memberSfShadingImage4Params
This bit will be set in the EventArgs of a Changed event every time the value returned by ShadingImage4Params may have changed.
Public fieldStatic memberSfShapeHorizontalImageParams
This bit will be set in the EventArgs of a Changed event every time the value returned by ShapeHorizontalImageParams may have changed.
Public fieldStatic memberSfShapeVerticalImageParams
This bit will be set in the EventArgs of a Changed event every time the value returned by ShapeVerticalImageParams may have changed.
Top
Properties

  NameDescription
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.)
Public propertyContourImageParams
Gets or sets the parameters controlling the output ContourImage.
Public propertyCpuProcessingThreadCountMax
Gets or sets the maximum number of threads to use when processing with a CPU
Public propertyDepthImageParams
Gets or sets the parameters controlling the output DepthImage.
Public propertyDomeDiameter
Gets or sets the diameter of the dome illumination unit in millimeters.
Public propertyGPUDeviceIndex
Cognex Internal Use Only Gets or sets the GPU device to use when ProcessorType is set to GpuIfAvailable
Public propertyGreyscaleImageParams
Gets or sets the parameters controlling the output GreyscaleImage.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyStatic memberIsGpuAvailable
Returns true if a supported GPU is currently available.
Public propertyMotionAccuracy
Cognex Internal Use Only. Gets or sets the motion compensation accuracy.
Public propertyMotionFilterSize
Cognex Internal Use Only. Gets or sets the filter size of the matching algorithm, in pixels, to be used when including motion compensation in the processing of output images.
Public propertyMotionType
Cognex Internal Use Only. Gets or sets what type of motion compensation will be included in the processing of output images.
Public propertyProcessorType
Gets or sets the preferred mechanism for the processing of results.
Public propertySensorCompensationModifier
Gets or sets the modifier to apply to sensor correction in order to account for distortion from reflectance, sensor position, or other factors (no units, see remarks for details).
Public propertySensorCorrectionEnabled
Gets or sets whether gradient correction is performed as part of the calculation of ShapeHorizontalImage and ShapeVerticalImage
Public propertySensorPixelSize
Gets or sets the SensorPixelSize in millimeters.
Public propertyShadingImage1Params
Gets or sets the parameters controlling the output ShadingImage1.
Public propertyShadingImage2Params
Gets or sets the parameters controlling the output ShadingImage2.
Public propertyShadingImage3Params
Gets or sets the parameters controlling the output ShadingImage3.
Public propertyShadingImage4Params
Gets or sets the parameters controlling the output ShadingImage4.
Public propertyShapeHorizontalImageParams
Gets or sets the main parameters controlling the output ShapeHorizontalImage.
Public propertyShapeVerticalImageParams
Gets or sets the main parameters controlling the output ShapeVerticalImage.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Top
Remarks

The CogTrevista class processes an input CogImage8Interlaced that shows four uniquely illuminated views of a surface to be analyzed. From that input, the Execute(ICogVisionData) method produces a set of output images that emphasize specific aspects of the surface.
See Also