apply method
Apply the kernel to the src
image, storing the results in dst
,
for a single dimension. If [horizontal is true, the filter will be
applied to the horizontal axis, otherwise it will be appied to the
vertical axis.
Implementation
void apply(Image src, Image dst, {bool horizontal = true}) {
if (horizontal) {
for (var y = 0; y < src.height; ++y) {
_applyCoeffsLine(src, dst, y, src.width, horizontal);
}
} else {
for (var x = 0; x < src.width; ++x) {
_applyCoeffsLine(src, dst, x, src.height, horizontal);
}
}
}