MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / getMinValue

Method getMinValue

multiresolutionimageinterface/TIFFImage.cpp:247–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247double TIFFImage::getMinValue(int channel) {
248 if (!_minValues.empty() && channel > 0 && channel < _minValues.size()) {
249 return _minValues[channel];
250 }
251 else if (!_maxValues.empty()) {
252 return *std::max_element(_minValues.begin(), _minValues.end());
253 }
254 else {
255 return std::numeric_limits<double>::min();
256 }
257}
258
259double TIFFImage::getMaxValue(int channel) {
260 if (!_maxValues.empty() && channel > 0 && channel < _maxValues.size()) {

Callers 2

getPatchFunction · 0.45
TESTFunction · 0.45

Calls 2

emptyMethod · 0.80
sizeMethod · 0.80

Tested by 1

TESTFunction · 0.36