Skip to content
Snippets Groups Projects
Commit ca078dc0 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: add a empty parameter to the application

parent e7284bbe
No related branches found
No related tags found
No related merge requests found
......@@ -89,12 +89,12 @@ private:
SetParameterFloat("vfactor", 0.6);
// Boolean Fast scheme
// AddParameter(ParameterType_Empty, "fast", "Use Fast Scheme");
// std::ostringstream desc;
// desc<<"If used, this option allows to speed-up computation by iteratively"
// <<" subsampling previous level of pyramid instead of processing the full input";
// SetParameterDescription("fast", desc.str());
// MandatoryOff("fast");
AddParameter(ParameterType_Empty, "fast", "Use Fast Scheme");
std::ostringstream desc;
desc<<"If used, this option allows to speed-up computation by iteratively"
<<" subsampling previous level of pyramid instead of processing the full input";
SetParameterDescription("fast", desc.str());
MandatoryOff("fast");
}
void DoUpdateParameters()
......@@ -115,8 +115,7 @@ private:
unsigned int shrinkFactor = GetParameterInt("sfactor");
double varianceFactor = GetParameterFloat("vfactor");
//bool fastScheme = parseResult->IsOptionPresent("FastScheme");
bool fastScheme = false;
bool fastScheme = IsParameterEnabled("fast");
// Get the input image
FloatVectorImageType::Pointer inImage = GetParameterImage("in");
......@@ -159,6 +158,10 @@ private:
{
currentFactor *= shrinkFactor;
}
else
{
std::cout <<"fast scheme enabled : not implemented for the moment " << std::endl;
}
// Get the Output Parameter to change the current image filename
Parameter* param = GetParameterByKey("out");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment