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

Feat/algorithm in statistics #726

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Conversation

vincentsarago
Copy link
Member

This PR adds thealgorithm options for /statistics endpoints

Internally we remove the usage of BaseReader.statistics() endpoint use the combination of BaseReader.preview() and ImageData.statistics() methods

# Before
from Reader(...) as src_dst:
    return src_dst.statistics(...)

# Now
from Reader(...) as src_dst:
    image = src_dst.preview(...)

    if post_process:
        image = post_process(image)

    return image.statistics(...)

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 this pull request may close these issues.

1 participant