Olaf
Overly Lightweight Acoustic Fingerprinting
Loading...
Searching...
No Matches
olaf_max_filter.h
Go to the documentation of this file.
1// Olaf: Overly Lightweight Acoustic Fingerprinting
2// Copyright (C) 2019-2023 Joren Six
3
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU Affero General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU Affero General Public License for more details.
13
14// You should have received a copy of the GNU Affero General Public License
15// along with this program. If not, see <https://www.gnu.org/licenses/>.
16
24#ifndef OLAF_MAX_FILTER
25#define OLAF_MAX_FILTER
26
27#include <stdio.h>
28#include <math.h>
29
38void olaf_max_filter_naive(float* array, size_t array_size , size_t filter_width , float* maxvalues );
39
48void olaf_max_filter(float* array, size_t array_size , size_t filter_width , float* maxvalues );
49
50#endif // OLAF_MAX_FILTER
void olaf_max_filter(float *array, size_t array_size, size_t filter_width, float *maxvalues)
An other, preferably faster, implementation.
Definition: olaf_max_filter_lemire.c:83
void olaf_max_filter_naive(float *array, size_t array_size, size_t filter_width, float *maxvalues)
A naive max filter implementation for reference.
Definition: olaf_max_filter_lemire.c:70