comparison OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp @ 1772:6c246f862b00

unit test VolumeRendering.Basic
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 May 2021 17:24:24 +0200
parents 5f74ebe2516b
children 385c268e8b56
comparison
equal deleted inserted replaced
1771:f302bbddf94d 1772:6c246f862b00
106 106
107 if (!dicom.HasTag(Orthanc::DICOM_TAG_ROWS) || 107 if (!dicom.HasTag(Orthanc::DICOM_TAG_ROWS) ||
108 !dicom.GetValue(Orthanc::DICOM_TAG_ROWS).ParseFirstUnsignedInteger(height_)) 108 !dicom.GetValue(Orthanc::DICOM_TAG_ROWS).ParseFirstUnsignedInteger(height_))
109 { 109 {
110 height_ = 0; 110 height_ = 0;
111 } 111 }
112 112
113 113
114 bool sliceThicknessPresent = true; 114 bool sliceThicknessPresent = true;
115 if (!dicom.ParseDouble(sliceThickness_, Orthanc::DICOM_TAG_SLICE_THICKNESS)) 115 if (!dicom.ParseDouble(sliceThickness_, Orthanc::DICOM_TAG_SLICE_THICKNESS))
116 { 116 {
117 LOG(INFO) << "The (non-madatory) slice thickness information is missing in a multiframe image"; 117 if (numberOfFrames_ > 1)
118 {
119 LOG(INFO) << "The (non-madatory) slice thickness information is missing in a multiframe image";
120 }
121
118 sliceThickness_ = 100.0 * std::numeric_limits<double>::epsilon(); 122 sliceThickness_ = 100.0 * std::numeric_limits<double>::epsilon();
119 sliceThicknessPresent = false; 123 sliceThicknessPresent = false;
120 } 124 }
121 125
122 GeometryToolbox::GetPixelSpacing(pixelSpacingX_, pixelSpacingY_, dicom); 126 GeometryToolbox::GetPixelSpacing(pixelSpacingX_, pixelSpacingY_, dicom);