16 int16_t config_thresholds[3] = {config[
"plane0"], config[
"plane1"], config[
"plane2"]};
19 for (
int i = 0; i < 16; i++) {
20 m_threshold[i] = config_thresholds[plane_numbers[i]];
26 for (
int i = 0; i < 16; i++) {
28 above_threshold[i] = signal[i];
#define REGISTER_NAIVEPROCESSOR_CREATOR(processor_name, processor_class)
Factory registration macro.
virtual naive_array_t process(const naive_array_t &signal) override
Simple signal pass-through on naive type.
std::array< int16_t, 16 > naive_array_t
The naive version uses a standard array instead of __m256i.
Naive signal processor: Passes signals above a threshold.
naive_array_t m_threshold
Vector of thresholds to apply.
naive_array_t process(const naive_array_t &signal) override
Masks channels with signals below threshold.