Open sandrinebedard opened 3 years ago
UPDATE
I did not figure out how to convert the warping field in the ITK format to make it compatible with sct_image -display-warp
but, I figured out that fullWarp_abs.nii.gz
is a volume of coefficient, so to have the field, I ran :
fnirtfileutils -i fullWarp_abs.nii.gz -o field.nii.gz
And on ITK-SNAP, when clicking on multi-component display --> grid I get this:
Well, it is not as nice as the output of sct_image -display-warp
but, from what I observed, the grid is only in the axial view, I think having the sagittal view for the warping field may be better here, maybe we ca do something with that image instead.
@jcohenadad I may need your insights on this please š
So I think fullWarp_abs.nii.gz follows FSL convention and not ITK, it has only 4 dimensions.
yup! you figured this out. As you probably noticed we have a sct_image -to-fsl
feature, but no sct_image -to-itk
š¬
However, your investigation in https://github.com/sct-pipeline/ukbiobank-spinalcord-csa/issues/59#issuecomment-815437421 is excellent, and i think largely sufficient if the goal is simply to export a nice-looking image to illustrate gradient non-linearity correction in the pipeline figure of your article
However, your investigation in #59 (comment) is excellent, and i think largely sufficient if the goal is simply to export a nice-looking image to illustrate gradient non-linearity correction in the pipeline figure of your article
That's what I thought! thanks
Description
I wanted to apply
sct_image -i fullWarp_abs.nii.gz -display-warp
to the warping field (fullWarp_abs.nii.gz
) used for correction of gradient nonlinearities (gradient_unwarp.py). I got this error:I tested
sct_image -display-warp
with a warping field created withsct_register_multimodal
and everything worked. So I thinkfullWarp_abs.nii.gz
follows FSL convention and not ITK, it has only 4 dimensions.Maybe not worth the trouble for just displaying the grid with the warping field.
The file is in :
duke/temp/sebeda/data_warping_field/fullWarp_abs.nii.gz