Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Const makeFourierDescriptorFromPolygon

  • makeFourierDescriptorFromPolygon(contour: Point[], harmonics?: number): Tensor<Rank>
  • Compute the Fourier Descriptor of a polygon. Implements Kuhl and Giardina method of computing the coefficients for a specified number of harmonics. See the original paper for more detail: Kuhl, FP and Giardina, CR (1982). Elliptic Fourier features of a closed contour. Computer graphics and image processing, 18(3), 236-258. Or see W. Burger Digital Image Processing An Algorithmic Introduction - p. 682

    Parameters

    • contour: Point[]

      Array with x and y coordinates of contour line

    • harmonics: number = 40

      The number of harmonics to compute for the given shape

    Returns Tensor<Rank>

    complex valued Fourier descriptors

Const normalizeFourierDescriptor

  • normalizeFourierDescriptor(descriptor: Tensor<Rank>): Tensor<Rank>

Generated using TypeDoc