| 17 | namespace |
| 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 | { |