Monteverdi 1.20 modules using the statistics framework (SVM, k-means) crash with OTB 4.0.0 rc1
Mantis Issue 895, reported by jmichel, assigned to msavinaud, created: 2014-02-28
It is easy to reproduce : run the k-means on a multispectral image.
1393577346 - mickaelreproduced with monteverdi installer on windows platform
1393577921 - grizonnetmFYI the debug trace (after sampling data):
Generic Msg Debug: AddInputByKey:key: InputImage data: DataObjectWrapper: type= Floating_Point_VectorImage, object= 0xeac320, source id= Reader0, output key= imagery, description= Image read from file: imagery.tif (Whole dataset) terminate called after throwing an instance of 'itk::ExceptionObject' what(): /home/grizonnetm/projets/otb/src/ITK/Modules/Numerics/Statistics/include/itkListSample.hxx:56: itk::ERROR: ListSample(0x7fc5a3b6e040): MeasurementVectorSize: 0 doesn't match input measurement vector length: 4 Abandon (core dumped)
1393852393 - mickaelfix with: http://hg.orfeo-toolbox.org/Monteverdi/rev/9d3d1410f0e4 I have also add a test about KMeans module