Skip to content

Commit 86e45e3

Browse files
committed
Handle XA50 cine images (#947)
1 parent e8509d6 commit 86e45e3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

console/nii_dicom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extern "C" {
5757
#define kCPUsuf " " // unknown CPU
5858
#endif
5959

60-
#define kDCMdate "v1.0.20250606"
60+
#define kDCMdate "v1.0.20250626"
6161
#define kDCMvers kDCMdate " " kJP2suf kTurbosuf kLSsuf kCCsuf kCPUsuf
6262

6363
static const int kMaxEPI3D = 1024; // maximum number of EPI images in Siemens Mosaic

console/nii_dicom_batch.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3932,7 +3932,8 @@ int nii_createFilename(struct TDICOMdata dcm, char *niiFilename, struct TDCMopts
39323932
strcat(outname, "NA");
39333933
}
39343934
if (f == 'W') { // Weird includes personal data in filename patientWeight
3935-
snprintf(newstr, PATH_MAX, "dob%sg%cwt%d", dcm.patientBirthDate, dcm.patientSex, (int)round(dcm.patientWeight));
3935+
printf("polo %s\n", dcm.bodyPartExamined);
3936+
snprintf(newstr, PATH_MAX, "part%sdob%sg%cwt%d", dcm.bodyPartExamined, dcm.patientBirthDate, dcm.patientSex, (int)round(dcm.patientWeight));
39363937
if (strstr(dcm.institutionName, "Richland"))
39373938
strcat(newstr, "R");
39383939
strcat(outname, newstr);
@@ -10006,7 +10007,7 @@ int nii_loadDirCore(char *indir, struct TDCMopts *opts) {
1000610007
if (opts->isIgnoreSeriesInstanceUID)
1000710008
dcmList[i].seriesUidCrc = dcmList[i].seriesNum;
1000810009
// if (!dcmList[i].isValid) printf(">>>>Not a valid DICOM %s\n", nameList.str[i]);
10009-
if ((dcmList[i].isValid) && ((dti4D->sliceOrder[0] >= 0) || (dcmList[i].CSA.numDti > 1))) { // 4D dataset: dti4D arrays require huge amounts of RAM - write this immediately
10010+
if ((dcmList[i].isValid) && ((dcmList[i].xyzDim[4] > 1) || (dti4D->sliceOrder[0] >= 0) || (dcmList[i].CSA.numDti > 1))) { // 4D dataset: dti4D arrays require huge amounts of RAM - write this immediately
1001010011
struct TDCMsort dcmSort[1];
1001110012
fillTDCMsort(dcmSort[0], i, dcmList[i]);
1001210013
dcmList[i].converted2NII = 1;

0 commit comments

Comments
 (0)