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
Is your feature request related to a problem? Please describe.
build_template produces an atlas that is blurry in regions that are not always fully in the field-of-view. See the attached screenshot.
I believe the reason is partly because the mean image is not normalized correctly in these regions.
Describe the solution you'd like
I would propose to calculate the sum of the transformed weight images. The mean image can then be normalized using this weight image.
the inner for loop could could be modified like this
Note I introduced a ones_like helper, to make this modification more readable.
Describe alternatives you've considered
Re-implement the build_template function in my own code.
Additional context
using the current implementation:
with re-normalization using the code above. While the image is still blurry (because registration is less accurate near the boundary), the brightness stays more homogeneous:
The text was updated successfully, but these errors were encountered:
dyollb
changed the title
build_template is blury in regions that are not always fully in field of view.
build_template is darked in regions that are not always fully in field of view.
Nov 11, 2024
dyollb
changed the title
build_template is darked in regions that are not always fully in field of view.
build_template is darker in regions that are not always fully in field of view.
Nov 13, 2024
Is your feature request related to a problem? Please describe.
build_template produces an atlas that is blurry in regions that are not always fully in the field-of-view. See the attached screenshot.
I believe the reason is partly because the mean image is not normalized correctly in these regions.
Describe the solution you'd like
I would propose to calculate the sum of the transformed weight images. The mean image can then be normalized using this weight image.
the inner for loop could could be modified like this
Note I introduced a
ones_like
helper, to make this modification more readable.Describe alternatives you've considered
Re-implement the build_template function in my own code.
Additional context
using the current implementation:
with re-normalization using the code above. While the image is still blurry (because registration is less accurate near the boundary), the brightness stays more homogeneous:
The text was updated successfully, but these errors were encountered: