| 62 | |
| 63 | |
| 64 | double mitk::GetCESTB1Amplitude(const IPropertyProvider* provider) |
| 65 | { |
| 66 | if (!provider) |
| 67 | { |
| 68 | mitkThrow() << "Cannot determine B! amplitude. Passed property provider is invalid."; |
| 69 | } |
| 70 | |
| 71 | double result = 0.0; |
| 72 | |
| 73 | auto prop = provider->GetConstProperty(CEST_PROPERTY_NAME_B1Amplitude().c_str()); |
| 74 | if (prop.IsNotNull()) |
| 75 | { |
| 76 | result = mitk::ConvertDICOMStrToValue<double>(prop->GetValueAsString()); |
| 77 | } |
| 78 | else mitkThrow() << "Cannot determine B! amplitude. Selected input has no property \"" << CEST_PROPERTY_NAME_B1Amplitude() << "\""; |
| 79 | |
| 80 | return result; |
| 81 | } |
| 82 | |
| 83 | double mitk::GetCESTFrequency(const IPropertyProvider* provider) |
| 84 | { |
nothing calls this directly
no test coverage detected