CogIPOneImageGaussSampler ClassCognex VisionPro 9.10
Class that applies a kernel to the image that approximates a two-dimensional Gaussian distribution. By varying the size of this kernel, you can reduce the strength of noise, or you can attenuate image features below a certain size. Optional subsampling and/or scaling are performed last.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.ImageProcessing CogIPOneImageGaussSampler

Namespace: Cognex.VisionPro.ImageProcessing
Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 79.0.0.0
Syntax

[SerializableAttribute]
public class CogIPOneImageGaussSampler : CogObjectBase, 
	ICogNetInternal, IDisposable, ICogIPOneImageOperator, ICogIPOneImageOperatorParams, ICloneable, 
	ISerializable, ICogHasChanged, ICogChangedEvent

The CogIPOneImageGaussSampler type exposes the following members.

Constructors

  NameDescription
Public methodCogIPOneImageGaussSampler 
Constructs a new instance of this class.
Public methodCogIPOneImageGaussSampler(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogIPOneImageGaussSampler(CogIPOneImageGaussSampler)
Constructs a new instance of this class as a deep copy of the given instance.
Top
Methods

  NameDescription
Protected methodClone
Returns a deep copy of this class instance. Derived classes that implement Clone should override this method; other clients who wish to clone this instance should call ICloneable.Clone. See also CogSerializer.DeepCopyObject
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 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Perform a single image operation using the input image and region to produce the output image.
Protected methodFinalize (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
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.)
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called. Also 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.
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.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfCarePelsMinFraction
This bit will be set in the EventArgs of a Changed event every time the value returned by CarePelsMinFraction may have changed.
Public fieldStatic memberSfEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by Enabled may have changed.
Public fieldStatic memberSfInputImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMask may have changed.
Public fieldStatic memberSfInputImageMaskOffsetX
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMaskOffsetX may have changed.
Public fieldStatic memberSfInputImageMaskOffsetY
This bit will be set in the EventArgs of a Changed event every time the value returned by InputImageMaskOffsetY may have changed.
Public fieldStatic memberSfIntermediateImageComputationPolicy
This bit will be set in the EventArgs of a Changed event every time the value returned by IntermediateImageComputationPolicy may have changed.
Public fieldStatic memberSfIntermediateImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by IntermediateImageMask may have changed.
Public fieldStatic memberSfIntermediateImageMaskOffsetX
This bit will be set in the EventArgs of a Changed event every time the value returned by IntermediateImageMaskOffsetX may have changed.
Public fieldStatic memberSfIntermediateImageMaskOffsetY
This bit will be set in the EventArgs of a Changed event every time the value returned by IntermediateImageMaskOffsetY may have changed.
Public fieldStatic memberSfIntermediateImageMaskSelect
This bit will be set in the EventArgs of a Changed event every time the value returned by IntermediateImageMaskSelect may have changed.
Public fieldStatic memberSfMagnitudeShift
This bit will be set in the EventArgs of a Changed event every time the value returned by MagnitudeShift may have changed.
Public fieldStatic memberSfOperatorName
This bit will be set in the EventArgs of a Changed event every time the value returned by OperatorName may have changed.
Public fieldStatic memberSfOutputImageFormat
This bit will be set in the EventArgs of a Changed event every time the value returned by OutputImageFormat may have changed.
Public fieldStatic memberSfOutputImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by OutputImageMask may have changed.
Public fieldStatic memberSfOutputSelect
This bit will be set in the EventArgs of a Changed event every time the value returned by OutputSelect may have changed.
Public fieldStatic memberSfSampleX
This bit will be set in the EventArgs of a Changed event every time the value returned by SampleX may have changed.
Public fieldStatic memberSfSampleY
This bit will be set in the EventArgs of a Changed event every time the value returned by SampleY may have changed.
Public fieldStatic memberSfSigmaX
This bit will be set in the EventArgs of a Changed event every time the value returned by SigmaX may have changed.
Public fieldStatic memberSfSigmaY
This bit will be set in the EventArgs of a Changed event every time the value returned by SigmaY may have changed.
Public fieldStatic memberSfSmoothnessX
This bit will be set in the EventArgs of a Changed event every time the value returned by SmoothnessX may have changed.
Public fieldStatic memberSfSmoothnessY
This bit will be set in the EventArgs of a Changed event every time the value returned by SmoothnessY may have changed.
Top
Properties

  NameDescription
Public propertyCarePelsMinFraction
Only meaningfull when IntermediateImageComputationPolicy is UseCarePelsMinFraction. Zero has a special meaning: it means "accept any non-zero fraction, no matter how small."
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.
Public propertyEnabled
Whether this one image operator will be used to compute the output image.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyInputImageMask
Mask indicating areas of Care (mask value 255) and Don't Care (mask value zero). The mask is aligned to the InputImage using the InputImageMaskOffsetX & Y values.
Public propertyInputImageMaskOffsetX
X offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the InputImage to the upper-left corner of the InputImageMask, in pixel coordinates of the InputImage.
Public propertyInputImageMaskOffsetY
Y offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the InputImage to the upper-left corner of the InputImageMask, in pixel coordinates of the InputImage.
Public propertyIntermediateImageComputationPolicy
How to use the kernel and the InputImageMask to determine whether to compute a pixel value or copy from the InputImage.
Public propertyIntermediateImageMask
Mask indicating areas of Care (mask value 255) and Don't Care (mask value zero). The mask is aligned to the intermediate image using the IntermediateImageMaskOffsetX & Y values.
Public propertyIntermediateImageMaskOffsetX
X offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the intermediate image to the upper-left corner of the IntermediateImageMask, in pixel coordinates of the intermediate image.
Public propertyIntermediateImageMaskOffsetY
Y offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the intermediate image to the upper-left corner of the IntermediateImageMask, in pixel coordinates of the intermediate image.
Public propertyIntermediateImageMaskSelect
Decides whether to use the IntermediateImageMask, or use the InputImageMask as the IntermediateImageMask.
Public propertyMagnitudeShift
Bitwise shifts the pixel values of the result. Valid shift values are from -7 to 7. Negative values will darken the result by dividing the pixel value results by 2 for each bit specified. Similarly, positive values will brighten by multiplying by 2.
Public propertyOperatorName
Returns/sets a displayable operator name.
Public propertyOutputImageFormatObsolete.
The pixel depth of the image to generate by the Gaussian operation.
Public propertyOutputImageMask
This is the computed mask that helps us figure out which output pixels were computed and which were copied from InputImage.
Public propertyOutputSelect
Whether the operator should output just an image, or an image plus a computed image mask.
Public propertySampleX
Subsampling rate in the X direction that reduces the image width, dividing by the specified value. Sampling is performed after the Gaussian filter is applied. In general, SampleX should be less than SmoothnessX.
Public propertySampleY
Subsampling rate in the Y direction that reduces the image height, dividing by the specified value. Sampling is performed after the Gaussian filter is applied. In general, SampleY should be less than SmoothnessY.
Public propertySigmaX
Returns the standard deviation of the Gaussian curve along the X axis.
Public propertySigmaY
Returns the standard deviation of the Gaussian curve along the Y axis.
Public propertySmoothnessX
Smoothness in the X direction. The smoothness value determines the sigma of the Gaussian curve and in turn the size of the Gaussian kernel. For speed efficiency, it is recommended that the smoothness not exceed 24 for CogImage8Grey or CogImage24PlanarColor, and not exceed 39 for CogImage16Grey.
Public propertySmoothnessY
Smoothness in the Y direction. The smoothness value determines the sigma of the Gaussian curve and in turn the size of the Gaussian kernel. For speed efficiency, it is recommended that the smoothness not exceed 24 for CogImage8Grey or CogImage24PlanarColor, and not exceed 39 for CogImage16Grey.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Top
Remarks

Primary interface of a CogIPOneImageGaussSampler object. This object performs Gaussian subsampling on an image to produce a new image. See the Gaussian Sampling Theory Topic to learn more about Gaussian Sampling.

See Also