Skip to content

Conversation

ritvikvasan
Copy link
Collaborator

Adding percentile calculation to the preprocessing/normalization function

@ziw-liu
Copy link
Collaborator

ziw-liu commented Oct 2, 2025

Related: #274

:return dict meta_row: Dict with intensity data for image
"""
p5 = float(np.nanpercentile(sample_values, 5))
p95 = float(np.nanpercentile(sample_values, 95))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably compute q=[1, 5, 25, 50, 75, 95, 99] in one percentile (sorting) call here and derive the median and iqr too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once this is added, I think the PR is good to go

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.

3 participants