| 27 | } |
| 28 | |
| 29 | void RequirePositive(double value, const char* fieldName) |
| 30 | { |
| 31 | RequireFinite(value, fieldName); |
| 32 | if (value <= 0.0) |
| 33 | { |
| 34 | mitkThrowException(mitk::MissingSUVInputException) |
| 35 | << "SUV normalization input '" << fieldName |
| 36 | << "' must be positive (got " << value << ")."; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // Sex-closed contract: the sex-specific strategies accept Male and |
| 41 | // Female only. Sex::Other is an upstream-resolved IBSI adaptation |
no test coverage detected