Commit 487e6122 authored by Cédric Traizet's avatar Cédric Traizet

ENH: added false alarm rate to the vd algorithm

parent 1bdf5b5f
......@@ -95,6 +95,14 @@ private:
AddChoice("algo.vd", "vd");
SetParameterDescription("algo.vd", "virtual dimensionality");
AddParameter( ParameterType_Float , "algo.vd.far" , "false alarm rate"
"Maximum training predictors");
SetMinimumParameterFloatValue("algo.vd.far",0);
SetMaximumParameterFloatValue("algo.vd.far",1);
SetDefaultParameterFloat( "algo.vd.far" , 1.0E-3 );
SetParameterDescription( "algo.vd.far" ,
"False alarm rate for the virtual dimensionality algorithm");
AddParameter(ParameterType_Int,"number","Number of endmembers");
SetParameterDescription("number", "Estimated number of endmembers");
SetParameterRole("number", Role_Output);
......@@ -134,6 +142,7 @@ private:
vd->SetCovariance(statisticsFilter->GetCovariance().GetVnlMatrix());
vd->SetCorrelation(statisticsFilter->GetCorrelation().GetVnlMatrix());
vd->SetNumberOfPixels(GetParameterImage("in")->GetLargestPossibleRegion().GetNumberOfPixels());
vd->SetFAR(GetParameterFloat("algo.vd.far"));
vd->Compute();
numberOfEndmembers = vd->GetNumberOfEndmembers();
}
......
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