Adding spacing
to extra_properties
's possible arguments in regionprops
#7404
Labels
spacing
to extra_properties
's possible arguments in regionprops
#7404
Description:
Hi, first thank you for this package, which I have used extensively this last decade.
Would it be possible to allow extra arguments to functions passed to regionprops'
extra_properties
?Right now, these functions can have one argument (the binary
prop.image
) or two (prop.image_intensity
if available). But passingspacing
would be extremely useful.In the current implementation, the number of arguments is checked with
argspec = inspect.getfullargspec(func); n_args = len(argspec.args)
, which could probably give informations about the name of the arguments.If the user is expected to give specific names to their functions' arguments, e.g
the arguments names should be parsable and the appropriate parameters could theoretically be passed.
The text was updated successfully, but these errors were encountered: