Mercurial > hg > svapp
diff framework/Document.h @ 328:28c17ce7a6e9 tony_integration
Merge from tonioni branch
author | Chris Cannam |
---|---|
date | Tue, 28 Jan 2014 15:02:15 +0000 |
parents | 1e61f0c26593 |
children | f72d58d1ccb0 |
line wrap: on
line diff
--- a/framework/Document.h Thu Dec 12 15:20:14 2013 +0000 +++ b/framework/Document.h Tue Jan 28 15:02:15 2014 +0000 @@ -19,6 +19,7 @@ #include "layer/LayerFactory.h" #include "transform/Transform.h" #include "transform/ModelTransformer.h" +#include "transform/FeatureExtractionModelTransformer.h" #include "base/Command.h" #include <map> @@ -117,6 +118,15 @@ const ModelTransformer::Input &); /** + * Create and return suitable layers for the given transforms, + * which must be identical apart from the output (i.e. must use + * the same plugin and configuration). The layers are returned in + * the same order as the transformed are supplied. + */ + std::vector<Layer *> createDerivedLayers(const Transforms &, + const ModelTransformer::Input &); + + /** * Delete the given layer, and also its associated model if no * longer used by any other layer. In general, this should be the * only method used to delete layers -- doing so directly is a bit @@ -154,6 +164,15 @@ QString &returnedMessage); /** + * Add derived models associated with the given set of related + * transforms, running the transforms and returning the resulting + * models. + */ + std::vector<Model *> addDerivedModels(const Transforms &transforms, + const ModelTransformer::Input &input, + QString &returnedMessage); + + /** * Add a derived model associated with the given transform. This * is necessary to register any derived model that was not created * by the document using createDerivedModel or createDerivedLayer.