Skip to content

Struct corr2d_state_t

ClassList > corr2d_state_t

2-D FFT correlator state. More...

  • #include <corr2d_core.h>

Public Attributes

Type Name
float complex * accum
size_t count
size_t dwell
fft2d_state_t * fwd
fft2d_state_t * inv
size_t n
size_t n_out
size_t nx
size_t nx_out
size_t ny
size_t ny_out
float complex * ref_spec
float complex * work_fft
float complex * work_pad
float complex * zcol
float complex * zcolout
float complex * ztmp

Detailed Description

Allocate with corr2d_create(); never stack-allocate. All heap buffers are ny * nx complex floats stored in row-major order.

Public Attributes Documentation

variable accum

float complex* corr2d_state_t::accum;

Coherent product-spectrum accumulator.


variable count

size_t corr2d_state_t::count;

Frames accumulated (0 … dwell-1).


variable dwell

size_t corr2d_state_t::dwell;

Integration depth.


variable fwd

fft2d_state_t* corr2d_state_t::fwd;

Forward 2-D plan (sign = -1) at (ny, nx).


variable inv

fft2d_state_t* corr2d_state_t::inv;

Inverse 2-D plan (sign = +1) at (ny_out,…).


variable n

size_t corr2d_state_t::n;

ny * nx — total element count.


variable n_out

size_t corr2d_state_t::n_out;

ny_out * nx_out — output element count.


variable nx

size_t corr2d_state_t::nx;

Column count.


variable nx_out

size_t corr2d_state_t::nx_out;

Output columns (== nx unless decoupled).


variable ny

size_t corr2d_state_t::ny;

Row count.


variable ny_out

size_t corr2d_state_t::ny_out;

Output rows (== ny unless decoupled).


variable ref_spec

float complex* corr2d_state_t::ref_spec;

conj(FFT2(ref)), pre-computed. (ny, nx)


variable work_fft

float complex* corr2d_state_t::work_fft;

Scratch: FFT2(in) · ref_spec (product).


variable work_pad

float complex* corr2d_state_t::work_pad;

Zero-padded product, (ny_out, nx_out).


variable zcol

float complex* corr2d_state_t::zcol;

Column gather scratch, (ny).


variable zcolout

float complex* corr2d_state_t::zcolout;

Column-padded scratch, (ny_out).


variable ztmp

float complex* corr2d_state_t::ztmp;

Row-padded intermediate, (ny, nx_out).



The documentation for this class was generated from the following file native/inc/corr2d/corr2d_core.h