Click or drag to resize

FoundPolygon Class

This class holds the data of polygons found by image processing. It is always interpreted as a closed polygon, even if last and first corners are different.
Inheritance Hierarchy
SystemObject
  RAYLASE.Marker.JobElement.ImageProcessingBaseFoundImageProcessingObject
    RAYLASE.Marker.JobElement.ImageProcessingFoundPolygon

Namespace: RAYLASE.Marker.JobElement.ImageProcessing
Assembly: RAYLASE.Marker.JobElement (in RAYLASE.Marker.JobElement.dll) Version: 2.19.0
Syntax
C#
public class FoundPolygon : BaseFoundImageProcessingObject, 
	IFoundObject

The FoundPolygon type exposes the following members.

Constructors
 NameDescription
Public methodFoundPolygon Constructs a new, empty polygon.
Top
Properties
 NameDescription
Public propertyAngle The angle of the first side (i. e. the width of the smallest bounding box) relative to the x axis in rad, measured counterclockwise.
(Inherited from BaseFoundImageProcessingObject)
Public propertyArea The area enclosed by the polygon. Only reliable if there are no intersections of the edges. See https://web.archive.org/web/20100405070507/http://valis.cs.uiuc.edu/~sariel/research/CG/compgeom/msg00831.html.
(Overrides BaseFoundImageProcessingObjectArea)
Public propertyBoundingBox 
Public propertyCenter The center point of the polygon, i. e. the average of all corners.
(Overrides BaseFoundImageProcessingObjectCenter)
Public propertyCorners The list of all Corners building the polygon. It is implicitly assumed to be closed, i. e. last and first corner does not have to be the same.
Public propertyDistanceToOrigin Distance of the object's center to the workspace's center in world coordinates in the workspace's coordinate system.
(Inherited from BaseFoundImageProcessingObject)
Public propertyDistanceToRoiCenter The distance between the found object's center and the center of the region of interest in which the object has been found.
(Inherited from BaseFoundImageProcessingObject)
Public propertyEdges The list of all edges building the closed polygon.
Public propertyFilterFields Only for the GUI: This array controls which properties in the result output will have a funnel for transferring a value range around the current value into the filter/selection group. If empty, all relevant properties will have a funnel.
Public propertyImageIndex The image processing plug-in has a ring buffer array of images where the result of an object finding process is stored. This index is stored here.
(Inherited from BaseFoundImageProcessingObject)
Public propertyIsHexagon True if the polygon has six corners.
Public propertyIsPentagon True if the polygon has five corners.
Public propertyIsQuad True if the polygon has four corners.
Public propertyIsTriangle True if the polygon has three corners.
Public propertyLength The summed up length of all edges.
(Overrides BaseFoundImageProcessingObjectLength)
Public propertyObjectColor The color a found object will have when drawn in a result image.
(Inherited from BaseFoundImageProcessingObject)
Public propertyObjectFields The list of the relevant parameters and their values in the result output.
Public propertyObjectText The list of parameters and their values as string for showing in the GUI.
Public propertyObjectTypeTitle The title of an object entry in the list of results.
Public propertyObjectUnit The unit the found object's coordinate are in. Pixel or millimeter.
(Inherited from BaseFoundImageProcessingObject)
Public propertyRoiCenter The center of the region of interest in which the object has been found in micrometers in world coordinates in the workspace's coordinate system.
(Inherited from BaseFoundImageProcessingObject)
Public propertySearchNo The sequential number of the search which is done during the image processing job. I. e. an identifier for the 1st, 2nd or 3rd search an object has been found in; the value is 1, 2 or 3.
(Inherited from BaseFoundImageProcessingObject)
Public propertySize The size of the (possibly rotated) bounding box around the object.
(Inherited from BaseFoundImageProcessingObject)
Protected propertyUnitFactor Unit factor to convert micrometers into millimeters in case the unit is not pixel.
(Inherited from BaseFoundImageProcessingObject)
Top
Methods
 NameDescription
Public methodAddCorner Adds the given corner to the list of corners.
Public methodCloneDeep Creates a deep clone of this object.
(Inherited from BaseFoundImageProcessingObject)
Public methodIsCenterEqual Checks if this object has the same center as the other object.
(Inherited from BaseFoundImageProcessingObject)
Public methodIsEquilateral Checks if all edges of the polygon have nearly the same length. I. e. an edge must not differ more then one percent from the ave length of all edges.
Protected methodSetFilter Only for the GUI: Sets a funnel button in front of the displayed property in the result list when the property name is contained in the given string array. The button transfers a value range around the property value into the according value range fields in the dialog.
(Inherited from BaseFoundImageProcessingObject)
Public methodToString Returns the list of all relevant properties as combined string.
(Inherited from BaseFoundImageProcessingObject)
Top
Fields
 NameDescription
Protected field_angle The angle, measured counter clockwise, between the object (in case of a line) or its bounding box and the x axis.
(Inherited from BaseFoundImageProcessingObject)
Protected field_area The area enclosed by the object's contour.
(Inherited from BaseFoundImageProcessingObject)
Protected field_center The center point of the object.
(Inherited from BaseFoundImageProcessingObject)
Protected field_length The length or circumference of the object's contour.
(Inherited from BaseFoundImageProcessingObject)
Top
See Also