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

The column 'orignal_label' in statistics_of_labeled_objects() appears always identical with column label #199

Open
haesleinhuepf opened this issue Aug 30, 2022 · 1 comment · May be fixed by #201

Comments

@haesleinhuepf
Copy link
Member

... can we remove it?

Example:

import pyclesperanto_prototype as cle

test_label_image = cle.asarray([
    [0, 1, 5, 6]
])

test_stats = cle.statistics_of_labelled_pixels(label_image=test_label_image)

print(test_stats["label"])
print(test_stats["original_label"])
[1 2 3 4 5 6]
[1 2 3 4 5 6]
@haesleinhuepf
Copy link
Member Author

ok ... this is not the case for statistics_of_background_and_labelled_pixels:

import pyclesperanto_prototype as cle

test_label_image = cle.asarray([
    [0, 1, 5, 6]
])

test_stats = cle.statistics_of_background_and_labelled_pixels(labelmap=test_label_image)

print(test_stats["label"])
print(test_stats["original_label"])
[1 2 3 4 5 6 7]
[0 1 2 3 4 5 6]

@haesleinhuepf haesleinhuepf linked a pull request Aug 31, 2022 that will close this issue
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