Skip to content
Snippets Groups Projects
Commit 41ec7875 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

BUG (continued): HistogramModel::Percentile() returns [0; 1] (same as p of...

BUG (continued): HistogramModel::Percentile() returns [0; 1] (same as p of HistogramModel:Quantile(); ColorDynamicsController converts to percent.
parent 16917bfa
No related branches found
No related tags found
No related merge requests found
......@@ -415,7 +415,7 @@ ColorDynamicsController
{
// Refresh quantile display.
colorBandDynWgt->SetLowQuantile(
imageModel->GetHistogramModel()->Percentile(
100.0 * imageModel->GetHistogramModel()->Percentile(
imageModel->GetSettings().RgbChannel( channel ),
value,
BOUND_LOWER )
......@@ -453,7 +453,7 @@ ColorDynamicsController
{
// Refresh quantile display.
colorBandDynWgt->SetHighQuantile(
imageModel->GetHistogramModel()->Percentile(
100.0 * imageModel->GetHistogramModel()->Percentile(
imageModel->GetSettings().RgbChannel( channel ),
value,
BOUND_LOWER )
......
......@@ -132,7 +132,6 @@ HistogramModel
// Calculate frequency rate.
percent /= histogram->GetTotalFrequency();
percent *=100;
// Return frequency rate.
return percent;
......
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