Commit d6ff4c0f authored by Commandre Benjamin's avatar Commandre Benjamin
Browse files

Calling up histogram writing methods

parent 09b09200
Pipeline #6173 canceled with stage
......@@ -742,12 +742,18 @@ public:
// Remove the no-data entry
RemoveNoDataEntry();
// Generate output
if (GetParameterAsString("out") == "xml") WriteXMLStatsFile();
if (GetParameterAsString("out") == "xml")
{
if(GetParameterInt("histogram") == 0) WriteXMLStatsFile();
else WriteXMLHistogramFile();
}
else // vector or raster
{
if (m_FromLabelImage) GenerateVectorDataFromLabelImage();
if (GetParameterAsString("out") == "vector") WriteVectorData();
else if (GetParameterAsString("out") == "raster") WriteRasterData();
if (GetParameterAsString("out") == "vector" && GetParameterInt("histogram") == 0 ) WriteVectorData();
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");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment