Commit af97fc18c51f9f53e2671912587c30f0cac83425

Authored by Scott Klum
1 parent d9fab5ff

Added transpose

Showing 1 changed file with 15 additions and 0 deletions
openbr/plugins/misc.cpp
... ... @@ -38,6 +38,8 @@ class OpenTransform : public UntrainableMetaTransform
38 38  
39 39 void project(const Template &src, Template &dst) const
40 40 {
  41 + qDebug() << "here";
  42 +
41 43 dst.file = src.file;
42 44 if (src.empty()) {
43 45 if (Globals->verbose)
... ... @@ -483,6 +485,7 @@ class SaveMatTransform : public UntrainableMetaTransform
483 485  
484 486 void project(const Template &src, Template &dst) const
485 487 {
  488 + qDebug() << "saving mat";
486 489 dst = src;
487 490 dst.file.set(propName, QVariant::fromValue(dst.m()));
488 491 }
... ... @@ -883,6 +886,18 @@ class FileExclusionTransform : public UntrainableMetaTransform
883 886  
884 887 BR_REGISTER(Transform, FileExclusionTransform)
885 888  
  889 +class TransposeTransform : public UntrainableTransform
  890 +{
  891 + Q_OBJECT
  892 +
  893 + void project(const Template &src, Template &dst) const
  894 + {
  895 + dst.m() = src.m().t();
  896 + }
  897 +};
  898 +
  899 +BR_REGISTER(Transform, TransposeTransform)
  900 +
886 901 }
887 902  
888 903 #include "misc.moc"
... ...