Skip to content

Commit 2fc09df

Browse files
committed
interpolation
1 parent 14fbefb commit 2fc09df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

console/nii_dicom_batch.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6476,6 +6476,9 @@ int nii_saveNII3Deq(char *niiFilename, struct nifti_1_header hdr, unsigned char
64766476
float *out32 = (float *)out8;
64776477
short *out16 = (short *)out8;
64786478
int isSeg = d.modality == kMODALITY_SEG;
6479+
#ifdef myForceNearestNeighborEq
6480+
isSeg = true;
6481+
#endif
64796482
for (int s = 0; s < outSlices; s++) {
64806483
float out_mm = s * mn;
64816484
// Find the closest two input slices

0 commit comments

Comments
 (0)