Commit 66182936f523fbe103c8110c949c984a35802bfb

Authored by Charles Otto
1 parent ba1b606a

Implement Independent::finalize

Showing 1 changed file with 15 additions and 0 deletions
openbr/plugins/independent.cpp
... ... @@ -275,6 +275,21 @@ class IndependentTransform : public MetaTransform
275 275 dst.append(mats);
276 276 }
277 277  
  278 + void finalize(TemplateList &out)
  279 + {
  280 + if (transforms.empty())
  281 + return;
  282 +
  283 + transforms[0]->finalize(out);
  284 + for (int i=1; i < transforms.size(); i++) {
  285 + TemplateList temp;
  286 + transforms[i]->finalize(temp);
  287 +
  288 + for (int j=0; j < out.size(); j++)
  289 + out[j].append(temp[j]);
  290 + }
  291 + }
  292 +
278 293 void projectUpdate(const TemplateList &src, TemplateList &dst)
279 294 {
280 295 dst.reserve(src.size());
... ...