Struct LineSegmentPolar
Polar line segment retrieved from cvHoughLines2
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public struct LineSegmentPolar
Constructors
| Improve this Doc View SourceLineSegmentPolar(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 SourceRho
Length of the line
Declaration
public float Rho
Field Value
Type | Description |
---|---|
System.Single |
Theta
Angle of the line (radian)
Declaration
public float Theta
Field Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceEquals(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. |
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
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
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> |
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> |
ToSegmentPoint(Double)
Convert To LineSegmentPoint
Declaration
public LineSegmentPoint ToSegmentPoint(double scale)
Parameters
Type | Name | Description |
---|---|---|
System.Double | scale |
Returns
Type | Description |
---|---|
LineSegmentPoint |
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 |
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 |
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
XPosOfLine(Int32)
Declaration
public int? XPosOfLine(int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | y |
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> |
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 SourceEquality(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. |
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. |