Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Commandre Benjamin
OTB
Commits
d6ff4c0f
Commit
d6ff4c0f
authored
May 23, 2019
by
Commandre Benjamin
Browse files
Calling up histogram writing methods
parent
09b09200
Pipeline
#6173
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Modules/Applications/AppClassification/app/otbZonalStatistics.cxx
View file @
d6ff4c0f
...
@@ -742,12 +742,18 @@ public:
...
@@ -742,12 +742,18 @@ public:
// Remove the no-data entry
// Remove the no-data entry
RemoveNoDataEntry
();
RemoveNoDataEntry
();
// Generate output
// Generate output
if
(
GetParameterAsString
(
"out"
)
==
"xml"
)
WriteXMLStatsFile
();
if
(
GetParameterAsString
(
"out"
)
==
"xml"
)
{
if
(
GetParameterInt
(
"histogram"
)
==
0
)
WriteXMLStatsFile
();
else
WriteXMLHistogramFile
();
}
else
// vector or raster
else
// vector or raster
{
{
if
(
m_FromLabelImage
)
GenerateVectorDataFromLabelImage
();
if
(
m_FromLabelImage
)
GenerateVectorDataFromLabelImage
();
if
(
GetParameterAsString
(
"out"
)
==
"vector"
)
WriteVectorData
();
if
(
GetParameterAsString
(
"out"
)
==
"vector"
&&
GetParameterInt
(
"histogram"
)
==
0
)
WriteVectorData
();
else
if
(
GetParameterAsString
(
"out"
)
==
"raster"
)
WriteRasterData
();
else
if
(
GetParameterAsString
(
"out"
)
==
"vector"
&&
GetParameterInt
(
"histogram"
)
!=
0
)
WriteVectorHistogramData
();
else
if
(
GetParameterAsString
(
"out"
)
==
"raster"
&&
GetParameterInt
(
"histogram"
)
==
0
)
WriteRasterData
();
else
if
(
GetParameterAsString
(
"out"
)
==
"raster"
&&
GetParameterInt
(
"histogram"
)
!=
0
)
WriteRasterHistogramData
();
else
otbAppLogFATAL
(
"Unknown output mode"
);
else
otbAppLogFATAL
(
"Unknown output mode"
);
}
}
}
}
...
...
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