Closed CHrlS98 closed 3 months ago
Hello @CHrlS98, Thank you for updating !
There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:
There was a bug in the previous bilateral filter implementation, rendering test data unsuitable for testing the fixed script. I fixed the tests, they run locally. Here is the new test data: fodf_filtering.zip.
Attention: Patch coverage is 45.78313%
with 135 lines
in your changes are missing coverage. Please review.
Project coverage is 66.63%. Comparing base (
76b35de
) to head (a252b27
).
Quick description
This PR is a replacement for pull request #722 . Migrate code from https://github.com/CHrlS98/aodf-toolkit. Changes mostly apply to script
scil_sh_to_aodf.py
and replaces thebilateral
method by theunified
method implemented inaodf-toolkit
and described in https://doi.org/10.1016/j.neuroimage.2024.120516. I also added a 100% python implementation of the method which I plan to add in DIPY at some point.As you may know, opencl programs can not only run on GPU hardware, but also on CPU. So now there is an
--use_opencl
for using OpenCL as well as an option--device
allowing you to choose betweencpu
andgpu
. I don't know if it is the best way to do it as running on GPU requires that--use_opencl
and--device gpu
are manually set. By default the code will run on the CPU and won't use OpenCL.I also updated the
opencl_utils
module and modified theGPUTracker
to work with the new interface.Type of change
Check the relevant options.
Provide data, screenshots, command line to test (if relevant)
Checklist