interface MaxFFT2DOptions

Options for constructing a MaxFFT2D instance.

Unlike MaxFFTOptions, there is no spectrum option: the real-transform spectrum has exactly one layout -- the unpacked numpy/CCS convention described in MaxFFT2D.forward and sized by MaxFFT2D.spectrumLength -- with no packed alternative to choose for the 2-D case.

Index

Properties

normalize boolean

When true, MaxFFT2D.inverse scales its output by 1 / (rows * cols), so that inverse(forward(x)) reproduces x directly. When false (the default), transforms are unscaled: inverse(forward(x)) equals (rows * cols) * x.

precision "float32" | "float64"

Numeric precision. "float32" instances operate on Float32Array and "float64" instances on Float64Array (plain Arrays work with either). Defaults to "float32".

type "real" | "complex"

Transform type. A "real" transform takes a real-valued image and produces the unpacked half-spectrum described in MaxFFT2D.forward; a "complex" transform takes and produces interleaved complex values (re, im, re, im, ...), row-major. Defaults to "real".