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, waitMethods 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, toVector2DMethods 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:Pnt2dReturns the x-coordinate of this point. -
getY
Description copied from interface:Pnt2dReturns the y-coordinate of this point. -
getQ
Returns this corner's score value.- Returns:
- score value
-
compareTo
- Specified by:
compareToin interfaceComparable<Corner>
-
toString
-
getShape
Description copied from interface:Pnt2dReturns a round dot (Shapeinstance) for drawing this point.- Specified by:
getShapein interfacePnt2d- Specified by:
getShapein interfaceShapeProducer- Parameters:
size- the dot radius- Returns:
- the shape
-