NxN convolution kernel for image processing.
More...
#include <image_convolution.hpp>
|
| | ImageConvolutionKernel (int size) |
| | Create an NxN kernel (must be odd: 3, 5, 7, etc.).
|
| void | set (int row, int col, float value) |
| | Set a kernel value at (row, col).
|
| float | get (int row, int col) const |
| | Get a kernel value.
|
| int | size () const |
| | Kernel size.
|
| void | apply (uint8_t *pixels, int width, int height, int stride=0) const |
| | Apply the kernel to RGBA image data (in-place).
|
NxN convolution kernel for image processing.
◆ ImageConvolutionKernel()
| pulp::canvas::ImageConvolutionKernel::ImageConvolutionKernel |
( |
int | size | ) |
|
|
inlineexplicit |
Create an NxN kernel (must be odd: 3, 5, 7, etc.).
◆ apply()
| void pulp::canvas::ImageConvolutionKernel::apply |
( |
uint8_t * | pixels, |
|
|
int | width, |
|
|
int | height, |
|
|
int | stride = 0 ) const |
|
inline |
Apply the kernel to RGBA image data (in-place).
◆ edge_detect()
Edge detection (Sobel-like, 3x3).
◆ emboss()
◆ gaussian_blur_3()
◆ gaussian_blur_5()
◆ get()
| float pulp::canvas::ImageConvolutionKernel::get |
( |
int | row, |
|
|
int | col ) const |
|
inline |
◆ set()
| void pulp::canvas::ImageConvolutionKernel::set |
( |
int | row, |
|
|
int | col, |
|
|
float | value ) |
|
inline |
Set a kernel value at (row, col).
◆ sharpen()
◆ size()
| int pulp::canvas::ImageConvolutionKernel::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: