Skip to content
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

regionprops multichannel measurements don't work for extra_properties #5324

Closed
VolkerH opened this issue Apr 9, 2021 · 0 comments · Fixed by #5329
Closed

regionprops multichannel measurements don't work for extra_properties #5324

VolkerH opened this issue Apr 9, 2021 · 0 comments · Fixed by #5329

Comments

@VolkerH
Copy link
Contributor

VolkerH commented Apr 9, 2021

Description

regionprops measurments have been supporting multi-channel intensity images as of recently.
However, when combined with extra_properties-functions that also rely on intensity the extra_properties only appear to be dispatched for one channel (at least the result is not multi-channel).

Way to reproduce

Call regionprops with a multi-channel intensity_image and an extra_properties-function that relies on intensity.
Observe the result.
(will fill in more detail if needed, a bit in a rush atm).

Version information

3.8.5 (default, Sep  4 2020, 07:30:14) 
[GCC 7.3.0]
Linux-5.8.0-48-generic-x86_64-with-glibc2.10
scikit-image version: 0.18.1
numpy version: 1.18.1
grlee77 pushed a commit that referenced this issue Apr 13, 2021
…5329)

* fix multichannel intensity_image extra_properties in regionprops

* added an extra_property to test_multichannel

* formatting to fix line length

Co-authored-by: Volker Hilsenstein <volker.hilsenstein@embl.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant