Skip to content
Permalink
Browse files
[otb] set default value for ParameterSelection
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@127 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
julien.malik@gmail.com committed Apr 19, 2012
1 parent 32d684f commit 91b8d24beb83181539e0adee32bf0c1c36b6ddff
Showing with 35 additions and 32 deletions.
  1. +1 −1 src/sextante/otb/description/BundleToPerfectSensor.txt
  2. +3 −3 src/sextante/otb/description/ColorMapping.txt
  3. +1 −1 src/sextante/otb/description/ComputePolylineFeatureFromImage.txt
  4. +1 −1 src/sextante/otb/description/ConnectedComponentSegmentation.txt
  5. +1 −1 src/sextante/otb/description/Convert.txt
  6. +1 −1 src/sextante/otb/description/ConvertCartoToGeoPoint.txt
  7. +2 −2 src/sextante/otb/description/GridBasedImageResampling.txt
  8. +1 −1 src/sextante/otb/description/HyperspectralUnmixing.txt
  9. +1 −1 src/sextante/otb/description/ImageEnvelope.txt
  10. +1 −1 src/sextante/otb/description/KmzExport.txt
  11. +1 −1 src/sextante/otb/description/LineSegmentDetection.txt
  12. +1 −1 src/sextante/otb/description/OSMDownloader.txt
  13. +2 −2 src/sextante/otb/description/OpticalCalibration.txt
  14. +4 −4 src/sextante/otb/description/OrthoRectification.txt
  15. +3 −3 src/sextante/otb/description/PixelWiseBlockMatching.txt
  16. +1 −1 src/sextante/otb/description/Smoothing.txt
  17. +1 −1 src/sextante/otb/description/StereoRectificationGridGenerator.txt
  18. +1 −1 src/sextante/otb/description/StereoSensorModelToElevationMap.txt
  19. +1 −1 src/sextante/otb/description/Superimpose.txt
  20. +2 −2 src/sextante/otb/description/TrainSVMImagesClassifier.txt
  21. +1 −1 src/sextante/otb/description/ValidateSVMImagesClassifier.txt
  22. +1 −1 src/sextante/otb/description/VectorDataExtractROIApplication.txt
  23. +3 −0 src/sextante/otb/helper/generate_application_descriptors.py
@@ -3,7 +3,7 @@ Bundle to perfect sensor
Geometry
ParameterRaster|-inp|Input PAN Image|False
ParameterRaster|-inxs|Input XS Image|False
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -4,11 +4,11 @@ Learning
ParameterRaster|-in|Input Image|False
OutputRaster|-out|Output Image|
ParameterNumber|-ram|Available RAM (Mb)|None|None|128
ParameterSelection|-op|Operation|labeltocolor;colortolabel
ParameterSelection|-op|Operation|labeltocolor;colortolabel|0
ParameterNumber|-op.colortolabel.notfound|Not Found Label|None|None|404
ParameterSelection|-method|Color mapping method|custom;continuous;optimal;image
ParameterSelection|-method|Color mapping method|custom;continuous;optimal;image|0
ParameterFile|-method.custom.lut|Look-up table file|
ParameterSelection|-method.continuous.lut|Look-up tables|red;green;blue;grey;hot;cool;spring;summer;autumn;winter;copper;jet;hsv;overunder;relief
ParameterSelection|-method.continuous.lut|Look-up tables|red;green;blue;grey;hot;cool;spring;summer;autumn;winter;copper;jet;hsv;overunder;relief|0
ParameterNumber|-method.continuous.min|Mapping range lower value|None|None|0.0
ParameterNumber|-method.continuous.max|Mapping range higher value|None|None|255.0
ParameterNumber|-method.optimal.background|Background label|None|None|0
@@ -3,7 +3,7 @@ Compute Polyline Feature From Image
Feature Extraction
ParameterRaster|-in|Input Image|False
ParameterVector|-vd|Vector Data|-1|False
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -7,7 +7,7 @@ ParameterString|-mask|Mask expression|
ParameterString|-expr|Connected Component Expression|
ParameterNumber|-minsize|Minimum Object Size|None|None|2
ParameterString|-obia|OBIA Expression|
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -2,6 +2,6 @@ otbcli_Convert
Image Conversion
Image Manipulation
ParameterRaster|-in|Input image|False
ParameterSelection|-type|Rescale type|none;linear;log2
ParameterSelection|-type|Rescale type|none;linear;log2|0
OutputRaster|-out|Output Image|
ParameterNumber|-ram|Available RAM (Mb)|None|None|128
@@ -3,7 +3,7 @@ Cartographic to geographic coordinates conversion
Geometry
ParameterNumber|-carto.x|X cartographic coordinates|None|None|0.0
ParameterNumber|-carto.y|Y cartographic coordinates|None|None|0.0
ParameterSelection|-mapproj|Output Cartographic Map Projection|utm;lambert2;lambert93;transmercator;wgs;epsg
ParameterSelection|-mapproj|Output Cartographic Map Projection|utm;lambert2;lambert93;transmercator;wgs;epsg|5
ParameterNumber|-mapproj.utm.zone|Zone number|None|None|0
ParameterBoolean|-mapproj.utm.northhem|Northern Hemisphere|
ParameterNumber|-mapproj.transmercator.falseeasting|False easting|None|None|0.0
@@ -4,14 +4,14 @@ Geometry
ParameterRaster|-io.in|Input image|False
OutputRaster|-io.out|Output Image|
ParameterRaster|-grid.in|Input resampling grid|False
ParameterSelection|-grid.type|Grid Type|def;loc
ParameterSelection|-grid.type|Grid Type|def;loc|0
ParameterNumber|-out.ulx|Upper Left X|None|None|0.0
ParameterNumber|-out.uly|Upper Left Y|None|None|0.0
ParameterNumber|-out.sizex|Size X|None|None|0
ParameterNumber|-out.sizey|Size Y|None|None|0
ParameterNumber|-out.spacingx|Pixel Size X|None|None|1.0
ParameterNumber|-out.spacingy|Pixel Size Y|None|None|1.0
ParameterNumber|-out.default|Default value|None|None|0.0
ParameterSelection|-interpolator|Interpolation|nn;linear;bco
ParameterSelection|-interpolator|Interpolation|nn;linear;bco|2
ParameterNumber|-interpolator.bco.radius|Radius for bicubic interpolation|None|None|2
ParameterNumber|-ram|Available RAM (Mb)|None|None|128
@@ -4,4 +4,4 @@ Miscellaneous
ParameterRaster|-in|Input Image Filename|False
OutputRaster|-out|Output Image|
ParameterRaster|-ie|Input endmembers|False
ParameterSelection|-ua|Unmixing algorithm|ucls;ncls;isra;mdmdnmf
ParameterSelection|-ua|Unmixing algorithm|ucls;ncls;isra;mdmdnmf|0
@@ -3,7 +3,7 @@ Image Envelope
Geometry
ParameterRaster|-in|Input Image|False
OutputVector|-out|Output Vector Data|
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -6,7 +6,7 @@ OutputFile|-out|Output .kmz product|
ParameterNumber|-tilesize|Tile Size|None|None|0
ParameterRaster|-logo|Image logo|True
ParameterRaster|-legend|Image legend|True
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -3,7 +3,7 @@ Line segment detection
Feature Extraction
ParameterRaster|-in|Input Image|False
OutputVector|-out|Output Detected lines|
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -5,7 +5,7 @@ OutputVector|-out|Output vector data|
ParameterRaster|-support|Support image|False
ParameterString|-key|OSM tag key|
ParameterString|-value|OSM tag value|
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -4,10 +4,10 @@ Calibration
ParameterRaster|-in|Input|False
OutputRaster|-out|Output|
ParameterNumber|-ram|Available RAM (Mb)|None|None|128
ParameterSelection|-level|Calibration Level|toa;toc
ParameterSelection|-level|Calibration Level|toa;toc|0
ParameterBoolean|-milli|Convert to milli reflectance|
ParameterFile|-rsr|Relative Spectral Response File|
ParameterSelection|-atmo.aerosol|Aerosol Model|noaersol;continental;maritime;urban;desertic
ParameterSelection|-atmo.aerosol|Aerosol Model|noaersol;continental;maritime;urban;desertic|0
ParameterNumber|-atmo.oz|Ozone Amount|None|None|0.0
ParameterNumber|-atmo.wa|Water Vapor Amount|None|None|2.5
ParameterNumber|-atmo.pressure|Atmospheric Pressure|None|None|1030.0
@@ -3,14 +3,14 @@ Ortho-rectification
Geometry
ParameterRaster|-io.in|Input Image|False
OutputRaster|-io.out|Output Image|
ParameterSelection|-map|Output Cartographic Map Projection|utm;lambert2;lambert93;transmercator;wgs;epsg
ParameterSelection|-map|Output Cartographic Map Projection|utm;lambert2;lambert93;transmercator;wgs;epsg|5
ParameterNumber|-map.utm.zone|Zone number|None|None|0
ParameterBoolean|-map.utm.northhem|Northern Hemisphere|
ParameterNumber|-map.transmercator.falseeasting|False easting|None|None|0.0
ParameterNumber|-map.transmercator.falsenorthing|False northing|None|None|0.0
ParameterNumber|-map.transmercator.scale|Scale factor|None|None|1.0
ParameterNumber|-map.epsg.code|EPSG Code|None|None|32631
ParameterSelection|-outputs.mode|Parameters estimation modes|auto;autosize;autospacing
ParameterSelection|-outputs.mode|Parameters estimation modes|auto;autosize;autospacing|0
ParameterNumber|-outputs.ulx|Upper Left X|None|None|0.0
ParameterNumber|-outputs.uly|Upper Left Y|None|None|0.0
ParameterNumber|-outputs.sizex|Size X|None|None|0
@@ -19,11 +19,11 @@ ParameterNumber|-outputs.spacingx|Pixel Size X|None|None|0.0
ParameterNumber|-outputs.spacingy|Pixel Size Y|None|None|0.0
ParameterBoolean|-outputs.isotropic|Force isotropic spacing by default|True
ParameterNumber|-outputs.default|Default pixel value|None|None|0.0
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
ParameterSelection|-interpolator|Interpolation|nn;linear;bco
ParameterSelection|-interpolator|Interpolation|nn;linear;bco|0
ParameterNumber|-interpolator.bco.radius|Radius for bicubic interpolation|None|None|2
ParameterNumber|-opt.rpc|RPC modeling (points per axis)|None|None|10
ParameterNumber|-opt.ram|Available RAM (Mb)|None|None|128
@@ -11,17 +11,17 @@ ParameterRaster|-mask.inleft|Discard left pixels from mask image|True
ParameterRaster|-mask.inright|Discard right pixels from mask image|True
ParameterNumber|-mask.nodata|Discard pixels with no-data value|None|None|0.0
ParameterNumber|-mask.variancet|Discard pixels with low local variance|None|None|100.0
ParameterSelection|-bm.metric|Block-matching metric|ssd;ncc;lp
ParameterSelection|-bm.metric|Block-matching metric|ssd;ncc;lp|0
ParameterNumber|-bm.metric.lp.p|p value|None|None|1.0
ParameterNumber|-bm.radius|Radius of blocks|None|None|3
ParameterNumber|-bm.minhd|Minimum horizontal disparity|None|None|0
ParameterNumber|-bm.maxhd|Maximum horizontal disparity|None|None|0
ParameterNumber|-bm.minvd|Minimum vertical disparity|None|None|0
ParameterNumber|-bm.maxvd|Maximum vertical disparity|None|None|0
ParameterSelection|-bm.subpixel|Sub-pixel interpolation|none;parabolic;triangular;dichotomy
ParameterSelection|-bm.subpixel|Sub-pixel interpolation|none;parabolic;triangular;dichotomy|0
ParameterNumber|-bm.medianfilter.radius|Radius|None|None|0
ParameterNumber|-bm.medianfilter.incoherence|Incoherence threshold|None|None|0.0
ParameterSelection|-bm.initdisp|Initial disparities|none;uniform;maps
ParameterSelection|-bm.initdisp|Initial disparities|none;uniform;maps|0
ParameterNumber|-bm.initdisp.uniform.hdisp|Horizontal initial disparity|None|None|0
ParameterNumber|-bm.initdisp.uniform.vdisp|Vertical initial disparity|None|None|0
ParameterNumber|-bm.initdisp.uniform.hrad|Horizontal exploration radius|None|None|0
@@ -4,7 +4,7 @@ Image Filtering
ParameterRaster|-in|Input Image|False
OutputRaster|-out|Output Image|
ParameterNumber|-ram|Available RAM (Mb)|None|None|128
ParameterSelection|-type|Smoothing Type|mean;gaussian;anidif
ParameterSelection|-type|Smoothing Type|mean;gaussian;anidif|2
ParameterNumber|-type.mean.radius|Radius|None|None|2
ParameterNumber|-type.gaussian.radius|Radius|None|None|2
ParameterNumber|-type.anidif.timestep|Time Step|None|None|0.125
@@ -5,7 +5,7 @@ ParameterRaster|-io.inleft|Left input image|False
ParameterRaster|-io.inright|Right input image|False
OutputRaster|-io.outleft|Left output deformation grid|
OutputRaster|-io.outright|Right output deformation grid|
ParameterSelection|-epi.elevation|Elevation management|avg;avgdem;dem
ParameterSelection|-epi.elevation|Elevation management|avg;avgdem;dem|0
ParameterNumber|-epi.elevation.avg.value|Average elevation value|None|None|0.0
ParameterFile|-epi.elevation.avgdem.path|DEM directory|
ParameterFile|-epi.elevation.avgdem.geoid|Geoid file|
@@ -12,7 +12,7 @@ ParameterNumber|-minh|MinHeightOffset|None|None|-20.0
ParameterNumber|-maxh|MaxHeightOffset|None|None|20.0
ParameterNumber|-step|HeightStep|None|None|1.0
ParameterNumber|-ae|AverageElevation|None|None|0.0
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -3,7 +3,7 @@ Superimpose sensor
Geometry
ParameterRaster|-inr|Reference input|False
ParameterRaster|-inm|The image to reproject|False
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -5,7 +5,7 @@ ParameterMultipleInput|-io.il|Input Image List|3|False
ParameterMultipleInput|-io.vd|Vector Data List|-1|False
ParameterFile|-io.imstat|XML image statistics file|
OutputFile|-io.out|Output SVM model|
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -14,7 +14,7 @@ ParameterNumber|-sample.mv|Maximum validation sample size|None|None|-1
ParameterBoolean|-sample.edg|On edge pixel inclusion|
ParameterNumber|-sample.vtr|training and validation sample ratio|None|None|0.5
ParameterString|-sample.vfn|Name of the discrimination field|Class
ParameterSelection|-svm.k|SVM Kernel Type|linear;rbf;poly;sigmoid
ParameterSelection|-svm.k|SVM Kernel Type|linear;rbf;poly;sigmoid|0
ParameterNumber|-svm.c|Cost parameter C.|None|None|1.0
ParameterBoolean|-svm.opt|parameters optimization|
ParameterNumber|-rand|set user defined seed|None|None|0
@@ -4,7 +4,7 @@ Learning
ParameterMultipleInput|-il|Input Image List|3|False
ParameterMultipleInput|-vd|Vector Data List|-1|False
ParameterFile|-imstat|XML image statistics file|
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -4,7 +4,7 @@ Vector Data Manipulation
ParameterVector|-io.vd|Input Vector data|-1|False
ParameterRaster|-io.in|Support image|False
OutputVector|-io.out|Output Vector data|
ParameterSelection|-elev|Elevation management|dem;average
ParameterSelection|-elev|Elevation management|dem;average|1
ParameterFile|-elev.dem.path|DEM directory|
ParameterFile|-elev.dem.geoid|Geoid File|
ParameterNumber|-elev.average.value|Average Elevation|None|None|0.0
@@ -228,6 +228,9 @@ def generate_parameter_Choice( appInstance, paramKey ):
choices += ";"
out += choices[:-1]

out += "|"
out += str(appInstance.GetParameterInt(paramKey))

return out

def generate_parameter_InputImage( appInstance, paramKey ):

0 comments on commit 91b8d24

Please sign in to comment.