[GIS] Orfeo Toolbox (OTB) KMeans classification issues QGIS 2.4

land-classificationorfeo-toolboxqgisqgis-2.4

I am having trouble processing an image through the Unsupervised KMeans image classification in the OTB Toolbox of QGIS 2.4. I have a .tif image in the Input Image box and keep all the defaults.

When I run it, this error immediately shows up:

"Algorithm Unsupervised KMeans image classification starting…
unsupported operand type(s) for +: 'NoneType' and 'str' See log for more details"

I have tried increasing the available RAM (Mb) option as well as saving the Output Image in a file rather than a temp. I am relatively new to QGIS so I apologize if I have overlooked anything simple. Can anyone shed light on this problem for me?

Best Answer

jdreyno... Yes it seems you overlooked something really simple, as I did.
I had the same problem and found I did not install orpheo toolbox. In fact, you can install QGIS and activate all the tool providers even if you have not installed them.
If you work on Windows you can install QGIS with the OSGeo4W installer, and you will get all Saga, Orpheo and Grass installed and configured to use with QGIS.
If you are on Ubuntu you need to install them. I installed Orpheo Toolbox from the ubuntugis unstable repository and the error message does not show up any more.
The tool is working great.

Asier

Related Question