ANTsX / ANTsR

R interface to the ANTs biomedical image processing library
https://antsx.github.io/ANTsR
Apache License 2.0
127 stars 35 forks source link

ANTsR::abpN4 default mask = NULL arg causes errors #290

Closed pkimes closed 4 years ago

pkimes commented 4 years ago

The default mask = NULL argument for ANTsR::abpN4 causes an error. The underlying ANTsRCore::n4BiasFieldCorrection function expects the mask parameter to either be missing (the default) or an antsImage object. The default NULL leads to an error.

Since the mask arg is just passed to the underlying ANTsRCore::n4BiasFieldCorrection function without being used elsewhere, can it just be dropped from the ANTsR::abpN4 signature? (Users can just specify in ... if they want.)

pkimes commented 4 years ago

actually, just realized this is fixed in the GitHub version of the package. I must be using something out of date.