Commit 453d5f4907f30285af1295e148fc95bec19ec320
1 parent
180c103e
GroupTransform tweaks
Showing
1 changed file
with
3 additions
and
3 deletions
openbr/plugins/regions.cpp
| @@ -120,7 +120,7 @@ BR_REGISTER(Transform, CatTransform) | @@ -120,7 +120,7 @@ BR_REGISTER(Transform, CatTransform) | ||
| 120 | class GroupTransform : public UntrainableMetaTransform | 120 | class GroupTransform : public UntrainableMetaTransform |
| 121 | { | 121 | { |
| 122 | Q_OBJECT | 122 | Q_OBJECT |
| 123 | - Q_PROPERTY(int size READ get_size WRITE set_size RESET reset_size) | 123 | + Q_PROPERTY(int size READ get_size WRITE set_size RESET reset_size STORED false) |
| 124 | BR_PROPERTY(int, size, 1) | 124 | BR_PROPERTY(int, size, 1) |
| 125 | 125 | ||
| 126 | void project(const Template &src, Template &dst) const | 126 | void project(const Template &src, Template &dst) const |
| @@ -134,8 +134,8 @@ class GroupTransform : public UntrainableMetaTransform | @@ -134,8 +134,8 @@ class GroupTransform : public UntrainableMetaTransform | ||
| 134 | sizes[i/size] += src[i].total(); | 134 | sizes[i/size] += src[i].total(); |
| 135 | 135 | ||
| 136 | if (!src.empty()) | 136 | if (!src.empty()) |
| 137 | - foreach (int size, sizes) | ||
| 138 | - dst.append(Mat(1, size, src.m().type())); | 137 | + foreach (int size_, sizes) |
| 138 | + dst.append(Mat(1, size_, src.m().type())); | ||
| 139 | 139 | ||
| 140 | QVector<int> offsets(src.size() / size, 0); | 140 | QVector<int> offsets(src.size() / size, 0); |
| 141 | for (int i=0; i<src.size(); i++) { | 141 | for (int i=0; i<src.size(); i++) { |