diff --git a/src/conform.c b/src/conform.c index 49da7e3..37ea853 100644 --- a/src/conform.c +++ b/src/conform.c @@ -230,7 +230,8 @@ int conform_core(nifti_image *nim, const int outDims[3], const float outPixDims[ if (nVol != 1) return 1; //normalize voxel brightness 0..255 - voxelIntensityScale(nim, f_high); + if (f_high > 0.0) + voxelIntensityScale(nim, f_high); //estimate spatial transform const int inDims[3] = {(int)nim->nx, (int)nim->ny, (int)nim->nz}; mat44 in_affine = f642f32mat44(&nim->sto_xyz); diff --git a/src/niimath.c b/src/niimath.c index 81c2793..0cb81e8 100644 --- a/src/niimath.c +++ b/src/niimath.c @@ -61,7 +61,7 @@ #define kOS "Windows" #endif -#define kMTHdate "v1.0.20240908" +#define kMTHdate "v1.0.20240911" #define kMTHvers kMTHdate kOMPsuf kCCsuf #ifdef NII2MESH