java.lang.Object
imagingbook.common.corners.Corner
- All Implemented Interfaces:
Pnt2d
,Primitive2d
,ShapeProducer
,Comparable<Corner>
This class represents a 2D corner. A corner is essentially a
Pnt2d
plus a scalar quantity q
for the
corner strength.- Version:
- 2022/09/05
-
Nested Class Summary
Nested classes/interfaces inherited from interface imagingbook.common.geometry.basic.Pnt2d
Pnt2d.PntDouble, Pnt2d.PntInt
-
Field Summary
Fields inherited from interface imagingbook.common.geometry.basic.Pnt2d
DefaultDotRadius, TOLERANCE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface imagingbook.common.geometry.basic.Pnt2d
cross, distance, distanceSq, distL1, distL2, dot, duplicate, equals, getDistance, getXint, getYint, minus, minus, mult, perp, plus, plus, toAwtPoint2D, toDoubleArray, toRealVector, toVector2D
Methods inherited from interface imagingbook.common.geometry.shape.ShapeProducer
getShape, getShapes, getShapes
-
Constructor Details
-
Corner
Constructor.- Parameters:
x
- horizontal positiony
- vertical positionq
- corner score value
-
-
Method Details
-
getX
Description copied from interface:Pnt2d
Returns the x-coordinate of this point. -
getY
Description copied from interface:Pnt2d
Returns the y-coordinate of this point. -
getQ
Returns this corner's score value.- Returns:
- score value
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Corner>
-
toString
-
getShape
Description copied from interface:Pnt2d
Returns a round dot (Shape
instance) for drawing this point.- Specified by:
getShape
in interfacePnt2d
- Specified by:
getShape
in interfaceShapeProducer
- Parameters:
size
- the dot radius- Returns:
- the shape
-