Emilio, I am having this same error doing the same steps. Were you able to 
fix the problem? I am running OTB 6.6 on QGIS 3. 

On Sunday, August 13, 2017 at 1:01:32 AM UTC-5, EMILIO BRUNO wrote:
>
> Dear,
>
> I'm getting an error  when performing a TrainVectorClassifier. 
>
> The 4 steps for Exact Large-Scale Mean-Shift segmentation were well done.
>
> The first error occur when I run ComputeOGRLayerFeaturesStatistics 
> function to get the *xml* files, as follow : 
>
>
> ##################################################################################
>
> Algoritmo ComputeOGRLayersFeaturesStatistics iniciando...
>
> /opt/OTB/OTB-6.0.0-Linux64/bin/otbcli_ComputeOGRLayersFeaturesStatistics
>
> -inshp
>
> "/MyDrive/qgis/shp/treino_join.shp"
>
> -feat
>
> meanB0,meanB1,meanB02
>
> -outstats
>
>
> "/tmp/processing4d8726f9e95c4552972f9c9ed2de0892/06241ef875684175a6b653558183edb1/outstats.file"
>
> ERROR: option -elev.dem does not exist in the application. 
>
> This is the ComputeOGRLayersFeaturesStatistics application, version 6.0.0 
>
> Compute statistics of the features in a set of OGR Layers 
>
>
>
> ##################################################################################
>
>
> Then I try to run TrainVectorClassifier and there is another error.
>
>
> The file "*treino_join.shp*"(-io.vd) is the result of the "Join 
> attributes by location"  QGIS function,  involving the shapefiles of  
> segmented image,  and regions of interest(digitized training areas), 
> respectively , and contain the following fields :  
>
> label, nbPixels, meanB0, meanB1, meanB2, meanB3, varB0, varB1, varB2, 
> varB3, class, id. 
>
> where 'class' is the classification attribute field (integer).
>
>
> Please see the OTB log:
>
>
> #############################################################
>
> Algoritmo TrainVectorClassifier (libsvm) iniciando...
>
>
> /opt/OTB/OTB-6.0.0-Linux64/bin/otbcli_TrainVectorClassifier
>
>
> -io.vd
>
> "/MyDrive/qgis/shp/treino_join.shp "
>
> -io.stats
>
> /MyDrive/qgis/shp/treino_join.xml
>
> -feat
>
> label
>
> -cfield
>
> class
>
> -layer
>
> 0
>
> -valid.layer
>
> 0
>
> -classifier
>
> libsvm
>
> -classifier.libsvm.k
>
> linear
>
> -classifier.libsvm.m
>
> csvc
>
> -classifier.libsvm.c
>
> 1
>
> -classifier.libsvm.opt
>
> true
>
> -classifier.libsvm.prob
>
> true
>
> -rand
>
> 0
>
> -io.confmatout
>
>
> "/tmp/processing5f592839b4e14a6da06761d89d6eb4f5/70e786a6bce64ae09cabf761ddf5cdc5/io.confmatout.file"
>
> -io.out
>
>
> "/tmp/processing5f592839b4e14a6da06761d89d6eb4f5/ebaf9fc5401e48c3b56d5181cc68aad5/io.out.file"
>
> 2017 Aug 13 02:03:29 : Application.logger (INFO) Reading vector file 1/1 
>
> 2017 Aug 13 02:03:29 : Application.logger (FATAL) The following *error* 
> occurred during application execution : 
> /home/mrashad/dashboard/otb/src/Modules/Filtering/Statistics/include/otbShiftScaleSampleListFilter.txx:58:
>  
>
>
> itk::ERROR: ShiftScaleSampleListFilter(0x824070):* Inconsistent 
> measurement vector size : Input Sample List size 1 Scale measurement vector 
> size 3 Shift measurement vector size 3 *
>
> Converting outputs
>
> Carregando camada resultante
>
> Algorithm TrainVectorClassifier (libsvm) finished
>
>
>
> #############################################################
>
> I' m running Ubuntu 16.04 and QGIS 2.18.11.
>
>
> I would appreciate for any help. 
>
>
> Best regards,
>
>
> Emilio 
>

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to