1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-07-01 20:37:08 +01:00

safer convolution

This commit is contained in:
2025-06-27 15:58:47 +01:00
parent fef0f3704c
commit b0782552d1

View File

@ -38,6 +38,10 @@ void filterConvolution(MatType &out, const MatType &data,
{
Index n = data.rows(), nf = n*filter.size();
if (&out == &data)
{
LATAN_ERROR(Argument, "filter convolution does not support in-place operation");
}
out.resizeLike(data);
out.fill(0.);
for (unsigned int i = 0; i < filter.size(); ++i)