You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't really want it in that notebook, so I'll move it here, close the issue and point that notebook to here.
Cropping with SIRF <= v2.1.0
zoom_image and move_to_scanner_centre didn't exist prior to SIRF v2.1.0. If your version is older, you can use the STIR executable and a bit of bash. To be able to use stir executables, make sure they're enabled. This is system dependent, but might look something like this:
cd ~/devel/buildVM
cmake . -DSTIR_BUILD_EXECUTABLES:BOOL=ON
make
Now you should be able to replace:
im = im.zoom_image(size=(-1,150,150),offset_in_mm=(0,25,25))
im = im.move_to_scanner_centre(templ_sino)
im.write(fname + "_small.hv")
return im
The following was in this notebook as a workaround for older versions of SIRF: https://github.com/SyneRBI/SIRF-Exercises/blob/master/notebooks/Synergistic/BrainWeb.ipynb
I don't really want it in that notebook, so I'll move it here, close the issue and point that notebook to here.
Cropping with SIRF <= v2.1.0
zoom_image
andmove_to_scanner_centre
didn't exist prior to SIRF v2.1.0. If your version is older, you can use the STIR executable and a bit of bash. To be able to use stir executables, make sure they're enabled. This is system dependent, but might look something like this:Now you should be able to replace:
with:
You'll have to do something similar when it comes to misalignment. You'll have to switch the following:
with the following:
sed
is system dependent, so I give no promise that this will work. But give it a go if necessary!The text was updated successfully, but these errors were encountered: