From b070c3d5a8b40b1b0bf3eb7ce02254acf021346c Mon Sep 17 00:00:00 2001 From: kradchen Date: Tue, 21 Nov 2023 14:02:13 +0800 Subject: [PATCH] Fix DICOM exportor bug --- src/common/DICOMExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/DICOMExporter.cpp b/src/common/DICOMExporter.cpp index 55aeef8..a884ef5 100644 --- a/src/common/DICOMExporter.cpp +++ b/src/common/DICOMExporter.cpp @@ -135,7 +135,7 @@ namespace Recon void DICOMExporter::exportDCM(string path, float * startPoint, float* endPoint, int* imageXYZ,float* data, int type) { - long Rows = imageXYZ[0], Cols = imageXYZ[1] ,Slices = imageXYZ[2]; + long Rows = imageXYZ[1], Cols = imageXYZ[0] ,Slices = imageXYZ[2]; DcmFileFormat dcmFile; DcmDataset* dataset = dcmFile.getDataset(); DcmMetaInfo* metaInfo = dcmFile.getMetaInfo();