1#ifndef GAUSSIAN_FILTER_H
2#define GAUSSIAN_FILTER_H
21inline std::vector<std::vector<int32_t>>
24 std::vector<std::vector<float>> kernel = {{1.0 / 16, 2.0 / 16, 1.0 / 16},
25 {2.0 / 16, 4.0 / 16, 2.0 / 16},
26 {1.0 / 16, 2.0 / 16, 1.0 / 16}};
std::vector< std::vector< int32_t > > get_2d_array() const
get_2d_array function
Definition image.h:63
Image apply_filter2d(std::vector< std::vector< T > > &filter) const
apply_filter2d function
Definition image.h:207
gaussian filter namespace
Definition gaussian_filter.h:12
std::vector< std::vector< int32_t > > apply_gaussian_filter(const std::vector< std::vector< int32_t > > &image)
apply_gaussian_filter function: applies a 3x3 gaussian filter to passed image: image
Definition gaussian_filter.h:22