Commit a12c011108170d68b555d73e1332a35d8c77c79f
1 parent
6ffd8370
DownsampleTransform and adding myself to openbr.bib
Showing
2 changed files
with
7 additions
and
0 deletions
sdk/plugins/reduce.cpp
| ... | ... | @@ -132,6 +132,8 @@ class DownsampleTransform : public UntrainableTransform |
| 132 | 132 | |
| 133 | 133 | void project(const Template &src, Template &dst) const |
| 134 | 134 | { |
| 135 | + if (src.m().channels() != 1) | |
| 136 | + qFatal("Expected 1 channel matrix."); | |
| 135 | 137 | Mat input = src.m(); |
| 136 | 138 | Mat output(ceil((double)input.rows/k), ceil((double)input.cols/k), CV_32FC1); |
| 137 | 139 | for (int r=0; r<output.rows; r++) { | ... | ... |
share/openbr/openbr.bib
| ... | ... | @@ -28,6 +28,11 @@ |
| 28 | 28 | Author = {Charles A. Otto}, |
| 29 | 29 | Howpublished = {https://github.com/caotto}, |
| 30 | 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 | 38 | % Software | ... | ... |