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

Function RequirePositive

Modules/PET/src/mitkSUVNormalizationStrategy.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

ComputeScaleNumeratorMethod · 0.85

Calls 1

RequireFiniteFunction · 0.85

Tested by

no test coverage detected