|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
Compile-time separable filter kernel definition and named kernel bank. More...
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | MayaFlux::Kinesis::Vision::KernelSpec< N > |
| Compile-time 1D separable filter kernel. More... | |
Namespaces | |
| namespace | MayaFlux |
| Main namespace for the Maya Flux audio engine. | |
| namespace | MayaFlux::Kinesis |
| namespace | MayaFlux::Kinesis::Vision |
| namespace | MayaFlux::Kinesis::Vision::Kernels |
Compile-time separable filter kernel definition and named kernel bank.
KernelSpec<N> is a constexpr wrapper around std::array<float, N> with chainable compile-time transforms. All methods return a new KernelSpec leaving the original unchanged.
Named constants at the bottom of this file cover the standard operators. Custom kernels can be constructed inline at any call site:
constexpr auto k = KernelSpec<5>{ 1.F, 4.F, 6.F, 4.F, 1.F }.normalize(); filter_separable(src, tmp, dst, w, h, k, k);
KernelSpec<N> converts implicitly to std::span<const float> so it can be passed directly to any filter function without an explicit cast.
Definition in file KernelSpec.hpp.