1// Aseprite
2// Copyright (C) 2001-2015 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifdef HAVE_CONFIG_H
8#include "config.h"
9#endif
10
11#include "filters/convolution_matrix.h"
12
13namespace filters {
14
15ConvolutionMatrix::ConvolutionMatrix(int width, int height)
16 : m_width(width)
17 , m_height(height)
18 , m_cx(width/2)
19 , m_cy(height/2)
20 , m_div(ConvolutionMatrix::Precision)
21 , m_bias(0)
22 , m_defaultTarget(0)
23 , m_data(width*height, 0)
24{
25}
26
27} // namespace filters
28