Skip to main content

Compare

Functions to compare vision elements.

isEquivalentPath2d()

Returns true if paths have the same set of consecutive points, but not necessarily the same starting point, and are closed paths.

function isEquivalentPath2d(path1: Path2d, path2: Path2): boolean;

compareValueBoolean()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueBoolean(boolean1: Boolean, boolean2: Boolean): boolean;

compareValueNumber()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueNumber(number1: Number, number2: Number): boolean;

compareValueString()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueString(string1: String, string2: String): boolean;

compareValueProbability()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueProbability(probability1: Probability, probability2: Probability): boolean;

compareValuePoint()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValuePoint(point1: Point2d, point2: Point2d): boolean;

compareValueSegment()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueSegment(segment1: Segment2d, segment2: Segment2d): boolean;

compareValueLine()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueLine(line1: Line2d, line2: Line2d): boolean;

compareValueRect()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueRect(rect1: Rect2d, rect2: Rect2d): boolean;

compareValueEllipse()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueEllipse(ellipse1: Ellipse2d, ellipse2: Ellipse2d): boolean;

compareValuePath()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValuePath(path1: Path2d, path2: Path2d): boolean;

compareValueShape()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account.

function compareValueShape(shape1: Shape2d, shape2: Shape2d): boolean;

compareValueImage()

Returns true if the value part of the vision elements are the same. The props of the vision element are not taken into account. The value of the image is completely compared, including: width, height, pixel format, and pixel data.

function compareValueImage(image1: Image, image2: Image): boolean;