Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
b8da02a5
Commit
b8da02a5
authored
Nov 02, 2011
by
Otmane Lahlou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: add RAMParameter in the applications
parent
e0426461
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
71 additions
and
0 deletions
+71
-0
Applications/ChangeDetection/otbMultivariateAlterationDetector.cxx
...ons/ChangeDetection/otbMultivariateAlterationDetector.cxx
+3
-0
Applications/Classification/otbImageSVMClassifier.cxx
Applications/Classification/otbImageSVMClassifier.cxx
+4
-0
Applications/Classification/otbKMeansClassification.cxx
Applications/Classification/otbKMeansClassification.cxx
+3
-0
Applications/Classification/otbLabeledImageColorMapping.cxx
Applications/Classification/otbLabeledImageColorMapping.cxx
+3
-0
Applications/Hyperspectral/otbHyperspectralUnmixing.cxx
Applications/Hyperspectral/otbHyperspectralUnmixing.cxx
+4
-0
Applications/Projections/otbBundleToPerfectSensor.cxx
Applications/Projections/otbBundleToPerfectSensor.cxx
+3
-0
Applications/RadiometricIndices/otbRadiometricVegetationIndices.cxx
...ns/RadiometricIndices/otbRadiometricVegetationIndices.cxx
+4
-0
Applications/Radiometry/otbOpticalCalibration.cxx
Applications/Radiometry/otbOpticalCalibration.cxx
+4
-0
Applications/Radiometry/otbSarRadiometricCalibration.cxx
Applications/Radiometry/otbSarRadiometricCalibration.cxx
+3
-0
Applications/Segmentation/otbMeanShiftSegmentation.cxx
Applications/Segmentation/otbMeanShiftSegmentation.cxx
+4
-0
Applications/Util/otbBandMath.cxx
Applications/Util/otbBandMath.cxx
+4
-0
Applications/Util/otbConcatenateImages.cxx
Applications/Util/otbConcatenateImages.cxx
+4
-0
Applications/Util/otbConvert.cxx
Applications/Util/otbConvert.cxx
+4
-0
Applications/Util/otbExtractROI.cxx
Applications/Util/otbExtractROI.cxx
+6
-0
Applications/Util/otbMultiResolutionPyramid.cxx
Applications/Util/otbMultiResolutionPyramid.cxx
+4
-0
Applications/Util/otbRescale.cxx
Applications/Util/otbRescale.cxx
+5
-0
Applications/Util/otbSmoothing.cxx
Applications/Util/otbSmoothing.cxx
+5
-0
Applications/Util/otbSplitImage.cxx
Applications/Util/otbSplitImage.cxx
+4
-0
No files found.
Applications/ChangeDetection/otbMultivariateAlterationDetector.cxx
View file @
b8da02a5
...
...
@@ -67,6 +67,9 @@ private:
AddParameter
(
ParameterType_InputImage
,
"in2"
,
"Input Image 2"
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Change Map"
);
SetParameterDescription
(
"out"
,
"Image of detected changes."
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
}
void
DoUpdateParameters
()
...
...
Applications/Classification/otbImageSVMClassifier.cxx
View file @
b8da02a5
...
...
@@ -100,6 +100,10 @@ private:
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Output labeled image"
);
SetParameterOutputImagePixelType
(
"out"
,
ImagePixelType_uint8
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
}
void
DoUpdateParameters
()
...
...
Applications/Classification/otbKMeansClassification.cxx
View file @
b8da02a5
...
...
@@ -96,6 +96,9 @@ private:
SetParameterDescription
(
"in"
,
"Input image filename."
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Output image filename."
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_InputImage
,
"vm"
,
"Validity Mask"
);
SetParameterDescription
(
"vm"
,
"Validity mask. Only non-zero pixels will be used to estimate KMeans modes."
);
AddParameter
(
ParameterType_Int
,
"ts"
,
"Training set size"
);
...
...
Applications/Classification/otbLabeledImageColorMapping.cxx
View file @
b8da02a5
...
...
@@ -78,6 +78,9 @@ private:
SetParameterDescription
(
"in"
,
"Input image filename."
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Output image filename."
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Filename
,
"ct"
,
"Color table"
);
SetParameterDescription
(
"ct"
,
"An ASCII file containing the color table
\n
"
"with one color per line
\n
"
...
...
Applications/Hyperspectral/otbHyperspectralUnmixing.cxx
View file @
b8da02a5
...
...
@@ -156,6 +156,10 @@ private:
AddParameter
(
ParameterType_OutputImage
,
"oe"
,
"Output Endmembers"
);
MandatoryOff
(
"oe"
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
}
void
DoUpdateParameters
()
...
...
Applications/Projections/otbBundleToPerfectSensor.cxx
View file @
b8da02a5
...
...
@@ -77,9 +77,12 @@ private:
AddParameter
(
ParameterType_Directory
,
"dem"
,
"DEM directory"
);
AddParameter
(
ParameterType_Float
,
"lms"
,
"Spacing of the deformation field"
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output image"
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"lms"
);
MandatoryOff
(
"dem"
);
MandatoryOff
(
"ram"
);
}
void
DoUpdateParameters
()
...
...
Applications/RadiometricIndices/otbRadiometricVegetationIndices.cxx
View file @
b8da02a5
...
...
@@ -108,6 +108,10 @@ private:
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Radiometric indices output image"
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Group
,
"channels"
,
"Channels selection"
);
SetParameterDescription
(
"channels"
,
"Channels selection"
);
AddParameter
(
ParameterType_Int
,
"channels.red"
,
"Red Channel"
);
...
...
Applications/Radiometry/otbOpticalCalibration.cxx
View file @
b8da02a5
...
...
@@ -101,6 +101,10 @@ private:
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Calibrated image"
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Empty
,
"milli"
,
"Convert to milli reflectance"
);
SetParameterDescription
(
"milli"
,
"Output milli-reflectance instead of reflectance.
\n
"
"This allows to put save the image in integer pixel type instead of floating point."
);
...
...
Applications/Radiometry/otbSarRadiometricCalibration.cxx
View file @
b8da02a5
...
...
@@ -68,6 +68,9 @@ private:
{
AddParameter
(
ParameterType_ComplexInputImage
,
"cin"
,
"Input Complex Image"
);
AddParameter
(
ParameterType_ComplexOutputImage
,
"out"
,
"Output Image"
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Empty
,
"noise"
,
"Disable Noise"
);
MandatoryOff
(
"noise"
);
}
...
...
Applications/Segmentation/otbMeanShiftSegmentation.cxx
View file @
b8da02a5
...
...
@@ -76,6 +76,10 @@ private:
MandatoryOff
(
"lout"
);
MandatoryOff
(
"cbout"
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Int
,
"spatialr"
,
"Spatial radius"
);
AddParameter
(
ParameterType_Float
,
"ranger"
,
"Range radius"
);
AddParameter
(
ParameterType_Int
,
"minsize"
,
"Min region size"
);
...
...
Applications/Util/otbBandMath.cxx
View file @
b8da02a5
...
...
@@ -75,6 +75,10 @@ private:
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Output image."
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_String
,
"exp"
,
"Expression"
);
SetParameterDescription
(
"exp"
,
"The mathematical expression to apply.
\n
Use im1b1 for the first band, im1b2 for the second one..."
);
...
...
Applications/Util/otbConcatenateImages.cxx
View file @
b8da02a5
...
...
@@ -84,6 +84,10 @@ private:
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Output multiband image"
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
}
void
DoUpdateParameters
()
...
...
Applications/Util/otbConvert.cxx
View file @
b8da02a5
...
...
@@ -112,6 +112,10 @@ private:
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Output image"
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
}
void
DoUpdateParameters
()
...
...
Applications/Util/otbExtractROI.cxx
View file @
b8da02a5
...
...
@@ -73,6 +73,11 @@ private:
SetParameterDescription
(
"in"
,
"Input image."
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"Output image."
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Int
,
"startx"
,
"Start X"
);
SetParameterDescription
(
"startx"
,
"ROI start x position."
);
AddParameter
(
ParameterType_Int
,
"starty"
,
"Start Y"
);
...
...
@@ -81,6 +86,7 @@ private:
SetParameterDescription
(
"sizex"
,
"size along x in pixels."
);
AddParameter
(
ParameterType_Int
,
"sizey"
,
"Size Y"
);
SetParameterDescription
(
"sizey"
,
"size along y in pixels."
);
// Default values
SetDefaultParameterInt
(
"startx"
,
0
);
SetDefaultParameterInt
(
"starty"
,
0
);
...
...
Applications/Util/otbMultiResolutionPyramid.cxx
View file @
b8da02a5
...
...
@@ -84,6 +84,10 @@ private:
SetParameterDescription
(
"out"
,
"will be used to get the prefix and the extension of the images to write"
);
SetParameterRole
(
"out"
,
Role_Output
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Int
,
"level"
,
"Number Of Levels"
);
SetDefaultParameterInt
(
"level"
,
1
);
SetParameterDescription
(
"level"
,
"Number of levels in the pyramid (default is 1)."
);
...
...
Applications/Util/otbRescale.cxx
View file @
b8da02a5
...
...
@@ -72,6 +72,11 @@ private:
SetParameterDescription
(
"in"
,
"The image to scale."
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"The rescaled image filename."
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Float
,
"outmin"
,
"Output min value"
);
AddParameter
(
ParameterType_Float
,
"outmax"
,
"Output max value"
);
SetDefaultParameterFloat
(
"outmin"
,
0.0
);
...
...
Applications/Util/otbSmoothing.cxx
View file @
b8da02a5
...
...
@@ -79,6 +79,11 @@ private:
SetParameterDescription
(
"in"
,
"Input image to filter."
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"filtered image."
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
AddParameter
(
ParameterType_Choice
,
"type"
,
"Smoothing Type"
);
SetParameterDescription
(
"type"
,
"smoothing kernel to apply : mean, gaussian, anisotropric diffusion."
);
AddChoice
(
"type.mean"
,
"Mean"
);
...
...
Applications/Util/otbSplitImage.cxx
View file @
b8da02a5
...
...
@@ -72,6 +72,10 @@ private:
SetParameterDescription
(
"out"
,
"Will be used to get the prefix and the extension of the output images to write"
);
SetParameterRole
(
"out"
,
Role_Output
);
AddParameter
(
ParameterType_RAM
,
"ram"
,
"Available RAM"
);
SetDefaultParameterInt
(
"ram"
,
256
);
MandatoryOff
(
"ram"
);
}
void
DoUpdateParameters
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment