Skip to content

Struct detector2d_state_t

ClassList > detector2d_state_t

2-D signal detector state. More...

  • #include <detector2d_core.h>

Public Attributes

Type Name
int _last_corr_valid
corr2d_state_t * corr
float * mag_buf
size_t n
float noise_est
size_t noise_hi
size_t noise_lo
det_noise_mode_t noise_mode
float * noise_scratch
size_t nx
size_t ny
float complex * out_buf
size_t peak_col
float peak_mag
size_t peak_row
dp_f32_t * ring
size_t ring_cap
float test_stat
float threshold

Detailed Description

Allocate with detector2d_create(); never stack-allocate.

Public Attributes Documentation

variable _last_corr_valid

int detector2d_state_t::_last_corr_valid;

1 after the first dump, else 0.


variable corr

corr2d_state_t* detector2d_state_t::corr;

2-D FFT correlator + int-dump engine.


variable mag_buf

float* detector2d_state_t::mag_buf;

|out_buf[k]|, ny*nx floats.


variable n

size_t detector2d_state_t::n;

ny * nx — total frame length.


variable noise_est

float detector2d_state_t::noise_est;

variable noise_hi

size_t detector2d_state_t::noise_hi;

Noise bin range upper bound (inclusive).


variable noise_lo

size_t detector2d_state_t::noise_lo;

Noise bin range lower bound (inclusive).


variable noise_mode

det_noise_mode_t detector2d_state_t::noise_mode;

variable noise_scratch

float* detector2d_state_t::noise_scratch;

Scratch for median sort.


variable nx

size_t detector2d_state_t::nx;

Number of columns.


variable ny

size_t detector2d_state_t::ny;

Number of rows.


variable out_buf

float complex* detector2d_state_t::out_buf;

Corr2D output (ny*nx complex samples).


variable peak_col

size_t detector2d_state_t::peak_col;

variable peak_mag

float detector2d_state_t::peak_mag;

variable peak_row

size_t detector2d_state_t::peak_row;

variable ring

dp_f32_t* detector2d_state_t::ring;

Double-mapped ring buffer (auto-sized).


variable ring_cap

size_t detector2d_state_t::ring_cap;

Ring buffer capacity in complex samples.


variable test_stat

float detector2d_state_t::test_stat;

variable threshold

float detector2d_state_t::threshold;

0 = always fire; >0 = gate on test_stat.



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