Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
92029515
Commit
92029515
authored
7 years ago
by
Antoine Regimbeau
Browse files
Options
Downloads
Patches
Plain Diff
Minor error correction
parent
20aa6e12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Applications/AppImageUtils/app/otbExtractROI.cxx
+59
-27
59 additions, 27 deletions
Modules/Applications/AppImageUtils/app/otbExtractROI.cxx
with
59 additions
and
27 deletions
Modules/Applications/AppImageUtils/app/otbExtractROI.cxx
+
59
−
27
View file @
92029515
...
...
@@ -69,7 +69,8 @@ private:
// Documentation
SetDocName
(
"Extract ROI"
);
SetDocLongDescription
(
"This application extracts a Region Of Interest with user defined size, or reference."
);
SetDocLongDescription
(
"This application extracts a Region Of Interest with "
"user parameter. It has several modes and channel can be selected also."
);
SetDocLimitations
(
"None"
);
SetDocAuthors
(
"OTB-Team"
);
SetDocSeeAlso
(
" "
);
...
...
@@ -78,68 +79,99 @@ private:
// Set parameter input
AddParameter
(
ParameterType_InputImage
,
"in"
,
"Input Image"
);
SetParameterDescription
(
"in"
,
"I
nput image
."
);
SetParameterDescription
(
"in"
,
"I
mage to be processed
."
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Output Image"
);
SetParameterDescription
(
"out"
,
"
Out
put image
.
"
);
SetParameterDescription
(
"out"
,
"
Region of interest fom the in
put image"
);
AddRAMParameter
();
AddParameter
(
ParameterType_Choice
,
"mode"
,
"Extraction mode"
);
AddChoice
(
"mode.standard"
,
"Standard"
);
SetParameterDescription
(
"mode.standard"
,
"In standard mode, extract is done according to the coordinates entered by the user"
);
SetParameterDescription
(
"mode.standard"
,
"In standard mode extraction is done with 2 parameters : the "
"upper left corner and the size of the region, decomposed "
"in X and Y coordinates."
);
// Fit mode : the ROI is computed through a ref vector dataset or a ref image
AddChoice
(
"mode.fit"
,
"Fit"
);
SetParameterDescription
(
"mode.fit"
,
"In fit mode, extract is made from a reference : image or vector dataset."
);
AddParameter
(
ParameterType_InputImage
,
"mode.fit.im"
,
"Reference image"
);
SetParameterDescription
(
"mode.fit.im"
,
"Reference image to define the ROI"
);
SetParameterDescription
(
"mode.fit"
,
"In fit mode, extract is made from a reference : image or vector dataset."
);
AddParameter
(
ParameterType_InputImage
,
"mode.fit.im"
,
"Reference image"
);
SetParameterDescription
(
"mode.fit.im"
,
"Reference image to define the ROI"
);
AddParameter
(
ParameterType_InputFilename
,
"mode.fit.vect"
,
"Reference vector"
);
SetParameterDescription
(
"mode.fit.vect"
,
"Reference vector to define the ROI"
);
SetParameterDescription
(
"mode.fit.vect"
,
"The extent of the vectors is computed and then "
"give an region of interest that will be extracted."
);
// Extent mode : ROI is computed with two point (upper left and lower left corners)
AddChoice
(
"mode.extent"
,
"Extent"
);
SetParameterDescription
(
"mode.extent"
,
"In extent mode, the ROI is defined by two points, the upper left corner and the lower right corner."
);
SetParameterDescription
(
"mode.extent"
,
"In extent mode, the ROI is defined by two points, the upper left corner "
"and the lower right corner, decomposed in 2 coordinates : "
"X and Y or longitude and latitude."
);
AddParameter
(
ParameterType_Float
,
"mode.extent.ulx"
,
"Up left X/lon"
);
SetParameterDescription
(
"mode.extent.ulx"
,
"X/lon coordinate of upper left corner point."
);
SetParameterDescription
(
"mode.extent.ulx"
,
"X/lon coordinate of upper left corner point."
);
AddParameter
(
ParameterType_Float
,
"mode.extent.uly"
,
"Up left Y/lat"
);
SetParameterDescription
(
"mode.extent.uly"
,
"Y/lat coordinate of upper left corner point."
);
SetParameterDescription
(
"mode.extent.uly"
,
"Y/lat coordinate of upper left corner point."
);
AddParameter
(
ParameterType_Float
,
"mode.extent.lrx"
,
"Low right X/lon"
);
SetParameterDescription
(
"mode.extent.lrx"
,
"X/lon coordinate of lower right corner point."
);
SetParameterDescription
(
"mode.extent.lrx"
,
"X/lon coordinate of lower right corner point."
);
AddParameter
(
ParameterType_Float
,
"mode.extent.lry"
,
"Low right Y/lat"
);
SetParameterDescription
(
"mode.extent.lry"
,
"Y/lat coordinate of lower right corner point."
);
SetParameterDescription
(
"mode.extent.lry"
,
"Y/lat coordinate of lower right corner point."
);
// Unit of extent mode
AddParameter
(
ParameterType_Choice
,
"mode.extent.unit"
,
"Unit"
);
AddChoice
(
"mode.extent.unit.pxl"
,
"Pixel"
);
SetParameterDescription
(
"mode.extent.unit.pxl"
,
"The unit for the parameters coordinates will be the pixel"
);
SetParameterDescription
(
"mode.extent.unit.pxl"
,
"The unit for the parameters coordinates will be the pixel, ie the "
"index of the two points."
);
AddChoice
(
"mode.extent.unit.phy"
,
"Physical"
);
SetParameterDescription
(
"mode.extent.unit.phy"
,
"The unit for the parameters coordinates will be the physical mesure of the image"
);
SetParameterDescription
(
"mode.extent.unit.phy"
,
"The unit for the parameters coordinates will be the physical mesure of the image."
);
AddChoice
(
"mode.extent.unit.lonlat"
,
"Lon/Lat"
);
SetParameterDescription
(
"mode.extent.unit.lonlat"
,
"The unit for the parameters coordinates will be the longitude and the latitude"
);
SetParameterDescription
(
"mode.extent.unit.lonlat"
,
"The unit for the parameters coordinates will be the longitude and the latitude."
);
// Radius mode : ROI is computed through a point and a radius
AddChoice
(
"mode.radius"
,
"Radius"
);
SetParameterDescription
(
"mode.radius"
,
"In radius mode, the ROI is defined by a point and a radius."
);
SetParameterDescription
(
"mode.radius"
,
"In radius mode, the ROI is defined by a point and a radius."
);
AddParameter
(
ParameterType_Float
,
"mode.radius.r"
,
"Radius"
);
SetParameterDescription
(
"mode.radius.r"
,
"This is the radius parameter of the radius mode."
);
SetParameterDescription
(
"mode.radius.r"
,
"This is the radius parameter of the radius mode."
);
AddParameter
(
ParameterType_Choice
,
"mode.radius.unitr"
,
"Radius unit"
);
AddChoice
(
"mode.radius.unitr.pxl"
,
"Pixel"
);
SetParameterDescription
(
"mode.radius.unitr.pxl"
,
"The unit for the radius will be the pixel"
);
SetParameterDescription
(
"mode.radius.unitr.pxl"
,
"The unit for the radius will be the pixel."
);
AddChoice
(
"mode.radius.unitr.phy"
,
"Physical"
);
SetParameterDescription
(
"mode.radius.unitr.phy"
,
"The unit for the radius will be the physical mesure of the image"
);
SetParameterDescription
(
"mode.radius.unitr.phy"
,
"The unit for the radius will be the physical mesure of the image."
);
AddParameter
(
ParameterType_Float
,
"mode.radius.cx"
,
"X/lon coordinate of the center"
);
SetParameterDescription
(
"mode.radius.cx"
,
"This is the center corrdinate of the radius mode, it will be either an abscissa or a longitude."
);
SetParameterDescription
(
"mode.radius.cx"
,
"This is the center corrdinate of the radius mode, it will be either an "
"abscissa or a longitude."
);
AddParameter
(
ParameterType_Float
,
"mode.radius.cy"
,
"Y/lat coordinate of the center"
);
SetParameterDescription
(
"mode.radius.cx"
,
"This is the center corrdinate of the radius mode, it will be either an ordinate or a latitude."
);
SetParameterDescription
(
"mode.radius.cx"
,
"This is the center corrdinate of the radius mode, it will be either an "
"ordinate or a latitude."
);
AddParameter
(
ParameterType_Choice
,
"mode.radius.unitc"
,
"Center unit"
);
AddChoice
(
"mode.radius.unitc.pxl"
,
"Pixel"
);
SetParameterDescription
(
"mode.radius.unitc.pxl"
,
"The unit for the center coordinates will be the pixel"
);
SetParameterDescription
(
"mode.radius.unitc.pxl"
,
"The unit for the center coordinates will be the pixel"
);
AddChoice
(
"mode.radius.unitc.phy"
,
"Physical"
);
SetParameterDescription
(
"mode.radius.unitc.phy"
,
"The unit for the center coordinates will be the physical mesure of the image"
);
SetParameterDescription
(
"mode.radius.unitc.phy"
,
"The unit for the center coordinates will be the physical mesure of the image."
);
AddChoice
(
"mode.radius.unitc.lonlat"
,
"Lon/Lat"
);
SetParameterDescription
(
"mode.radius.unitc.lonlat"
,
"The unit for the center coordinates will be the longitude and the latitude"
);
SetParameterDescription
(
"mode.radius.unitc.lonlat"
,
"The unit for the center coordinates will be the longitude and the latitude."
);
// Elevation
ElevationParametersHandler
::
AddElevationParameters
(
this
,
"elev"
);
...
...
@@ -680,8 +712,8 @@ private:
if
(
startin
&&
sizein
)
{
SetParameterInt
(
"sizey"
,
lri_out
[
1
]
-
uli_out
[
1
]
,
false
);
SetParameterInt
(
"sizex"
,
lri_out
[
0
]
-
uli_out
[
0
]
,
false
);
SetParameterInt
(
"sizey"
,
lri_out
[
1
]
-
uli_out
[
1
]
+
1
,
false
);
SetParameterInt
(
"sizex"
,
lri_out
[
0
]
-
uli_out
[
0
]
+
1
,
false
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment