Uses of Interface
imagingbook.common.geometry.basic.Pnt2d
Packages that use Pnt2d
Package
Description
Fourier descriptors for 2D shape representation and matching.
Implementation of David Lowe's SIFT feature detection scheme.
-
Uses of Pnt2d in Ch10_Line_Fitting
Fields in Ch10_Line_Fitting declared as Pnt2d -
Uses of Pnt2d in imagingbook.common.corners
Classes in imagingbook.common.corners that implement Pnt2d -
Uses of Pnt2d in imagingbook.common.geometry.basic
Classes in imagingbook.common.geometry.basic that implement Pnt2dModifier and TypeClassDescriptionstatic classImmutable 2D point implementation withdoublecoordinates.static classImmutable 2D point implementation withintcoordinates.Methods in imagingbook.common.geometry.basic that return Pnt2dModifier and TypeMethodDescriptionstatic Pnt2dCalculates and returns the centroid of the specified point set.static Pnt2dCalculates and returns the centroid of the specified point set.default Pnt2dPnt2d.duplicate()Returns a copy of this point which is of the same type as the original.static Pnt2dPnt2d.from(double[] xy) Creates and returns a new point of typePnt2d.PntDoublewith the specified coordinates.static Pnt2dPnt2d.from(double x, double y) Creates and returns a new point of typePnt2d.PntDoublewith the specified coordinates.static Pnt2dPnt2d.from(int[] xy) Creates and returns a new point of typePnt2d.PntIntwith the specified coordinates.static Pnt2dPnt2d.from(int x, int y) Creates and returns a new point of typePnt2d.PntIntwith the specified coordinates.static Pnt2dstatic Pnt2dstatic Pnt2d[]PntUtils.fromDoubleArray(double[][] da) Converts a given 2D double arraydouble[n][2]to a point arrayPnt2d[n], taking x-coordinates from column 0 and y-coordinates from column 1.LineSegment2d.getP1()Returns the first end point.LineSegment2d.getP2()Returns the second end point.static Pnt2d[]PntUtils.makeDoublePoints(double... xy) Creates and returns an array ofPnt2d.PntDoublepoints from the given sequence ofdoublecoordinate values, interpreted as x/y pairs.static Pnt2d[]PntUtils.makeIntPoints(int... xy) Creates and returns an array ofPnt2d.PntIntpoints from the given sequence ofintcoordinate values, interpreted as x/y pairs.default Pnt2dPnt2d.minus(double dx, double dy) Returns a new point whose coordinates are the difference of this point and the given point (specified as a coordinate pair).default Pnt2dReturns a new point whose coordinates are the difference of this point and the given point.default Pnt2dPnt2d.mult(double s) Returns a new point whose coordinates are multiplied by the specified scalar value.default Pnt2dPnt2d.perp()Returns a point (vector) perpendicular to this point (vector).default Pnt2dPnt2d.plus(double dx, double dy) Returns a new point whose coordinates are the sum of this point and the specifieddoublecoordinates.default Pnt2dReturns a new point whose coordinates are the sum of this point and the given point.Methods in imagingbook.common.geometry.basic with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic Pnt2dCalculates and returns the centroid of the specified point set.default doubleCalculates and returns the 2D pseudo cross product of this point and another point (both points are interpreted as 2D vectors).default doubleReturns the L2 (Euclidean) distance between this point and the given point.default doublePnt2d.distanceSq(Pnt2d other) Returns the squared L2 distance between this point and the given point.default doubleReturns the L1 (Manhattan) distance between this point and the given point.default doubleReturns the L2 (Euclidean) distance between this point and the given point.default doubleCalculates and returns the dot product of this point and another point (both points are interpreted as 2D vectors)default booleanTests if this point matches the given point, i.e., if both coordinate differences are zero (< than the specified tolerance).static Pnt2dstatic Pnt2d.PntDoubleReturns a newPnt2d.PntDoubleinstance with the same coordinates as the given point.static Pnt2d.PntIntReturns a newPnt2d.PntIntfrom a givenPnt2dinstance.default doublePnt2d.getDistance(Pnt2d other) Implementation required byPrimitive2dinterface.doublePrimitive2d.getDistance(Pnt2d p) Returns the minimum absolute distance from the specified point to this curve.default Pnt2dReturns a new point whose coordinates are the difference of this point and the given point.default Pnt2dReturns a new point whose coordinates are the sum of this point and the given point.static double[][]PntUtils.toDoubleArray(Pnt2d[] pts) Converts a given point arrayPnt2d[n]to a 2D double arraydouble[n][2], with x-coordinates in column 0 and y-coordinates in column 1.Method parameters in imagingbook.common.geometry.basic with type arguments of type Pnt2dModifier and TypeMethodDescriptionstatic Pnt2dCalculates and returns the centroid of the specified point set.static intSimply counts the points in the specified point set.Constructors in imagingbook.common.geometry.basic with parameters of type Pnt2dModifierConstructorDescriptionLineSegment2d(Pnt2d p1, Pnt2d p2) Constructor for arbitrary 2D points. -
Uses of Pnt2d in imagingbook.common.geometry.circle
Methods in imagingbook.common.geometry.circle that return Pnt2dModifier and TypeMethodDescriptionGeometricCircle.getCenter()Returns the center point of this circle.Methods in imagingbook.common.geometry.circle with parameters of type Pnt2dModifier and TypeMethodDescriptiondoubleGeometricCircle.getDistance(Pnt2d p) Returns the (unsigned) distance between the specified point and this circle.doubleGeometricCircle.getMeanSquareError(Pnt2d[] points) Calculates and returns the mean of the squared distances between this circle and a set of 2D points.doubleGeometricCircle.getSignedDistance(Pnt2d p) Returns the signed distance between the specified point and this circle. -
Uses of Pnt2d in imagingbook.common.geometry.delaunay
Methods in imagingbook.common.geometry.delaunay that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]Triangle.getPoints()Returns an array of points used by the triangulation in the order of their insertion.static Pnt2d[]DelaunayTriangulation.makeOuterTriangle(double width, double height) Creates a 2D triangle that is sufficiently large to be used as an outer triangle for the Delaunay triangulation of points inside the given bounding rectangle, anchored at (0,0).static Pnt2d[]DelaunayTriangulation.makeOuterTriangle(double xmin, double xmax, double ymin, double ymax) Creates a 2D triangle that is sufficiently large to be used as an outer triangle for the Delaunay triangulation of points inside the given bounding rectangle.static Pnt2d[]DelaunayTriangulation.makeOuterTriangle(Collection<? extends Pnt2d> points) Creates a 2D triangle that is sufficiently large to be used as an outer triangle for the Delaunay triangulation of the given point set.Methods in imagingbook.common.geometry.delaunay that return types with arguments of type Pnt2dModifier and TypeMethodDescriptionDelaunayTriangulation.getPoints()Returns a list of 2D vertices contained in this triangulation.Method parameters in imagingbook.common.geometry.delaunay with type arguments of type Pnt2dModifier and TypeMethodDescriptionstatic DelaunayTriangulationDelaunayTriangulation.from(Collection<? extends Pnt2d> points) Performs Delaunay triangulation on the specified points.static DelaunayTriangulationDelaunayTriangulation.from(Collection<? extends Pnt2d> points, boolean shuffle) Performs Delaunay triangulation on the specified points with (optional) random insertion order.static Pnt2d[]DelaunayTriangulation.makeOuterTriangle(Collection<? extends Pnt2d> points) Creates a 2D triangle that is sufficiently large to be used as an outer triangle for the Delaunay triangulation of the given point set. -
Uses of Pnt2d in imagingbook.common.geometry.delaunay.guibas
Fields in imagingbook.common.geometry.delaunay.guibas declared as Pnt2dModifier and TypeFieldDescriptionprotected final Pnt2dEdge2D.aprotected final Pnt2dTriangle2D.aprotected final Pnt2dEdge2D.bprotected final Pnt2dTriangle2D.bprotected final Pnt2dTriangle2D.cMethods in imagingbook.common.geometry.delaunay.guibas that return Pnt2dModifier and TypeMethodDescriptionTriangle2D.getOppositeVertex(Edge2D edge) Returns the vertex of this triangle opposite to the specified edge.Pnt2d[]Triangle2D.getPoints()Methods in imagingbook.common.geometry.delaunay.guibas that return types with arguments of type Pnt2dMethods in imagingbook.common.geometry.delaunay.guibas with parameters of type Pnt2dModifier and TypeMethodDescriptionbooleanTriangle2D.containsPoint(Pnt2d point) Tests if a 2D point lies inside this 2D triangle.protected Edge2D.DistanceEdge2D.distanceFromPoint(Pnt2d point) Creates and returns a newEdge2D.Distanceobject, representing the minimum distance between this edge and the specified point.TriangulationGuibas.findContainingTriangle(Pnt2d point) Returns the triangle that contains the specified point or null if no such triangle exists.Triangle2D.findMinEdgeDistance(Pnt2d point) Calculates the minimum distance from the specified point to this triangle.TriangulationGuibas.findNearestEdge(Pnt2d point) Returns the triangle edge nearest to the specified point.booleanChecks if the given vertex is amongst the triangle's vertices.protected booleanTriangle2D.isPointInCircumCircle(Pnt2d point) Tests if a given point lies in the circumcircle of this triangle.voidTriangulationGuibas.removeTrianglesUsing(Pnt2d point) Removes all triangles that contain the specified corner point.Constructors in imagingbook.common.geometry.delaunay.guibas with parameters of type Pnt2dModifierConstructorDescriptionprotectedprotectedConstructor of the 2D edge class used to create a new edge instance from two 2D vectors describing the edge's vertices.Triangle2D(Pnt2d[] points) Triangle2D(Pnt2d a, Pnt2d b, Pnt2d c) Constructor of the 2D triangle class used to create a new triangle instance from three 2D vectors describing the triangle's vertices.Constructor parameters in imagingbook.common.geometry.delaunay.guibas with type arguments of type Pnt2dModifierConstructorDescriptionTriangulationGuibas(Collection<? extends Pnt2d> points) Constructor.TriangulationGuibas(Collection<? extends Pnt2d> points, boolean shuffle) Constructor. -
Uses of Pnt2d in imagingbook.common.geometry.ellipse
Methods in imagingbook.common.geometry.ellipse that return Pnt2dModifier and TypeMethodDescriptionGeometricEllipse.getCenter()GeometricEllipse.getClosestPoint(Pnt2d pnt) Returns the ellipse point closest to the specified point.GeometricEllipse.getLeftAxisPoint()Deprecated.Methods in imagingbook.common.geometry.ellipse with parameters of type Pnt2dModifier and TypeMethodDescriptiondoubleAlgebraicEllipse.getAlgebraicDistance(Pnt2d p) doubleGeometricEllipse.getAlgebraicDistance(Pnt2d p) GeometricEllipse.getClosestPoint(Pnt2d pnt) Returns the ellipse point closest to the specified point.doubleGeometricEllipse.getDistance(Pnt2d p) Returns the closest (geometric) distance of the specified point to this ellipse.doubleAlgebraicEllipse.getGoncharovaDistance(Pnt2d p) doubleGeometricEllipse.getMeanSquareError(Pnt2d[] points) Returns the mean squared error between this ellipse and a set of 2D points.doubleAlgebraicEllipse.getSampsonDistance(Pnt2d p) -
Uses of Pnt2d in imagingbook.common.geometry.ellipse.project
Methods in imagingbook.common.geometry.ellipse.project that return Pnt2dModifier and TypeMethodDescriptionProjects the specified point onto the associated ellipse.Methods in imagingbook.common.geometry.ellipse.project with parameters of type Pnt2d -
Uses of Pnt2d in imagingbook.common.geometry.fd
Methods in imagingbook.common.geometry.fd that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]PolygonSampler.samplePolygon(Pnt2d[] V, int M) Samples the closed polygon path specified by V at M equidistant positions.Pnt2d[]PolygonSampler.samplePolygon(Pnt2d[] V, int M, double startFrac) For testing only: allows to choose an arbitrary start point by setting 'startFrac' in [0,1].Methods in imagingbook.common.geometry.fd with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic FourierDescriptorCreates aFourierDescriptordirectly from the vertices of a closed polygon (without interpolation).static FourierDescriptorCreates a new Fourier descriptor from a uniformly sampled polygon V with the maximum number of Fourier coefficient pairs.static FourierDescriptorCreates a new Fourier descriptor from a uniformly sampled polygon V with Mp coefficient pairs.Pnt2d[]PolygonSampler.samplePolygon(Pnt2d[] V, int M) Samples the closed polygon path specified by V at M equidistant positions.Pnt2d[]PolygonSampler.samplePolygon(Pnt2d[] V, int M, double startFrac) For testing only: allows to choose an arbitrary start point by setting 'startFrac' in [0,1].static Complex[]FourierDescriptor.toComplexArray(Pnt2d[] points) -
Uses of Pnt2d in imagingbook.common.geometry.fitting.circle.algebraic
Methods in imagingbook.common.geometry.fitting.circle.algebraic with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic CircleFitAlgebraicCircleFitAlgebraic.getFit(CircleFitAlgebraic.FitType type, Pnt2d[] points) Creates and returns a new circle fit instance of the specified type for the given sample points.Constructors in imagingbook.common.geometry.fitting.circle.algebraic with parameters of type Pnt2dModifierConstructorDescriptionCircleFit3Points(Pnt2d[] pts) Constructor.CircleFit3Points(Pnt2d p0, Pnt2d p1, Pnt2d p2) Constructor.CircleFitHyperSimple(Pnt2d[] points) Constructor.CircleFitHyperSimple(Pnt2d[] points, Pnt2d xref) Constructor.CircleFitHyperStable(Pnt2d[] points) Constructor.CircleFitHyperStable(Pnt2d[] points, Pnt2d xref) Constructor.CircleFitKasaA(Pnt2d[] points) Constructor.CircleFitKasaA(Pnt2d[] points, Pnt2d xref) Constructor.CircleFitKasaB(Pnt2d[] points) Constructor.CircleFitKasaB(Pnt2d[] points, Pnt2d xref) Constructor.CircleFitKasaC(Pnt2d[] points) Constructor.CircleFitKasaC(Pnt2d[] points, Pnt2d xref) Constructor.CircleFitPratt(Pnt2d[] points) Constructor.CircleFitPratt(Pnt2d[] points, Pnt2d xref) Constructor.CircleFitTaubin(Pnt2d[] points) Constructor.CircleFitTaubin(Pnt2d[] points, Pnt2d xref) Constructor. -
Uses of Pnt2d in imagingbook.common.geometry.fitting.circle.geometric
Methods in imagingbook.common.geometry.fitting.circle.geometric with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic CircleFitGeometricCircleFitGeometric.getFit(CircleFitGeometric.FitType type, Pnt2d[] points, GeometricCircle initCircle) Constructors in imagingbook.common.geometry.fitting.circle.geometric with parameters of type Pnt2dModifierConstructorDescriptionCircleFitGeometricCoord(Pnt2d[] pts, GeometricCircle initCircle) CircleFitGeometricCoord(Pnt2d[] pts, GeometricCircle initCircle, int maxEvaluations, int maxIterations, double tolerance) CircleFitGeometricDist(Pnt2d[] pts, GeometricCircle initCircle) CircleFitGeometricDist(Pnt2d[] pts, GeometricCircle initCircle, int maxEvaluations, int maxIterations, double tolerance) -
Uses of Pnt2d in imagingbook.common.geometry.fitting.circle.utils
Methods in imagingbook.common.geometry.fitting.circle.utils that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]CircleSampler.getPoints(int n, double startAngle, double endAngle, double sigma) Creates and returns an array of 2D points sampled on the circle associated with thisCircleSampler. -
Uses of Pnt2d in imagingbook.common.geometry.fitting.ellipse.algebraic
Methods in imagingbook.common.geometry.fitting.ellipse.algebraic with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic EllipseFitAlgebraicEllipseFitAlgebraic.getFit(EllipseFitAlgebraic.FitType type, Pnt2d[] points, Pnt2d xref) Constructors in imagingbook.common.geometry.fitting.ellipse.algebraic with parameters of type Pnt2dModifierConstructorDescriptionEllipseFit5Points(Pnt2d[] points) EllipseFitFitzgibbonNaive(Pnt2d[] points) EllipseFitFitzgibbonOriginal(Pnt2d[] points) EllipseFitFitzgibbonStable(Pnt2d[] points) EllipseFitFitzgibbonStable(Pnt2d[] points, Pnt2d xref) EllipseFitTaubin1(Pnt2d[] points) EllipseFitTaubin1(Pnt2d[] points, Pnt2d xref) EllipseFitTaubin2(Pnt2d[] points) EllipseFitTaubin2(Pnt2d[] points, Pnt2d xref) -
Uses of Pnt2d in imagingbook.common.geometry.fitting.ellipse.geometric
Methods in imagingbook.common.geometry.fitting.ellipse.geometric with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic EllipseFitGeometricEllipseFitGeometric.getFit(EllipseFitGeometric.FitType type, Pnt2d[] points, GeometricEllipse initEllipse) Constructors in imagingbook.common.geometry.fitting.ellipse.geometric with parameters of type Pnt2dModifierConstructorDescriptionEllipseGeometricFitCoord(Pnt2d[] pts, GeometricEllipse initEllipse) EllipseGeometricFitCoord(Pnt2d[] pts, GeometricEllipse initEllipse, int maxEvaluations, int maxIterations, double tolerance, boolean syntheticDeriv) EllipseGeometricFitDist(Pnt2d[] pts, GeometricEllipse initEllipse) EllipseGeometricFitDist(Pnt2d[] pts, GeometricEllipse initEllipse, int maxEvaluations, int maxIterations, double tolerance, boolean syntheticDeriv) -
Uses of Pnt2d in imagingbook.common.geometry.fitting.ellipse.utils
Methods in imagingbook.common.geometry.fitting.ellipse.utils that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]EllipseSampler.getPoints(int n, double startAngle, double arcAngle, double sigma) Creates and returns an array of 2D points sampled on the ellipse associated with thisEllipseSampler. -
Uses of Pnt2d in imagingbook.common.geometry.fitting.line
Methods in imagingbook.common.geometry.fitting.line that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]IncrementalLineFit.getPoints()Returns the current point sequence of this fit as an array.IncrementalLineFit.peekFirst()Returns (but does not remove) the point positioned at the front of the point sequence.IncrementalLineFit.peekLast()Returns (but does not remove) the point positioned at the end of the point sequence.IncrementalLineFit.removeFirst()Retrieves and removes the first point from the front of the point sequence.IncrementalLineFit.removeLast()Retrieves and removes the last point from the end of the point sequence.Methods in imagingbook.common.geometry.fitting.line with parameters of type Pnt2dModifier and TypeMethodDescriptionbooleanAdds a new sample points to the end of the point sequence (same asIncrementalLineFit.addLast(Pnt2d)).voidAdds a new sample points to the front of the point sequence.voidAdds a new sample points to the end of the point sequence (same asIncrementalLineFit.addLast(Pnt2d)).default doubleLineFit.getSquaredOrthogonalError(Pnt2d[] points) Calculates and returns the sum of the squared orthogonal distances of the specified points for this line fit.doubleLinearRegressionFit.getSquaredRegressionError(Pnt2d[] points) Calculates and returns the sum of the squared differences between the y-coordinates of the data points (xi, yi) and the associated y-value of the regression line (y = k x + d).Constructors in imagingbook.common.geometry.fitting.line with parameters of type Pnt2dModifierConstructorDescriptionIncrementalLineFit(Pnt2d[] initPnts) Constructor accepting a sequence of initial points.LinearRegressionFit(Pnt2d[] points) Constructor, performs a linear regression fit to the specified points.OrthogonalLineFitEigen(Pnt2d[] points) Constructor, performs a orthogonal regression fit to the specified points.OrthogonalLineFitHomogeneous(Pnt2d[] points) Constructor, performs a orthogonal regression fit to the specified points.OrthogonalLineFitSvd(Pnt2d[] points) Constructor, performs a linear regression fit to the specified points. -
Uses of Pnt2d in imagingbook.common.geometry.fitting.line.utils
Methods in imagingbook.common.geometry.fitting.line.utils that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]LineSampler.getPoints(int n, double sigma) Returns an array of randomly sampled points.Constructors in imagingbook.common.geometry.fitting.line.utils with parameters of type Pnt2dModifierConstructorDescriptionLineSampler(Pnt2d p1, Pnt2d p2) Constructor (with no specific seed).LineSampler(Pnt2d p1, Pnt2d p2, long seed) Constructor (with specific random seed). -
Uses of Pnt2d in imagingbook.common.geometry.fitting.points
Methods in imagingbook.common.geometry.fitting.points with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic doubleLinearFit2d.getSquaredError(Pnt2d[] P, Pnt2d[] Q, double[][] A) Calculates and returns the sum of squared fitting errors for two associated point sequences (P, Q) under a linear transformation specified by a 3x3 matrix A.Constructors in imagingbook.common.geometry.fitting.points with parameters of type Pnt2dModifierConstructorDescriptionAffineFit2d(Pnt2d[] P, Pnt2d[] Q) Constructor.ProcrustesFit2d(Pnt2d[] P, Pnt2d[] Q) Convenience constructor, with parametersallowTranslation,allowScalingandforceRotationset totrue.ProcrustesFit2d(Pnt2d[] P, Pnt2d[] Q, boolean allowTranslation, boolean allowScaling, boolean forceRotation) Full constructor.ProjectiveFit2d(Pnt2d[] P, Pnt2d[] Q) Constructor. -
Uses of Pnt2d in imagingbook.common.geometry.hulls
Methods in imagingbook.common.geometry.hulls that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]AxisAlignedBoundingBox.getVertices()Returns an array holding the 4 corner points of the bounding box.Pnt2d[]ConvexHull.getVertices()Returns a sequence of 2D points on the convex hull (in counter-clockwise order).Methods in imagingbook.common.geometry.hulls with parameters of type Pnt2dModifier and TypeMethodDescriptionbooleanChecks if this bounding box contains the specified point using the default tolerance.booleanChecks if this bounding box contains the specified point using the specified tolerance.booleanbooleanChecks if this convex hull contains the specified point.Constructors in imagingbook.common.geometry.hulls with parameters of type Pnt2dModifierConstructorDescriptionAxisAlignedBoundingBox(Pnt2d[] points) Constructor, creates aAxisAlignedBoundingBoxinstance from an array ofPnt2dpoints.ConvexHull(Pnt2d[] points) Constructor, creates aAxisAlignedBoundingBoxinstance from an array ofPnt2dpoints.Constructor parameters in imagingbook.common.geometry.hulls with type arguments of type Pnt2dModifierConstructorDescriptionAxisAlignedBoundingBox(Iterable<Pnt2d> points) ConvexHull(Iterable<Pnt2d> points) -
Uses of Pnt2d in imagingbook.common.geometry.line
Methods in imagingbook.common.geometry.line that return Pnt2dModifier and TypeMethodDescriptionAlgebraicLine.getClosestLinePoint(Pnt2d p) Returns the point on the line that is closest to the specified 2D point.AlgebraicLine.intersect(AlgebraicLine l2) Finds the intersection point between this line and anotherAlgebraicLine.Methods in imagingbook.common.geometry.line with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic AlgebraicLineCreates a newAlgebraicLineinstance from two given points.static HessianLineAlgebraicLine.getClosestLinePoint(Pnt2d p) Returns the point on the line that is closest to the specified 2D point.doubleAlgebraicLine.getDistance(Pnt2d p) Returns the orthogonal (unsigned) distance between this line and the point p.doubleAlgebraicLine.getSignedDistance(Pnt2d p) Returns the orthogonal (signed) distance between this line and the specified point.doubleAlgebraicLine.getSquareError(Pnt2d[] points) Calculates the sum of squared distances between this line and a given array of 2D points. -
Uses of Pnt2d in imagingbook.common.geometry.mappings
Methods in imagingbook.common.geometry.mappings that return Pnt2dModifier and TypeMethodDescriptionApplies this mapping to a single 2D point.default Pnt2d[]Applies this mapping to an array of 2D points and returns a new array of points.Methods in imagingbook.common.geometry.mappings with parameters of type Pnt2dModifier and TypeMethodDescriptionApplies this mapping to a single 2D point.default Pnt2d[]Applies this mapping to an array of 2D points and returns a new array of points.double[][]Jacobian.getJacobian(Pnt2d pnt) Returns the Jacobian matrix for this mapping, evaluated at the given 2D point. -
Uses of Pnt2d in imagingbook.common.geometry.mappings.linear
Methods in imagingbook.common.geometry.mappings.linear that return Pnt2dModifier and TypeMethodDescriptionMethods in imagingbook.common.geometry.mappings.linear with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic AffineMapping2DAffineMapping2D.fromPoints(Pnt2d[] P, Pnt2d[] Q) Creates an affine 2D mapping from two sequences of corresponding points.static AffineMapping2DCreates an affine mapping from 3 pairs of corresponding 2D points (p0, p1, p2) → (q0, q1, q2).static ProjectiveMapping2DProjectiveMapping2D.fromPoints(Pnt2d[] P, Pnt2d[] Q) Creates a projective 2D mapping from two sequences of corresponding points.static Translation2DTranslation2D.fromPoints(Pnt2d p, Pnt2d q) Creates a new translation that maps between the first point to the second point specified.double[][]AffineMapping2D.getJacobian(Pnt2d xy) double[][]ProjectiveMapping2D.getJacobian(Pnt2d xy) double[][]Translation2D.getJacobian(Pnt2d xy) -
Uses of Pnt2d in imagingbook.common.geometry.mappings.nonlinear
Methods in imagingbook.common.geometry.mappings.nonlinear that return Pnt2dModifier and TypeMethodDescriptionMethods in imagingbook.common.geometry.mappings.nonlinear with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic BilinearMapping2DBilinearMapping2D.fromPoints(Pnt2d[] P, Pnt2d[] Q) Calculates and returns the bilinear mapping M between two point sets P, Q, with 4 points each, such that q_i = M(p_i). -
Uses of Pnt2d in imagingbook.common.geometry.moments
Method parameters in imagingbook.common.geometry.moments with type arguments of type Pnt2dModifier and TypeMethodDescriptionstatic doubleMoments2D.centralMoment(Iterable<Pnt2d> points, int p, int q) Calculates and returns the central moment of order (p,q) for the specified set of 2D points.static doubleMoments2D.normalizedCentralMoment(Iterable<Pnt2d> points, int p, int q) Calculates and returns the normalized central moment of order (p,q) for the specified set of 2D points.static doubleMoments2D.ordinaryMoment(Iterable<Pnt2d> points, int p, int q) Calculates and returns the ordinary moment of order (p,q) for the specified set of 2D points.Constructor parameters in imagingbook.common.geometry.moments with type arguments of type Pnt2d -
Uses of Pnt2d in imagingbook.common.geometry.shape
Methods in imagingbook.common.geometry.shape that return Pnt2dModifier and TypeMethodDescriptionstatic Pnt2d[]ShapeProducer.getShapePoints(Shape shape) ShapePointIterator.next() -
Uses of Pnt2d in imagingbook.common.hough
Methods in imagingbook.common.hough with parameters of type Pnt2dConstructors in imagingbook.common.hough with parameters of type Pnt2dModifierConstructorDescriptionHoughTransformLines(Pnt2d[] points, int width, int height, HoughTransformLines.Parameters params) Constructor, creates a new Hough transform from a sequence of 2D points. -
Uses of Pnt2d in imagingbook.common.ij
Methods in imagingbook.common.ij that return Pnt2dModifier and TypeMethodDescriptionstatic Pnt2d[]IjUtils.collectNonzeroPoints(ImageProcessor ip) Collects all image coordinates with non-zero pixel values into an array of 2D points (Pnt2d).static Pnt2d[]RoiUtils.getOutlinePointsFloat(Roi roi) Retrieves the outline of the specified ROI as an array ofPnt2dpoints withdoublecoordinates.static Pnt2d[]RoiUtils.getOutlinePointsInt(Roi roi) Retrieves the outline of the specified ROI as an array ofPnt2dpoints withintcoordinates.static Pnt2d[]RoiUtils.getPoints(FloatPolygon poly) Extracts the points of an ImageJFloatPolygon.static Pnt2d[]RoiUtils.getPoints(FloatPolygon poly, double offset) Extracts the points of an ImageJFloatPolygon.Methods in imagingbook.common.ij with parameters of type Pnt2dModifier and TypeMethodDescriptionstatic voidIjUtils.drawPoints(ImageProcessor ip, Pnt2d[] points, int value) Draws the given set of points onto the specified image (by setting the corresponding pixels).static PointRoiRoiUtils.toPointRoi(Pnt2d[] points) -
Uses of Pnt2d in imagingbook.common.image
Classes in imagingbook.common.image that implement Pnt2dModifier and TypeClassDescriptionstatic classA 2D point with integer coordinates and a score value (LocalMinMaxFinder.ExtremalPoint.q) attached. -
Uses of Pnt2d in imagingbook.common.image.matching.lucaskanade
Methods in imagingbook.common.image.matching.lucaskanade that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]LucasKanadeMatcher.getReferencePoints()Returns the corner points of the bounding rectangle of R, centered at the origin.Methods in imagingbook.common.image.matching.lucaskanade with parameters of type Pnt2dModifier and TypeMethodDescriptionvoidImageExtractor.extractImage(ImageProcessor R, Pnt2d[] sourcePnts) Extracts a warped sub-image of the associated target image I, defined by a sequence of 3 or 4 points.LucasKanadeMatcher.getReferenceMappingTo(Pnt2d[] Q) Calculates the projective transformation that maps the reference image R (centered at the origin) to some other quad Q. -
Uses of Pnt2d in imagingbook.common.mser.components
Classes in imagingbook.common.mser.components that implement Pnt2d -
Uses of Pnt2d in imagingbook.common.ransac
Methods in imagingbook.common.ransac that return Pnt2dModifier and TypeMethodDescriptionPnt2d[]RansacResult.getDraw()Returns the randomly drawn points that lead to this result.Pnt2d[]RansacResult.getInliers()Returns the set of inliers (points) associated with this result.Methods in imagingbook.common.ransac with parameters of type Pnt2dModifier and TypeMethodDescriptionPerforms iterative RANSAC steps on the supplied point set until either no more primitive was detected or the maximum number of primitives was reached.RansacDetector.detectNext(Pnt2d[] points) Performs a single RANSAC step on the supplied point set.Constructors in imagingbook.common.ransac with parameters of type Pnt2dModifierConstructorDescriptionRansacResult(Pnt2d[] draw, T primitiveInit, T primitiveFinal, double score, Pnt2d[] inliers) -
Uses of Pnt2d in imagingbook.common.regions
Methods in imagingbook.common.regions that return Pnt2dModifier and TypeMethodDescriptionBinaryRegion.getCenter()Returns the center of this region as a 2D point.Pnt2d[]Contour.getPointArray()Get the contour points as an array.Methods in imagingbook.common.regions that return types with arguments of type Pnt2dModifier and TypeMethodDescriptionContour.getPointList()Get the list of contour points.Contour.iterator()SegmentationBackedRegion.iterator()Methods in imagingbook.common.regions with parameters of type Pnt2d -
Uses of Pnt2d in imagingbook.common.sift
Classes in imagingbook.common.sift that implement Pnt2d