After couple of weeks using TrainImagesClassifier I still don’t understand some points:
1/ We can enter training shapes AND validation shapes, but apparently the number of shapes for each usage must match with the number of input rasters?! Is that really not possible to validate using only one shape? (I solved it using ComputeConfusionMatrix, but could be great if I could get it at the training stage)
2/ whatever the integer I use after the ‘-sample.mt’, OTB use all the pixels, maybe I did something wrong?
3/ I would like now to use TrainImagesClassifier for training only (no validation), so I put ‘-sample.vtr 0’, results an ITK error that stop the computation, why?
4/Just for the knowledge, what the difference using the input “ImageStatistics.xml” or not ?
Thank you for the help and many thanks for making OTB working great!