Commit a12c011108170d68b555d73e1332a35d8c77c79f

Authored by lbestrowden
1 parent 6ffd8370

DownsampleTransform and adding myself to openbr.bib

sdk/plugins/reduce.cpp
@@ -132,6 +132,8 @@ class DownsampleTransform : public UntrainableTransform @@ -132,6 +132,8 @@ class DownsampleTransform : public UntrainableTransform
132 132
133 void project(const Template &src, Template &dst) const 133 void project(const Template &src, Template &dst) const
134 { 134 {
  135 + if (src.m().channels() != 1)
  136 + qFatal("Expected 1 channel matrix.");
135 Mat input = src.m(); 137 Mat input = src.m();
136 Mat output(ceil((double)input.rows/k), ceil((double)input.cols/k), CV_32FC1); 138 Mat output(ceil((double)input.rows/k), ceil((double)input.cols/k), CV_32FC1);
137 for (int r=0; r<output.rows; r++) { 139 for (int r=0; r<output.rows; r++) {
share/openbr/openbr.bib
@@ -28,6 +28,11 @@ @@ -28,6 +28,11 @@
28 Author = {Charles A. Otto}, 28 Author = {Charles A. Otto},
29 Howpublished = {https://github.com/caotto}, 29 Howpublished = {https://github.com/caotto},
30 Title = {ottochar at gmail.com}} 30 Title = {ottochar at gmail.com}}
  31 +
  32 +@misc{lbestrowden,
  33 + Author = {Lacey S. Best-Rowden},
  34 + Howpublished = {https://github.com/lbestrowden},
  35 + Title = {bestrow1 at msu.edu}}
31 36
32 37
33 % Software 38 % Software