This semester I am using OTB , instead of ENVI, for my classes of Multispectral Remote Sensing. I have performed already several tasks with it and it is performing extremely well! However, I am having some difficulties with classification.
I am trying to classify, using RF, a small subset of a Sentinel-2 using just a few classes (4) just for testing OTB. I am following the instructions in https://www.orfeo-toolbox.org/CookBook/recipes/pbclassif.html# but at the end a get a black image with all the pixels classified as 20 (the code value of the “baresoil” class). I suspect that it might be due to the fact that I am using just 46 samples (7 for class 10, 10 for class 20, 13 for class 30 and 16 for class 40). I am sending in attach a PDF with printscreens of the process and also the shapefile used for the classification. Since it is not possible to send the image, I am sending the printscreen of ReadImageInfo in the PDF file.CLASSIFICATION.rar (5.3 KB) Classification_OTB.docx (3.0 MB)
Thank you in advance,