From: Michal Sojka Date: Sat, 29 Sep 2018 20:26:27 +0000 (+0200) Subject: CompleMat: Having just one create() method is sufficient X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hercules2020/kcf.git/commitdiff_plain/a3af59ccea61fa0da9b7b60ca3c73c4f890817c2 CompleMat: Having just one create() method is sufficient The methods differ only in the _n_scales argument, which now takes default value. --- diff --git a/src/complexmat.hpp b/src/complexmat.hpp index ce93935..62f1145 100644 --- a/src/complexmat.hpp +++ b/src/complexmat.hpp @@ -32,16 +32,7 @@ template class ComplexMat_ { p_data = convert(mat); } - void create(uint _rows, uint _cols, uint _n_channels) - { - rows = _rows; - cols = _cols; - n_channels = _n_channels; - n_scales = 1; - p_data.resize(n_channels * cols * rows); - } - - void create(uint _rows, uint _cols, uint _n_channels, uint _n_scales) + void create(uint _rows, uint _cols, uint _n_channels, uint _n_scales = 1) { rows = _rows; cols = _cols;