Commit 944792ee authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: remove the centroid normalization option in KMeansClassification

No related merge requests found
Showing with 2 additions and 7 deletions
+2 -7
...@@ -89,11 +89,6 @@ protected: ...@@ -89,11 +89,6 @@ protected:
SetParameterDescription("incentroids.in", "Input text file containing centroid posistions."); SetParameterDescription("incentroids.in", "Input text file containing centroid posistions.");
MandatoryOff("incentroids.in"); MandatoryOff("incentroids.in");
AddParameter(ParameterType_Bool, "incentroids.normalize", "Normalize input centroids");
SetParameterDescription("incentroids.normalize", "Normalize input centroids using the image statistics"
" computed during the execution of the application");
SetDefaultParameterInt("incentroids.normalize", true);
ShareKMSamplingParameters(); ShareKMSamplingParameters();
ConnectKMSamplingParams(); ConnectKMSamplingParams();
} }
...@@ -262,8 +257,8 @@ protected: ...@@ -262,8 +257,8 @@ protected:
{ {
GetInternalApplication("training")->SetParameterString("classifier.sharkkm.centroids", GetInternalApplication("training")->SetParameterString("classifier.sharkkm.centroids",
GetParameterString("incentroids.in")); GetParameterString("incentroids.in"));
if(GetParameterInt("incentroids.normalize"))
GetInternalApplication("training")->SetParameterString("classifier.sharkkm.centroidstats", GetInternalApplication("training")->SetParameterString("classifier.sharkkm.centroidstats",
GetInternalApplication("imgstats")->GetParameterString("out")); GetInternalApplication("imgstats")->GetParameterString("out"));
} }
......
Supports Markdown
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