-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different phase fraction on edges of blobs output #981
Comments
Not sure why this happens, probably the default 'reflect' mode of the scipy gaussian_filter, but a simple solution is creating something slightly larger and then crop the edges. |
I have been meaning to address this bug, but just always too busy. The guassian blur function that is used has a |
I played with this and even created a PR, but my solution did not work. Using |
I spent a bit of time on this and reached the following conclusions:
|
why not use 'wrap'? |
I was thinking that making the image periodic would not always be desired (though tbh I would prefer it). Also, it just bothers me that it's happening so I want to know why and how to fix it. |
I think the answer is that the np.std(im[:1]) This higher variation makes many of these pixels larger after all_to_uniform. I think the solution is making a slightly bigger volume and then crop the edges affected by the mirror/reflect. |
On the edges of blobs output, there is a higher phase fraction then the inside of the output.
Here you can see the phase fraction for every slice along the first dimension in a 500x500x500 blobs output with phase fraction 0.1:
The text was updated successfully, but these errors were encountered: