Uses of Class
imagingbook.common.math.Complex
Packages that use Complex
Package
Description
Fourier descriptors for 2D shape representation and matching.
-
Uses of Complex in imagingbook.common.geometry.fd
Methods in imagingbook.common.geometry.fd that return ComplexModifier and TypeMethodDescriptionFourierDescriptor.getCoefficient(int m) Returns the complex-valued DFT coefficient with the specified frequency index m.Complex[]FourierDescriptor.getCoefficientPair(int m) Returns the Fourier coefficient pair (G[-m], G[+m]) as aComplexvalued array.Complex[]FourierDescriptor.getCoefficients()Returns the array G = {G[0], ..., G[M-1]} of complex-valued DFT coefficients.Complex[]FourierDescriptor.getShapeFull(int n) Reconstructs the associated 2D shape (closed contour) with N sample points, using all of the Fourier descriptor's coefficient pairs.Complex[]FourierDescriptor.getShapePair(int n, int m) Reconstructs the associated 2D shape (closed contour) with N sample points, using only a single coefficient pairs.Complex[]FourierDescriptor.getShapePartial(int n, int p) Reconstructs the associated 2D shape (closed contour) with N sample points, using only a subset of the Fourier descriptor's coefficient pairs.FourierDescriptor.getShapePointFull(double t) Reconstructs a single space point of the associated shape (closed contour) at the fractional path position t ∈ [0,1], using all of the Fourier descriptor's coefficient pairs.FourierDescriptor.getShapePointPair(int m, double t) Returns the spatial point reconstructed from a single DFT coefficient pair G[-m], G[+m] at position t ∈ [0,1].FourierDescriptor.getShapePointPartial(int p, double t) Reconstructs a single space point of the associated shape (closed contour) at the fractional path position t ∈ [0,1], using only a subset of the Fourier descriptor's coefficient pairs.static Complex[]FourierDescriptor.toComplexArray(Pnt2d[] points) Methods in imagingbook.common.geometry.fd with parameters of type ComplexModifier and TypeMethodDescriptionstatic 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.static Path2DConstructors in imagingbook.common.geometry.fd with parameters of type ComplexModifierConstructorDescriptionFourierDescriptor(Complex[] G) Constructor using the default scale (1.0).FourierDescriptor(Complex[] G, double scale) Constructor using a specific scale. -
Uses of Complex in imagingbook.common.geometry.moments
Methods in imagingbook.common.geometry.moments that return ComplexModifier and TypeMethodDescriptionFlusserMoments.getComplexMoment(int p, int q) Returns the scale-normalized complex moment of order (p,q) for the 2D point set associated with thisFlusserMomentsinstance.FlusserMoments.getScaleNormalizedMoment(int p, int q) Returns the scale-normalized complex moment of order (p,q) for the specified set of 2D points. -
Uses of Complex in imagingbook.common.math
Fields in imagingbook.common.math declared as ComplexModifier and TypeFieldDescriptionstatic final ComplexComplex.IConstant - imaginary unit value (z = 0 + i 1).static final ComplexComplex.ONEConstant - real unit value (z = 1 + i 0).static final ComplexComplex.ZEROConstant - complex zero value (z = 0 + i 0).Methods in imagingbook.common.math that return ComplexModifier and TypeMethodDescriptionAdds a complex quantity to this complex number and returns a new complex number.Complex.conjugate()Returns the conjugatez*of this complex number, i.e, ifz = a + i bthenz* = a - i b.Complex.multiply(double s) Multiplies this complex number with the scalar factorsand returns a new complex number.Multiplies this complex number with another complex quantity and returns a new complex number.Complex.pow(int k) Returns of value of this complex number (z) raised to the powerk(integer).Complex.rotate(double phi) Rotates this complex number by anglephiand returns the resulting complex number.Methods in imagingbook.common.math with parameters of type ComplexModifier and TypeMethodDescriptionAdds a complex quantity to this complex number and returns a new complex number.booleanMultiplies this complex number with another complex quantity and returns a new complex number.Constructors in imagingbook.common.math with parameters of type Complex