From: Romulo Pinho Date: Wed, 16 Nov 2011 09:22:37 +0000 (+0100) Subject: change in midP script to create 4D warped image X-Git-Tag: v1.3.0~170^2^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c134c94;p=clitk.git change in midP script to create 4D warped image --- diff --git a/scripts/create_midP-2.0.sh b/scripts/create_midP-2.0.sh index 239745f..a422e4f 100755 --- a/scripts/create_midP-2.0.sh +++ b/scripts/create_midP-2.0.sh @@ -76,8 +76,14 @@ registration() registration_elastix $reference_out $target_out $mask_ref_out $mask_targ_out $vf_out $result_out $params $log_out fi - # combine in and out vf motion_mask=$mask_dir/mm_$phase_nb.mhd + + # combine in and out results + out_result=$output_dir/result_${ref_phase_nb}_$phase_nb.mhd + clitkCombineImage -i $result_in -j $result_out -m $motion_mask -o $out_result + abort_on_error registration $? clean_up_registration + + # combine in and out vf vf_result=$vf_dir/vf_${ref_phase_nb}_$phase_nb.mhd clitkCombineImage -i $vf_in -j $vf_out -m $motion_mask -o $vf_result abort_on_error registration $? clean_up_registration @@ -103,6 +109,10 @@ registration() # create 4D vf create_mhd_4D_pattern.sh $vf_dir/vf_${ref_phase_nb}_ + # create 4D result image + create_mhd_4D_pattern.sh $output_dir/result_inside_${ref_phase_nb}_ + create_mhd_4D_pattern.sh $output_dir/result_${ref_phase_nb}_ + echo echo "-------- Registration done ! --------" end=`date`