ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
592 stars 160 forks source link

mask default in n4_bias_field_correction #559

Closed ntustison closed 4 months ago

ntustison commented 4 months ago

Just discovered this

    if mask is None:
        mask = get_mask(image)

which we should probably change it to match the command line version, i.e.., something like

    if mask is None:
        mask = image * 0 + 1

Does anybody have any issues with this proposed change?