Skip to content
Snippets Groups Projects
Commit 46e191c4 authored by Julien Malik's avatar Julien Malik
Browse files

COMP: LibSVMMachineLearningModelFactory was deactivated when OTB_USE_OPENCV is false

parent 95deb466
No related branches found
No related tags found
No related merge requests found
......@@ -87,12 +87,11 @@ MachineLearningModelFactory<TInputValue,TOutputValue>
::RegisterBuiltInFactories()
{
itk::MutexLockHolder<itk::SimpleMutexLock> lockHolder(mutex);
RegisterFactory(LibSVMMachineLearningModelFactory<TInputValue,TOutputValue>::New());
#ifdef OTB_USE_OPENCV
// KNN Format for OTB
//itk::ObjectFactoryBase::RegisterFactory(KNearestNeighborsMachineLearningModelFactory<TInputValue,TOutputValue>::New());
RegisterFactory(RandomForestsMachineLearningModelFactory<TInputValue,TOutputValue>::New());
RegisterFactory(LibSVMMachineLearningModelFactory<TInputValue,TOutputValue>::New());
RegisterFactory(SVMMachineLearningModelFactory<TInputValue,TOutputValue>::New());
RegisterFactory(BoostMachineLearningModelFactory<TInputValue,TOutputValue>::New());
RegisterFactory(NeuralNetworkMachineLearningModelFactory<TInputValue,TOutputValue>::New());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment