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

Method getMaxValue

multiresolutionimageinterface/TIFFImage.cpp:259–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259double TIFFImage::getMaxValue(int channel) {
260 if (!_maxValues.empty() && channel > 0 && channel < _maxValues.size()) {
261 return _maxValues[channel];
262 }
263 else if (!_maxValues.empty()) {
264 return *std::max_element(_maxValues.begin(), _maxValues.end());
265 }
266 else {
267 return std::numeric_limits<double>::max();
268 }
269}
270
271void TIFFImage::cleanup() {
272 _tileSizesPerLevel.clear();

Callers 2

getPatchFunction · 0.45
TESTFunction · 0.45

Calls 2

emptyMethod · 0.80
sizeMethod · 0.80

Tested by 1

TESTFunction · 0.36