Show / Hide Table of Contents

Struct LineSegmentPolar

Polar line segment retrieved from cvHoughLines2

Implements
IEquatable<LineSegmentPolar>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public struct LineSegmentPolar

Constructors

| Improve this Doc View Source

LineSegmentPolar(Single, Single)

Constructor

Declaration
public LineSegmentPolar(float rho, float theta)
Parameters
Type Name Description
System.Single rho

Length of the line

System.Single theta

Angle of the line (radian)

Fields

| Improve this Doc View Source

Rho

Length of the line

Declaration
public float Rho
Field Value
Type Description
System.Single
| Improve this Doc View Source

Theta

Angle of the line (radian)

Declaration
public float Theta
Field Value
Type Description
System.Single

Methods

| Improve this Doc View Source

Equals(LineSegmentPolar)

Specifies whether this object contains the same members as the specified Object.

Declaration
public bool Equals(LineSegmentPolar other)
Parameters
Type Name Description
LineSegmentPolar other

The Object to test.

Returns
Type Description
System.Boolean

This method returns true if obj is the same type as this object and has the same members as this object.

| Improve this Doc View Source

Equals(Object)

Specifies whether this object contains the same members as the specified Object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The Object to test.

Returns
Type Description
System.Boolean

This method returns true if obj is the same type as this object and has the same members as this object.

Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns a hash code for this object.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

An integer value that specifies a hash value for this object.

Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

LineIntersection(LineSegmentPolar)

Calculates a intersection of the specified two lines

Declaration
public Point? LineIntersection(LineSegmentPolar line)
Parameters
Type Name Description
LineSegmentPolar line
Returns
Type Description
System.Nullable<OpenCvSharp.Point>
| Improve this Doc View Source

LineIntersection(LineSegmentPolar, LineSegmentPolar)

Calculates a intersection of the specified two lines

Declaration
public static Point? LineIntersection(LineSegmentPolar line1, LineSegmentPolar line2)
Parameters
Type Name Description
LineSegmentPolar line1
LineSegmentPolar line2
Returns
Type Description
System.Nullable<OpenCvSharp.Point>
| Improve this Doc View Source

ToSegmentPoint(Double)

Convert To LineSegmentPoint

Declaration
public LineSegmentPoint ToSegmentPoint(double scale)
Parameters
Type Name Description
System.Double scale
Returns
Type Description
LineSegmentPoint
| Improve this Doc View Source

ToSegmentPointX(Int32, Int32)

Converts to a line segment with the specified x coordinates at both ends

Declaration
public LineSegmentPoint ToSegmentPointX(int x1, int x2)
Parameters
Type Name Description
System.Int32 x1
System.Int32 x2
Returns
Type Description
LineSegmentPoint
| Improve this Doc View Source

ToSegmentPointY(Int32, Int32)

Converts to a line segment with the specified y coordinates at both ends

Declaration
public LineSegmentPoint ToSegmentPointY(int y1, int y2)
Parameters
Type Name Description
System.Int32 y1
System.Int32 y2
Returns
Type Description
LineSegmentPoint
| Improve this Doc View Source

ToString()

Converts this object to a human readable string.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string that represents this object.

Overrides
System.ValueType.ToString()
| Improve this Doc View Source

XPosOfLine(Int32)

Declaration
public int? XPosOfLine(int y)
Parameters
Type Name Description
System.Int32 y
Returns
Type Description
System.Nullable<System.Int32>
| Improve this Doc View Source

YPosOfLine(Int32)

Declaration
public int? YPosOfLine(int x)
Parameters
Type Name Description
System.Int32 x
Returns
Type Description
System.Nullable<System.Int32>

Operators

| Improve this Doc View Source

Equality(LineSegmentPolar, LineSegmentPolar)

Compares two CvPoint objects. The result specifies whether the members of each object are equal.

Declaration
public static bool operator ==(LineSegmentPolar lhs, LineSegmentPolar rhs)
Parameters
Type Name Description
LineSegmentPolar lhs

A Point to compare.

LineSegmentPolar rhs

A Point to compare.

Returns
Type Description
System.Boolean

This operator returns true if the members of left and right are equal; otherwise, false.

| Improve this Doc View Source

Inequality(LineSegmentPolar, LineSegmentPolar)

Compares two CvPoint objects. The result specifies whether the members of each object are unequal.

Declaration
public static bool operator !=(LineSegmentPolar lhs, LineSegmentPolar rhs)
Parameters
Type Name Description
LineSegmentPolar lhs

A Point to compare.

LineSegmentPolar rhs

A Point to compare.

Returns
Type Description
System.Boolean

This operator returns true if the members of left and right are unequal; otherwise, false.

Implements

IEquatable<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX