とらりもんHOME  Index  Search  Changes  Login

Orfeo Toolbox

2017/05/22 Seiya Ishibashi

Orfeo Toolbox (OTF)

Segmentation in QGIS.(OTB)

For segmentation in QGIS, Ordeo Toolbox(OTB) should be installed in your computer. Following is how to install OTB(in Ubuntu 16.04). reference

#Get data from git
mkdir ~/OTB 
cd ~/OTB 
git clone https://github.com/orfeotoolbox/OTB
mkdir build  
mkdir install
cd ~/OTB/OTB
git checkout develop

#Setup parameters and install the SuperBuild
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 CMAKE_CXX_FLAGS=--std=gnu++11 ../OTB/SuperBuild
make
make -j 4

#Compile modules
cd ~/OTB/build/OTB/build/
cmake -DCMAKE_CXX_FLAGS=--std=gnu++11 ~/OTB/OTB
make
make install

#Finishing setup (paste following at the once)
echo " 
#PATH for OTB and MONTEVERDI 
PATH=\$PATH:~/OTB/build/OTB/build/bin
OTB_APPLICATION_PATH=~/OTB/build/OTB/build/lib/otb/applications" >> ~/.profile

#Then, OTB should be installed in your computer!
otbcli_TrainImagesClassifier

#Lets open QGIS and Check the "advanced interface"(default is "simplified interface") in the below part of the processing tool box. 

Error message.

unsupported operand type(s) for +: 'NoneType' and 'str' See log for more details
→you should update your QGIS version
The following layers were not correctly generated.
Output vector file
You can check the log messages to find more information about the execution of the algorithm
→??

Segmentation process

Connected Component Segmentation

Hoover compare segmentation

Segmentation

Last modified:2020/03/14 17:57:44
Keyword(s):
References:[とらりもんHOME] [GRASSを用いたオブジェクトベース分類]