Commit 5713d592 authored by Julien Osman's avatar Julien Osman
Browse files

FIX: KMeanClassification uses ComputeImageStatistics' out parameter

parent c2690e5e
Pipeline #9951 passed with stages
in 132 minutes and 38 seconds
......@@ -137,12 +137,12 @@ public:
void ConnectKMClassificationParams()
{
Connect("training.cfield", "extraction.field");
Connect("training.io.stats", "imgstats.out");
Connect("training.io.stats", "imgstats.out.xml");
Connect("classif.in", "imgenvelop.in");
Connect("classif.model", "training.io.out");
Connect("classif.ram", "polystats.ram");
Connect("classif.imstat", "imgstats.out");
Connect("classif.imstat", "imgstats.out.xml");
}
void ConnectKMClassificationMask()
......@@ -251,7 +251,7 @@ public:
GetInternalApplication("training")->SetParameterString("classifier.sharkkm.incentroids", GetParameterString("centroids.in"));
GetInternalApplication("training")
->SetParameterString("classifier.sharkkm.cstats", GetInternalApplication("imgstats")->GetParameterString("out"));
->SetParameterString("classifier.sharkkm.cstats", GetInternalApplication("imgstats")->GetParameterString("out.xml"));
}
......@@ -269,10 +269,10 @@ public:
{
// std::vector<std::string> imageFileNameList = {imageFileName};
GetInternalApplication("imgstats")->SetParameterImageBase("il", img);
GetInternalApplication("imgstats")->SetParameterString("out", imagesStatsFileName);
GetInternalApplication("imgstats")->SetParameterString("out.xml", imagesStatsFileName);
ExecuteInternal("imgstats");
otbAppLogINFO("image statistics file: " << GetInternalApplication("imgstats")->GetParameterString("out"));
otbAppLogINFO("image statistics file: " << GetInternalApplication("imgstats")->GetParameterString("out.xml"));
}
......
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