}
// Grey level extrema are set by default to the image grey level extrema.
- int minTot = floor (_range[0]);
- int maxTot = ceil (_range[1]);
+ double minTot = _range[0];
+ double maxTot = _range[1];
- _grey_level_boundary.push_back((double)minTot);
+ _grey_level_boundary.push_back(minTot);
// By default, the histogram is split into BaseColorNb areas of equal width.
double delta = (maxTot - minTot)/GetBaseColorNb();
for (int i = 1; i <= GetBaseColorNb() ; i ++)
{
- _grey_level_boundary.push_back((double)minTot + i * delta);
- }
+ _grey_level_boundary.push_back(minTot + i * delta);
+ } // for
}
//----------------------------------------------------------------------------
_range[1]=255;
}
- int minTot = floor (_range[0]);
- int maxTot = ceil (_range[1]);
+ double minTot = floor (_range[0]);
+ double maxTot = ceil (_range[1]);
- _grey_level_boundary.push_back((double)minTot);
+ _grey_level_boundary.push_back(minTot);
// By default, the histogram is split into three areas of equal width.
double delta = (maxTot - minTot)/3.0;
_grey_level_boundary.push_back(minTot + delta);
_grey_level_boundary.push_back(minTot + 2*delta);
- _grey_level_boundary.push_back((double)maxTot);
+ _grey_level_boundary.push_back(maxTot);
}
//----------------------------------------------------------------------------