MCPcopy Create free account
hub / github.com/MITK/MITK / RequireFinite

Function RequireFinite

Modules/PET/src/mitkSUVNormalizationStrategy.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace
18{
19 void RequireFinite(double value, const char* fieldName)
20 {
21 if (!std::isfinite(value))
22 {
23 mitkThrowException(mitk::MissingSUVInputException)
24 << "SUV normalization input '" << fieldName
25 << "' is missing or not a finite number.";
26 }
27 }
28
29 void RequirePositive(double value, const char* fieldName)
30 {

Callers 1

RequirePositiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected