mirror of
https://github.com/lovell/sharp.git
synced 2026-02-11 17:16:13 +01:00
Refactor conv op to use slightly safer std::vector
Inspired by similar change to recomb op in commit 60c5c50
This commit is contained in:
@@ -53,7 +53,7 @@ namespace sharp {
|
||||
* Convolution with a kernel.
|
||||
*/
|
||||
VImage Convolve(VImage image, int const width, int const height,
|
||||
double const scale, double const offset, std::unique_ptr<double[]> const &kernel_v);
|
||||
double const scale, double const offset, std::vector<double> const &kernel_v);
|
||||
|
||||
/*
|
||||
* Sharpen flat and jagged areas. Use sigma of -1.0 for fast sharpen.
|
||||
|
||||
Reference in New Issue
Block a user