Skip to content

Commit

Permalink
Merge pull request #486 from michaelonken/fix_issue_473_asymmetric_pi…
Browse files Browse the repository at this point in the history
…xel_spacing

Fix order of pixel spacing converting ITK->DICOM.
  • Loading branch information
fedorov authored Dec 18, 2023
2 parents a7cb0f7 + d679c2c commit ad0e09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsrc/Itk2DicomConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace dcmqi {

ShortImageType::SpacingType labelSpacing = segmentations[0]->GetSpacing();
ostringstream spacingSStream;
spacingSStream << scientific << labelSpacing[0] << "\\" << labelSpacing[1];
spacingSStream << scientific << labelSpacing[1] << "\\" << labelSpacing[0];
CHECK_COND(pixmsr->setPixelSpacing(spacingSStream.str().c_str()));

spacingSStream.clear(); spacingSStream.str("");
Expand Down

0 comments on commit ad0e09f

Please sign in to comment.