Indeed, there is a mistake in the help message, but the expected number of arguments is still 14.
Corrected message :

   Usage: ./bin/ExtractRoadExample
        inputFileName
        outputFileName
        firstPixelComponent
        secondPixelComponent
        thirdPixelComponent
        fourthPixelComponent
        alpha
        amplitudeThrehsold
        tolerance
        angularThreshold-maxAngle
        firstMeanDistanceThreshold
        secondMeanDistanceThreshold
        distanceThreshold

Regards,
Guillaume

Le 31/08/2014 14:53, Robin Holler a écrit :
Am Montag, 30. Juni 2014 14:56:56 UTC+2 schrieb Rashad:


    ExtractRoadExample.cxx
    http://hg.orfeo-toolbox.org/OTB/file/2922333d7246/Examples/FeatureExtraction
    
<http://hg.orfeo-toolbox.org/OTB/file/2922333d7246/Examples/FeatureExtraction>


Since this example is running finally, here, I just want to state an error in the source code. The forced amount of parameters is wrong. The author may be confused, because maxAngle and angularThreshold will be both taken from argument no.10, and he missed "alphaValue" at all. So all people having trouble to get this working (e.g. white output, since arguments are wrong), use:
|
if(argc <13)
{
    std::cerr <<"Usage: "<<argv[0];
    std::cerr <<
" inputFileName outputFileName firstPixelComponent secondPixelComponent ";
    std::cerr <<
"thirdPixelComponent fourthPixelComponent valueAlpha amplitudeThrehsold tolerance ";
    std::cerr <<
"angularThreshold-maxAngle firstMeanDistanceThreshold secondMeanDistanceThreshold ";
    std::cerr <<"distanceThreshold"<<std::endl;
returnEXIT_FAILURE;
}
|

instead of the original.
--
--
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] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.


--
<www.c-s.fr>      *Guillaume PASERO*
Ingénieur d'études et développement
*Business Unit E-SPACE & Geo Information* <https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département 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]

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