Commit 98a7cf2fa405d02f194e820e26a4158261719026

Authored by Pierre Lassalle
1 parent 6092f4f1
Exists in master

Wrapper application and change SetDefaultParameter + AddChoice

Showing 1 changed file with 6 additions and 5 deletions   Show diff stats
app/otbGRM.cxx
... ... @@ -52,18 +52,18 @@ namespace otb
52 52 AddParameter(ParameterType_OutputFilename, "out", "Ouput Label Image");
53 53  
54 54 AddParameter(ParameterType_Choice, "criterion", "Homogeneity criterion to use");
55   - AddChoice("bs", "Baatz & Schape");
56   - AddChoice("ed", "Euclidean Distance");
57   - AddChoice("fls", "Full Lambda Schedule");
  55 + AddChoice("criterion.bs", "Baatz & Schape");
  56 + AddChoice("criterion.ed", "Euclidean Distance");
  57 + AddChoice("criterion.fls", "Full Lambda Schedule");
58 58  
59 59 AddParameter(ParameterType_Float, "threshold", "Threshold for the criterion");
60 60  
61 61 AddParameter(ParameterType_Int, "niter", "Number of iterations");
62   - SetDefaultParameterFloat("niter", 0);
  62 + SetDefaultParameterInt("niter", 0);
63 63 MandatoryOff("niter");
64 64  
65 65 AddParameter(ParameterType_Int, "speed", "Activate it to boost the segmentation speed");
66   - SetDefaultParameterFloat("speed", 0);
  66 + SetDefaultParameterInt("speed", 0);
67 67 MandatoryOff("speed");
68 68  
69 69 // For Baatz & Schape
... ... @@ -172,3 +172,4 @@ namespace otb
172 172  
173 173 } // end of namespace otb
174 174  
  175 +OTB_APPLICATION_EXPORT(otb::Wrapper::otbGRM)
... ...