many many thanks Guillaume, I will look it  and i I would answer you
see you soon

Le lundi 31 octobre 2016 18:27:07 UTC+1, Guillaume Pasero a écrit :
>
> Hi,
>
> It seems that you trained you model 'model.rf' with a certain number of 
> bands, but try to use it with on an image that has a different number of 
> bands. 
>
> You can check the parameter 'var_count' in your file 'model.rf' and 
> compare it with the number of bands in 
> alldates2014_landsat_bandes_et_nvdi.TIF
>
> Regards,
>
> Guillaume
> On 10/26/2016 09:46 AM, michel M wrote:
>
> Hello , 
> I have an error on the command classifier 
>
>  otbcli_ImageClassifier.bat -in alldates2014_landsat_bandes_et_nvdi.TIF  
> -out classif.tif uint8 -model model.rf
>
> i replaced uint8 by float but the result is the same ....
>
> 2016 Oct 26 09:35:21  :  Application.logger  (INFO) Loading model
> 2016 Oct 26 09:35:21  :  Application.logger  (INFO) Model loaded
> 2016 Oct 26 09:35:21  :  Application.logger  (INFO) Input image 
> normalization de    activated.
> Writing classif.tif...: 0% 
> [                                                  ]OpenCV Error: Bad 
> argument (the input sample must be 1d floating-point vector with
>  the same number of elements as the total number of variables used for 
> training ) in predict, file 
> /data/tools/mxe/tmp-opencv-i686-w64-mingw32.shared/opencv-2.4  
> .10/modules/ml/src/tree.cpp, line 3620
> /data/tools/mxe/tmp-opencv-i686-w64-mingw32.shared/opencv-2.4.10/modules/ml/src/tree.cpp:3620:
>  
> error: (-5) the input sample must be 1d floating-point vector wit h the 
> same number of elements as the total number of variables used for training  
> in function predict
>
> many many thanks for your help 
>
> Michel 
>
>
>
> -- 
> -- 
> 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] 
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> <http://www.c-s.fr> *Guillaume PASERO*
> Responsable technique
> *Business Unit E-SPACE & Geo Information - Département Image & 
> Applications*
>
> *CS Systèmes d'Information*
> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
> 31506 Toulouse Cedex 05 - FRANCE
> +33 561 17 64 21 - [email protected] <javascript:> 
>

-- 
-- 
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