comparison Applications/Samples/Sdl/SingleFrameViewer/SdlSimpleViewerApplication.h @ 1822:0489fe25ce48

support of pixel spacing in ultrasound images from tag SequenceOfUltrasoundRegions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 May 2021 18:13:35 +0200
parents 36430d73e36c
children 3889ae96d2e9
comparison
equal deleted inserted replaced
1821:36430d73e36c 1822:0489fe25ce48
154 /** 154 /**
155 * TODO - Ultrasound (US) images store an equivalent to 155 * TODO - Ultrasound (US) images store an equivalent to
156 * "PixelSpacing" in the "SequenceOfUltrasoundRegions" 156 * "PixelSpacing" in the "SequenceOfUltrasoundRegions"
157 * (0018,6011) sequence, cf. tags "PhysicalDeltaX" (0018,602c) 157 * (0018,6011) sequence, cf. tags "PhysicalDeltaX" (0018,602c)
158 * and "PhysicalDeltaY" (0018,602e) => This would require 158 * and "PhysicalDeltaY" (0018,602e) => This would require
159 * storing the full JSON into the "LoadedDicomResources" class 159 * parsing "message.GetResources()->GetSourceJson(0)"
160 * or to use DCMTK 160 * => cf. "DicomInstanceParameters::EnrichUsingDicomWeb()"
161 **/ 161 **/
162
163 // std::cout << message.GetResources()->GetSourceJson(0).toStyledString();
162 164
163 LOG(INFO) << "Using millimeters units, as the DICOM instance contains the PixelSpacing tag"; 165 LOG(INFO) << "Using millimeters units, as the DICOM instance contains the PixelSpacing tag";
164 units_ = OrthancStone::Units_Millimeters; 166 units_ = OrthancStone::Units_Millimeters;
165 } 167 }
166 else 168 else