comparison Framework/Toolbox/GeometryToolbox.cpp @ 363:54ae0577f5bb am-2

fix anisotropic pixel spacing
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 18:55:52 +0100
parents 5412adf19980
children b70e9be013e4
comparison
equal deleted inserted replaced
362:12cec26d08ce 363:54ae0577f5bb
258 LOG(ERROR) << "Bad value for PixelSpacing tag"; 258 LOG(ERROR) << "Bad value for PixelSpacing tag";
259 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat); 259 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat);
260 } 260 }
261 else 261 else
262 { 262 {
263 spacingX = v[0]; 263 // WARNING: X/Y are swapped (Y comes first)
264 spacingY = v[1]; 264 spacingX = v[1];
265 spacingY = v[0];
265 } 266 }
266 } 267 }
267 else 268 else
268 { 269 {
269 // The "PixelSpacing" is of type 1C: It could be absent, use 270 // The "PixelSpacing" is of type 1C: It could be absent, use