ck-preprocess/zz/greedy-test.py

42 lines
No EOL
1.3 KiB
Python

'''
conda deactivate
conda create -y -n greedy -c conda-forge python
conda activate greedy
cmake -DCMAKE_INSTALL_PREFIX=/home/xfr/.conda/envs/greedy ..
greedy -d 3 -i \
"/mnt/1218/Public/dataset2/M6/ZYRGTRKJ/20230728/CT/1.1_CyberKnife_head(MAR)_20230728111920_3.nii.gz" \
"/mnt/1218/Public/dataset2/M6/ZYRGTRKJ/20230728/MR/3D_SAG_T1_MPRAGE_+C_MPR_Tra_20230728143005_14.nii.gz" \
-o test \
-m MI \
time greedy -d 3 -a \
-m MI \
-i \
"/mnt/1218/Public/dataset2/M6/ZYRGTRKJ/20230728/CT/1.1_CyberKnife_head(MAR)_20230728111920_3.nii.gz" \
"/mnt/1218/Public/dataset2/M6/ZYRGTRKJ/20230728/MR/3D_SAG_T1_MPRAGE_+C_MPR_Tra_20230728143005_14.nii.gz" \
-o affine.mat \
-dof 6 \
-ia-image-centers -n 100x50x10
time greedy -d 3 \
-m MI \
-i \
"/mnt/1218/Public/dataset2/M6/ZYRGTRKJ/20230728/CT/1.1_CyberKnife_head(MAR)_20230728111920_3.nii.gz" \
"/mnt/1218/Public/dataset2/M6/ZYRGTRKJ/20230728/MR/3D_SAG_T1_MPRAGE_+C_MPR_Tra_20230728143005_14.nii.gz" \
-it affine.mat \
-o warp.nii.gz \
-oinv inverse_warp.nii.gz \
-sv -n 100x50x10
greedy -d 3 \
-rf "/mnt/1218/Public/dataset2/M6/ZYRGTRKJ/20230728/CT/1.1_CyberKnife_head(MAR)_20230728111920_3.nii.gz" \
-rm "/mnt/1218/Public/dataset2/M6/ZYRGTRKJ/20230728/MR/3D_SAG_T1_MPRAGE_+C_MPR_Tra_20230728143005_14.nii.gz" resliced.nii.gz \
-r warp.nii.gz affine.mat
'''