Skip to content

Commit a79b9fa

Browse files
committed
removing SPECT axis inversion
1 parent e51d5bd commit a79b9fa

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

recon_test_pack/SPECT/SPECTUB/run_SPECTUB_tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ for reconpar in FBP2D OSEM_2DPSF OSEM_3DPSF; do
118118
output_filename=${output_filename}_${num_subiterations}
119119
fi
120120
output_image=${output_filename}.hv
121-
invert_axis x ${output_image} ${output_image}
122121

123122
# horrible way to replace "out" with "org" (as we don't want to rely on bash)
124123
org_output_image=org`echo ${output_image}|cut -c 4-`

src/recon_buildblock/SPECTUB_Weight3d.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,7 @@ wm_calculation(const int kOS,
299299

300300
if (wm.do_save_STIR)
301301
{
302-
stir::InvertAxis invert;
303-
wm.nx[vox.iv] = (short int)invert.invert_axis_index(
304-
(vox.icol - (int)floor(vol.Ncold2)), vol.Ncold2 * 2, "x"); // centered index for STIR format
302+
wm.nx[vox.iv] = (short int)(vox.icol - (int)floor(vol.Ncold2)); // centered index for STIR format
305303
wm.ny[vox.iv] = (short int)(vox.irow - (int)floor(vol.Nrowd2)); // centered index for STIR format
306304
wm.nz[vox.iv] = (short int)vox.islc; // non-centered index for STIR format
307305
}

0 commit comments

Comments
 (0)