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

Fix #1203. Eliminate use of data sampling to calculate complex display limits. #1265

Conversation

cmeyer
Copy link
Collaborator

@cmeyer cmeyer commented Nov 26, 2024

The sample size was 200 and in no way could be representative of an
arbitrary complex valued image displayed in log-absolute. This was probably
done for perceived performance; but modern processors make the performance
issue minimal. So do not sample; just use the full range until a good
general sampling solution is implemented.

…omplex display limits.

The sample size was 200 and in no way could be representative of an
arbitrary complex valued image displayed in log-absolute. This was probably
done for perceived performance; but modern processors make the performance
issue minimal. So do not sample; just use the full range until a good
general sampling solution is implemented.
@cmeyer cmeyer requested a review from Brow71189 November 26, 2024 01:36
Copy link
Collaborator

@Brow71189 Brow71189 left a comment

Choose a reason for hiding this comment

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

Generally this looks fine to me. The only issue I can see is that removing access to xdata from calculate_display_range will make it harder to implement more sophisticated algorithms for auto display range that don't just look at the data min and max.
But maybe we would just implement that in the DisplayRangeProcessor class anyway, in which is case it is not an issue.

@cmeyer
Copy link
Collaborator Author

cmeyer commented Nov 26, 2024

Yes, we can add that back when needed.

@cmeyer cmeyer merged commit b67e070 into nion-software:master Nov 26, 2024
11 checks passed
@cmeyer cmeyer deleted the fix-1203-eliminate-sampling-for-display-limits branch November 26, 2024 18:57
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.

2 participants