From b7b7bf7b83cc5e199791ca434ac08220ab3d4aae Mon Sep 17 00:00:00 2001 From: bhklein Date: Mon, 4 Dec 2017 11:30:28 -0700 Subject: [PATCH] option to split on cols --- openbr/plugins/imgproc/split.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/openbr/plugins/imgproc/split.cpp b/openbr/plugins/imgproc/split.cpp index 7819de9..f10f792 100644 --- a/openbr/plugins/imgproc/split.cpp +++ b/openbr/plugins/imgproc/split.cpp @@ -53,13 +53,20 @@ class SplitRowsTransform : public UntrainableTransform { Q_OBJECT Q_PROPERTY(int step READ get_step WRITE set_step RESET reset_step STORED false) + Q_PROPERTY(bool cols READ get_cols WRITE set_cols RESET reset_cols STORED false) BR_PROPERTY(int, step, 1) + BR_PROPERTY(bool, cols, false) void project(const Template &src, Template &dst) const { const Mat &m = src; - for (int i=0; i