laadr / fffs Goto Github PK
View Code? Open in Web Editor NEWFast Forward Features Selection
Fast Forward Features Selection
Hello,
Thanks for your module, but I don't manage to install it. I don't know why I have a message error (with ITK?)
Other modules works great (like Mosaic), do you know how to solve it ?
I used the superbuild by this way :
cd ~/OTB/build
cmake -D CMAKE_INSTALL_PREFIX=~/OTB/install -D OTB_USE_QWT=ON -D OTB_USE_GLEW=ON -D OTB_USE_GLUT=ON -D OTB_USE_OPENGL=ON -D OTB_USE_SHARK=ON -D OTB_USE_GLFW=ON -D CMAKE_CXX_FLAGS=--std=gnu++11 ../otb/SuperBuild
make
After cmake the build from otb and choosing every module, everything is ok except OTB FFS 👍
[ 66%] Building CXX object Modules/Remote/OTBFastFeaturesSelection/app/CMakeFiles/otbapp_PredictGMMApp.dir/otbPredictGMMApp.cxx.o
In file included from /home/nkarasiak/OTB/install/include/ITK-4.10/itkIndent.h:31:0,
from /home/nkarasiak/OTB/install/include/ITK-4.10/itkRGBPixel.h:26,
from /home/nkarasiak/OTB/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperTypes.h:22,
from /home/nkarasiak/OTB/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h:22,
from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:1:
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMMachineLearningModel.h: In instantiation of ‘static otb::GMMMachineLearningModel<TInputValue, TTargetValue>::Pointer otb::GMMMachineLearningModel<TInputValue, TTargetValue>::New() [with TInputValue = float; TTargetValue = short unsigned int; otb::GMMMachineLearningModel<TInputValue, TTargetValue>::Pointer = itk::SmartPointer<otb::GMMMachineLearningModel<float, short unsigned int> >]’:
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:123:108: required from here
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMMachineLearningModel.h:36:3: error: invalid new-expression of abstract class type ‘otb::GMMMachineLearningModel<float, short unsigned int>’
itkNewMacro(Self);
^
In file included from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:4:0:
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMMachineLearningModel.h:13:18: note: because the following virtual functions are pure within ‘otb::GMMMachineLearningModel<float, short unsigned int>’:
class ITK_EXPORT GMMMachineLearningModel
^
In file included from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMMachineLearningModel.h:8:0,
from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:4:
/home/nkarasiak/OTB/otb/Modules/Learning/Supervised/include/otbMachineLearningModel.h:229:28: note: otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::TargetSampleType otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::DoPredict(const InputSampleType&, otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::ConfidenceValueType*) const [with TInputValue = float; TTargetValue = short unsigned int; TConfidenceValue = double; otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::TargetSampleType = itk::FixedArray<short unsigned int, 1u>; otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::InputSampleType = itk::VariableLengthVector<float>; otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::ConfidenceValueType = double]
virtual TargetSampleType DoPredict(const InputSampleType& input, ConfidenceValueType * quality= ITK_NULLPTR) const = 0;
^
In file included from /home/nkarasiak/OTB/install/include/ITK-4.10/itkIndent.h:31:0,
from /home/nkarasiak/OTB/install/include/ITK-4.10/itkRGBPixel.h:26,
from /home/nkarasiak/OTB/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperTypes.h:22,
from /home/nkarasiak/OTB/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h:22,
from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:1:
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMSelectionMachineLearningModel.h: In instantiation of ‘static otb::GMMSelectionMachineLearningModel<TInputValue, TTargetValue>::Pointer otb::GMMSelectionMachineLearningModel<TInputValue, TTargetValue>::New() [with TInputValue = float; TTargetValue = short unsigned int; otb::GMMSelectionMachineLearningModel<TInputValue, TTargetValue>::Pointer = itk::SmartPointer<otb::GMMSelectionMachineLearningModel<float, short unsigned int> >]’:
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:124:117: required from here
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMSelectionMachineLearningModel.h:41:3: error: invalid new-expression of abstract class type ‘otb::GMMSelectionMachineLearningModel<float, short unsigned int>’
itkNewMacro(Self);
^
In file included from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:5:0:
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMSelectionMachineLearningModel.h:15:18: note: because the following virtual functions are pure within ‘otb::GMMSelectionMachineLearningModel<float, short unsigned int>’:
class ITK_EXPORT GMMSelectionMachineLearningModel
^
In file included from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMMachineLearningModel.h:8:0,
from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:4:
/home/nkarasiak/OTB/otb/Modules/Learning/Supervised/include/otbMachineLearningModel.h:229:28: note: otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::TargetSampleType otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::DoPredict(const InputSampleType&, otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::ConfidenceValueType*) const [with TInputValue = float; TTargetValue = short unsigned int; TConfidenceValue = double; otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::TargetSampleType = itk::FixedArray<short unsigned int, 1u>; otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::InputSampleType = itk::VariableLengthVector<float>; otb::MachineLearningModel<TInputValue, TTargetValue, TConfidenceValue>::ConfidenceValueType = double]
virtual TargetSampleType DoPredict(const InputSampleType& input, ConfidenceValueType * quality= ITK_NULLPTR) const = 0;
^
In file included from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMMachineLearningModel.h:153:0,
from /home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:4:
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMMachineLearningModel.txx: In instantiation of ‘void otb::GMMMachineLearningModel<TInputValue, TTargetValue>::Load(const string&, const string&) [with TInputValue = float; TTargetValue = short unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/app/otbPredictGMMApp.cxx:126:54: required from here
/home/nkarasiak/OTB/otb/Modules/Remote/OTBFastFeaturesSelection/include/otbGMMMachineLearningModel.txx:568:58: warning: unused parameter ‘name’ [-Wunused-parameter]
::Load(const std::string & filename, const std::string & name)
^
Modules/Remote/OTBFastFeaturesSelection/app/CMakeFiles/otbapp_PredictGMMApp.dir/build.make:62 : la recette pour la cible « Modules/Remote/OTBFastFeaturesSelection/app/CMakeFiles/otbapp_PredictGMMApp.dir/otbPredictGMMApp.cxx.o » a échouée
make[2]: *** [Modules/Remote/OTBFastFeaturesSelection/app/CMakeFiles/otbapp_PredictGMMApp.dir/otbPredictGMMApp.cxx.o] Erreur 1
CMakeFiles/Makefile2:17908 : la recette pour la cible « Modules/Remote/OTBFastFeaturesSelection/app/CMakeFiles/otbapp_PredictGMMApp.dir/all » a échouée
make[1]: *** [Modules/Remote/OTBFastFeaturesSelection/app/CMakeFiles/otbapp_PredictGMMApp.dir/all] Erreur 2
Makefile:127 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
Thanks for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.