From af97fc18c51f9f53e2671912587c30f0cac83425 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Wed, 1 Oct 2014 11:10:51 -0400 Subject: [PATCH] Added transpose --- openbr/plugins/misc.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/misc.cpp b/openbr/plugins/misc.cpp index ab9100f..7bd0c09 100644 --- a/openbr/plugins/misc.cpp +++ b/openbr/plugins/misc.cpp @@ -38,6 +38,8 @@ class OpenTransform : public UntrainableMetaTransform void project(const Template &src, Template &dst) const { + qDebug() << "here"; + dst.file = src.file; if (src.empty()) { if (Globals->verbose) @@ -483,6 +485,7 @@ class SaveMatTransform : public UntrainableMetaTransform void project(const Template &src, Template &dst) const { + qDebug() << "saving mat"; dst = src; dst.file.set(propName, QVariant::fromValue(dst.m())); } @@ -883,6 +886,18 @@ class FileExclusionTransform : public UntrainableMetaTransform BR_REGISTER(Transform, FileExclusionTransform) +class TransposeTransform : public UntrainableTransform +{ + Q_OBJECT + + void project(const Template &src, Template &dst) const + { + dst.m() = src.m().t(); + } +}; + +BR_REGISTER(Transform, TransposeTransform) + } #include "misc.moc" -- libgit2 0.21.4