open-discussion > How to convert multiple nifti files to jpg using med2image?
Showing 1-4 of 4 posts
Nov 2, 2021 01:11 PM | tomoki kaneko
How to convert multiple nifti files to jpg using med2image?
Hello everyone
I hope you are doing well.
I want to convert multiple nifti files in a folder (i.e /home/doc/nifti/ 001.nii, 002.nii, ...) to jpg using med2image.
We could convert one nifti file to jpg files, but I couldn't find any technical phrases to solve above issue. If someone know how to convert the multiple nifti files, could you please tell me.
I hope you are doing well.
I want to convert multiple nifti files in a folder (i.e /home/doc/nifti/ 001.nii, 002.nii, ...) to jpg using med2image.
We could convert one nifti file to jpg files, but I couldn't find any technical phrases to solve above issue. If someone know how to convert the multiple nifti files, could you please tell me.
Nov 2, 2021 02:11 PM | Kiyotaka Nemoto
How to convert multiplenifti files to jpg using med2image?
Dear Tomoki,
The command below might do the trick for you.
for f in *.nii*; do mkdir -p jpg/${f}_jpg; med2image -i $f -d jpg/${f}_jpg;
done
The command below might do the trick for you.
for f in *.nii*; do mkdir -p jpg/${f}_jpg; med2image -i $f -d jpg/${f}_jpg;
done
Nov 2, 2021 02:11 PM | Sheng-Yao Huang
RE: How to convert multiple nifti files to jpg using med2image?
Originally posted by tomoki kaneko:
I writed some codes to solve your question.
Maybe you can ty it.
The Best of luck.
Vic
Hello everyone
I hope you are doing well.
I want to convert multiple nifti files in a folder (i.e /home/doc/nifti/ 001.nii, 002.nii, ...) to jpg using med2image.
We could convert one nifti file to jpg files, but I couldn't find any technical phrases to solve above issue. If someone know how to convert the multiple nifti files, could you please tell me.
Hi tomoki,I hope you are doing well.
I want to convert multiple nifti files in a folder (i.e /home/doc/nifti/ 001.nii, 002.nii, ...) to jpg using med2image.
We could convert one nifti file to jpg files, but I couldn't find any technical phrases to solve above issue. If someone know how to convert the multiple nifti files, could you please tell me.
I writed some codes to solve your question.
Maybe you can ty it.
The Best of luck.
Vic
Nov 3, 2021 07:11 AM | tomoki kaneko
RE: How to convert multiple nifti files to jpg using med2image?
Thanks for everyone.
We got two valuable suggestions.
If we failed to solve the problem, we might ask you some questions. In case of that, we would appreciate you if you could support us.
Sincerely,
We got two valuable suggestions.
If we failed to solve the problem, we might ask you some questions. In case of that, we would appreciate you if you could support us.
Sincerely,