File det_private.h¶
FileList > detector > det_private.h
Go to the source code of this file
Shared internals for detector_core.c and detector2d_core.c. More...
#include <stdlib.h>#include <string.h>
Public Static Functions¶
| Type | Name |
|---|---|
| int | _cmp_f32_asc (const void * a, const void * b) |
| float | _noise_estimate (const float * mag, size_t lo, size_t hi, float * scratch, det_noise_mode_t mode) Aggregate |corr| over bins [lo, hi] using the selected mode. |
| dp_f32_t * | _ring_create (size_t cap_min) |
| size_t | next_pow2 (size_t n) |
Detailed Description¶
Not part of the public API. Include after the module's own header so that det_noise_mode_t is already defined via the DET_NOISE_MODE_T_DEFINED guard in detector_core.h / detector2d_core.h.
Public Static Functions Documentation¶
function _cmp_f32_asc¶
function _noise_estimate¶
Aggregate |corr| over bins [lo, hi] using the selected mode.
static float _noise_estimate (
const float * mag,
size_t lo,
size_t hi,
float * scratch,
det_noise_mode_t mode
)
Returns 0 if lo > hi (empty range) — the caller maps that to test_stat=0.
Parameters:
magMagnitude vector (length >= hi+1).loFirst bin, inclusive.hiLast bin, inclusive.scratchCaller-allocated buffer of length >= (hi-lo+1) floats; used only for DET_NOISE_MEDIAN (avoids a heap alloc per push).modeAggregation mode.
Returns:
Aggregated noise estimate, or 0 if lo > hi.
function _ring_create¶
function next_pow2¶
The documentation for this class was generated from the following file native/inc/detector/det_private.h