| 108 | } |
| 109 | |
| 110 | double mitk::GetCESTPulseDuration(const IPropertyProvider* provider) |
| 111 | { |
| 112 | if (!provider) |
| 113 | { |
| 114 | mitkThrow() << "Cannot determine pulse duration. Passed property provider is invalid."; |
| 115 | } |
| 116 | |
| 117 | double result = 0.0; |
| 118 | |
| 119 | auto prop = provider->GetConstProperty(CEST_PROPERTY_NAME_PULSEDURATION().c_str()); |
| 120 | if (prop.IsNotNull()) |
| 121 | { |
| 122 | result = mitk::ConvertDICOMStrToValue<double>(prop->GetValueAsString()) * 0.000001; |
| 123 | } |
| 124 | else mitkThrow() << "Cannot determine pulse duration. Selected input has no property \"" << CEST_PROPERTY_NAME_PULSEDURATION() << "\""; |
| 125 | |
| 126 | return result; |
| 127 | } |
| 128 | |
| 129 | double mitk::GetCESTDutyCycle(const IPropertyProvider* provider) |
| 130 | { |
nothing calls this directly
no test coverage detected