Summary of what happened:
Hi everyone,
I’m working with patients who have meningiomas and gliomas. I want to normalize my MRIs and the manually binary drawn lesion masks (in patient space) to the MNI space. So, I have two files: the patient’s T1-weighted MRI and a binary lesion mask (lesion vs healthy tissue). Before normalization, I want to perform lesion filling with FSL, since the normalization is quite poor without this step due to the size of the brain tumors and the distortion that they cause. I’m using the lesion filling fsl command. I checked the FSL info for both the T1 MRI and the binary mask, and they have the same parameters. However, I still get the following error:
Image Exception : #4 :: Incompatible number of valid voxels and matrix columns in setmatrix()
libc++abi: terminating due to uncaught exception of type std::runtime_error: Incompatible number of valid voxels and matrix columns in setmatrix()
Does anyone know what could be causing this error?
Thanks a lot for your help,
Sara
Command used (and if a helper script was used, a link to the helper script or the command generated):
lesion_filling -i MRISubject.nii -l BinaryMask.nii -o LesionFilledImage.nii
fslinfo
Version:
FSL 6.0.7.18
Relevant log outputs (up to 20 lines):
data_type INT16
dim1 252
dim2 512
dim3 512
dim4 1
datatype 4
pixdim1 0.699999
pixdim2 0.500000
pixdim3 0.500000
pixdim4 0.000000
cal_max 0.000000
cal_min 0.000000
file_type NIFTI-1+
Image Exception : #4 :: Incompatible number of valid voxels and matrix columns in setmatrix()
libc++abi: terminating due to uncaught exception of type std::runtime_error: Incompatible number of valid voxels and matrix columns in setmatrix()