| |
| |
|
|
| #ifndef SRC_OPERATIONS_H_ |
| #define SRC_OPERATIONS_H_ |
|
|
| #include <algorithm> |
| #include <functional> |
| #include <memory> |
| #include <tuple> |
| #include <vips/vips8> |
|
|
| using vips::VImage; |
|
|
| namespace sharp { |
|
|
| |
| |
| |
| VImage Tint(VImage image, std::vector<double> const tint); |
|
|
| |
| |
| |
| VImage Normalise(VImage image, int const lower, int const upper); |
|
|
| |
| |
| |
| VImage Clahe(VImage image, int const width, int const height, int const maxSlope); |
|
|
| |
| |
| |
| VImage Gamma(VImage image, double const exponent); |
|
|
| |
| |
| |
| VImage Flatten(VImage image, std::vector<double> flattenBackground); |
|
|
| |
| |
| |
| VImage Negate(VImage image, bool const negateAlpha); |
|
|
| |
| |
| |
| VImage Blur(VImage image, double const sigma, VipsPrecision precision, double const minAmpl); |
|
|
| |
| |
| |
| VImage Convolve(VImage image, int const width, int const height, |
| double const scale, double const offset, std::vector<double> const &kernel_v); |
|
|
| |
| |
| |
| VImage Sharpen(VImage image, double const sigma, double const m1, double const m2, |
| double const x1, double const y2, double const y3); |
|
|
| |
| |
| |
| VImage Threshold(VImage image, double const threshold, bool const thresholdColor); |
|
|
| |
| |
| |
| VImage Bandbool(VImage image, VipsOperationBoolean const boolean); |
|
|
| |
| |
| |
| VImage Boolean(VImage image, VImage imageR, VipsOperationBoolean const boolean); |
|
|
| |
| |
| |
| VImage Trim(VImage image, std::vector<double> background, double threshold, bool const lineArt); |
|
|
| |
| |
| |
| VImage Linear(VImage image, std::vector<double> const a, std::vector<double> const b); |
|
|
| |
| |
| |
| VImage Unflatten(VImage image); |
|
|
| |
| |
| |
| |
| VImage Recomb(VImage image, std::vector<double> const &matrix); |
|
|
| |
| |
| |
| VImage Modulate(VImage image, double const brightness, double const saturation, |
| int const hue, double const lightness); |
|
|
| |
| |
| |
| VImage EnsureColourspace(VImage image, VipsInterpretation colourspace); |
|
|
| |
| |
| |
| VImage CropMultiPage(VImage image, int left, int top, int width, int height, |
| int nPages, int *pageHeight); |
|
|
| |
| |
| |
| VImage EmbedMultiPage(VImage image, int left, int top, int width, int height, |
| VipsExtend extendWith, std::vector<double> background, int nPages, int *pageHeight); |
|
|
| } |
|
|
| #endif |
|
|