From 6ffd8370539c41ec47dd6c2bff17d1ff06a769ff Mon Sep 17 00:00:00 2001 From: lbestrowden Date: Sun, 3 Mar 2013 13:41:32 -0500 Subject: [PATCH] Revert "DownsampleTransform and adding myself to openbr.bib" --- sdk/plugins/reduce.cpp | 2 -- share/openbr/openbr.bib | 53 +++++++++++++++++++++-------------------------------- 2 files changed, 21 insertions(+), 34 deletions(-) diff --git a/sdk/plugins/reduce.cpp b/sdk/plugins/reduce.cpp index 6038e61..1702875 100644 --- a/sdk/plugins/reduce.cpp +++ b/sdk/plugins/reduce.cpp @@ -132,8 +132,6 @@ class DownsampleTransform : public UntrainableTransform void project(const Template &src, Template &dst) const { - if (src.m().channels() != 1) - qFatal("Expected 1 channel matrix."); Mat input = src.m(); Mat output(ceil((double)input.rows/k), ceil((double)input.cols/k), CV_32FC1); for (int r=0; r