Commit fdf6cf7345e0d73db96966c040e9b43d54d84c95
1 parent
c6b90e41
Made propagate so meta
Showing
1 changed file
with
1 additions
and
6 deletions
openbr/plugins/core/propagate.cpp
| @@ -8,18 +8,13 @@ namespace br | @@ -8,18 +8,13 @@ namespace br | ||
| 8 | * \brief Ensures that a template will be propogated. | 8 | * \brief Ensures that a template will be propogated. |
| 9 | * \author Scott Klum \cite sklum | 9 | * \author Scott Klum \cite sklum |
| 10 | */ | 10 | */ |
| 11 | -class PropagateTransform : public Transform | 11 | +class PropagateTransform : public UntrainableMetaTransform |
| 12 | { | 12 | { |
| 13 | Q_OBJECT | 13 | Q_OBJECT |
| 14 | 14 | ||
| 15 | Q_PROPERTY(br::Transform *transform READ get_transform WRITE set_transform RESET reset_transform STORED true) | 15 | Q_PROPERTY(br::Transform *transform READ get_transform WRITE set_transform RESET reset_transform STORED true) |
| 16 | BR_PROPERTY(br::Transform *, transform, NULL) | 16 | BR_PROPERTY(br::Transform *, transform, NULL) |
| 17 | 17 | ||
| 18 | - void train(const TemplateList &data) | ||
| 19 | - { | ||
| 20 | - transform->train(data); | ||
| 21 | - } | ||
| 22 | - | ||
| 23 | void project(const Template &src, Template &dst) const | 18 | void project(const Template &src, Template &dst) const |
| 24 | { | 19 | { |
| 25 | transform->project(src,dst); | 20 | transform->project(src,dst); |