#include <Filter.h>
Public Member Functions | |
float | apply (const float *array) const |
float | apply (const float *array, int left, int right) const |
Coefficients for the filter at a particular position & width.
float Filter::Coefficients::apply | ( | const float * | array | ) | const |
Multiply an array of pixels by the filter coefficients and return the sum of the results. It is equivalent to the following code:
Note that in many cases your input is a bounded array or is not an array at all. You can either write equivalent code to read your source, or copy it to an array and call this.
©2024 The Foundry Visionmongers, Ltd. All Rights Reserved. |