Mercurial > hg > orthanc-stone
comparison Framework/Loaders/SeriesFramesLoader.cpp @ 1311:3d26447ddd28 broker
warning fixes + doc + indentation + header files in cmake for VC++ sln browsing
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 09 Mar 2020 14:55:22 +0100 |
parents | 1f877e0846fe |
children | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1310:9bea7e15b519 | 1311:3d26447ddd28 |
---|---|
168 Orthanc::ParsedDicomFile& dicom) | 168 Orthanc::ParsedDicomFile& dicom) |
169 { | 169 { |
170 size_t frameIndex = frames_.GetFrameIndex(payload.GetSeriesIndex()); | 170 size_t frameIndex = frames_.GetFrameIndex(payload.GetSeriesIndex()); |
171 | 171 |
172 std::unique_ptr<Orthanc::ImageAccessor> decoded; | 172 std::unique_ptr<Orthanc::ImageAccessor> decoded; |
173 decoded.reset(Orthanc::DicomImageDecoder::Decode(dicom, frameIndex)); | 173 decoded.reset(Orthanc::DicomImageDecoder::Decode( |
174 dicom, | |
175 static_cast<unsigned int>(frameIndex))); | |
174 | 176 |
175 if (decoded.get() == NULL) | 177 if (decoded.get() == NULL) |
176 { | 178 { |
177 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); | 179 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer); |
178 } | 180 } |