Img2Num C++
API Documentation
Loading...
Searching...
No Matches
img2num.h
Go to the documentation of this file.
1
8#ifndef IMG2NUM_H
9#define IMG2NUM_H
10
11#include <cstddef>
12#include <cstdint>
13#include <string>
14
16namespace img2num {
17
19void gaussian_blur_fft(uint8_t *image, size_t width, size_t height, double sigma);
20
22void invert_image(uint8_t *ptr, int width, int height);
23
25void threshold_image(uint8_t *ptr, const int width, const int height, const int num_thresholds);
26
28void black_threshold_image(uint8_t *ptr, const int width, const int height,
29 const int num_thresholds);
30
32void kmeans(const uint8_t *data, uint8_t *out_data, int32_t *out_labels, const int32_t width,
33 const int32_t height, const int32_t k, const int32_t max_iter,
34 const uint8_t color_space);
35
37void bilateral_filter(uint8_t *image, size_t width, size_t height, double sigma_spatial,
38 double sigma_range, uint8_t color_space);
39
41std::string labels_to_svg(const uint8_t *data, const int32_t *labels, const int width,
42 const int height, const int min_area);
43} // namespace img2num
44
45#endif // IMG2NUM_H
Definition Error.h:7
void black_threshold_image(uint8_t *ptr, const int width, const int height, const int num_thresholds)
void gaussian_blur_fft(uint8_t *image, size_t width, size_t height, double sigma)
std::string labels_to_svg(const uint8_t *data, const int32_t *labels, const int width, const int height, const int min_area)
void bilateral_filter(uint8_t *image, size_t width, size_t height, double sigma_spatial, double sigma_range, uint8_t color_space)
void threshold_image(uint8_t *ptr, const int width, const int height, const int num_thresholds)
void invert_image(uint8_t *ptr, int width, int height)
void kmeans(const uint8_t *data, uint8_t *out_data, int32_t *out_labels, const int32_t width, const int32_t height, const int32_t k, const int32_t max_iter, const uint8_t color_space)