diff --git a/openbr/plugins/imgproc/splitchannels.cpp b/openbr/plugins/imgproc/split.cpp index 9a604ff..83e5e63 100644 --- a/openbr/plugins/imgproc/splitchannels.cpp +++ b/openbr/plugins/imgproc/split.cpp @@ -43,6 +43,25 @@ class SplitChannelsTransform : public UntrainableTransform BR_REGISTER(Transform, SplitChannelsTransform) +/*! + * \ingroup transforms + * \brief Split a multi-channel matrix into several single-channel matrices. + * \author Josh Klontz \cite jklontz + */ +class SplitRowsTransform : public UntrainableTransform +{ + Q_OBJECT + + void project(const Template &src, Template &dst) const + { + const Mat &m = src; + for (int i=0; i