mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Namespaces | Functions
ndarray_filter.tcc File Reference
#include "../utility/misc.h"
#include <iostream>

Namespaces

 mf
 

Functions

template<std::size_t Dim, typename Elem , typename Kernel_elem >
kernel_placement< Dim, Elem,
Kernel_elem > 
mf::place_kernel_at (const ndarray_view< Dim, Elem > &view, const ndarray_view< Dim, Kernel_elem > kernel, const ndptrdiff< Dim > &pos)
 Return kernel_placement object for placement of kernel kernel over view centered at pos. More...
 
template<std::size_t Dim, typename In_elem , typename Out_elem , typename Kernel_elem , typename Function >
void mf::apply_kernel (Function &&func, const ndarray_view< Dim, In_elem > &in_view, const ndarray_view< Dim, Out_elem > &out_view, const ndarray_view< Dim, Kernel_elem > kernel)
 Place kernel over all elements in in_view, and call func to modify corresponding out_view element. More...