From 270af2ca7943e029104da5fce2e57f6c2cda789d Mon Sep 17 00:00:00 2001 From: TobyWanKenobi Date: Wed, 3 Dec 2014 15:40:12 +0100 Subject: [PATCH] Changing tabs to spaces. Edited previous code to change tabs into spaces. --- modules/ml/include/opencv2/ml.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/ml/include/opencv2/ml.hpp b/modules/ml/include/opencv2/ml.hpp index 63a29c80e..598c5b1b1 100644 --- a/modules/ml/include/opencv2/ml.hpp +++ b/modules/ml/include/opencv2/ml.hpp @@ -836,12 +836,12 @@ public: @param strModel The string variable containing the model (in an XML format) you want to load. */ template static Ptr<_Tp> loadFromString(const String& strModel) - { - FileStorage fs(strModel, FileStorage::READ + FileStorage::MEMORY + FileStorage::FORMAT_XML); - Ptr<_Tp> model = _Tp::create(); - model->read(fs.getFirstTopLevelNode()); - return model->isTrained() ? model : Ptr<_Tp>(); - } + { + FileStorage fs(strModel, FileStorage::READ + FileStorage::MEMORY + FileStorage::FORMAT_XML); + Ptr<_Tp> model = _Tp::create(); + model->read(fs.getFirstTopLevelNode()); + return model->isTrained() ? model : Ptr<_Tp>(); + } template static Ptr<_Tp> train(const Ptr& data, const typename _Tp::Params& p, int flags=0) {