Dear Experts,
I encountered unexpected behavior with the -divide command in c3d. As per the documentation, this command should perform element-wise division of two images. However, when dividing Inphase.nii by opposite_phase.nii using:
Inphase.nii opposite_phase.nii -divide -o ratio.nii
The resulting ratio.nii values correspond to opposite_phase.nii / Inphase.nii rather than the expected Inphase.nii / opposite_phase.nii.
I reviewed the c3d manual, which confirms the command should perform division as expected. To reproduce:
I’ve attached the images for your reference.
Best regards,
Mohammad