Closed camisowers closed 11 months ago
I looked at the
frangi
implementation inskimage.filters.ridges
and it looks like one of the key differences is in the handling of thegamma
parameter. In 0.19.3, it's automatically set to 15, whereas in >=0.20.0, it's dynamically computed based on the eigenvalues by default. Maybe as a step 0 try manually setting thegamma
param to 15 and see how that turns out?
Sorry I added this comment to the issue, but not the PR description: I was able to get something comparable to the previous implementation by tweaking a few parameters (gamma for one, and also the fiber widths). It's much better than the current version but still not as good as using scikit-learn v0.19.3. I can further look into adjusting the code with v0.21 at the end of the month, but in the interim we should pin it.
Does it need to be exactly this version, or just less than or equal?
Less than or equal should be fine.
If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Closes #1055. Improves fiber segmentation results by pinning scikit-image to an older version.
How did you implement your changes
Update pyproject.toml.
Remaining issues
Short term solution. Should be looked into for a more permanent fix in the future.