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

Compute plane positions more efficiently for TILED_FULL dimension organization #191

Merged
merged 1 commit into from
Jul 23, 2022

Conversation

hackermd
Copy link
Collaborator

If the Dimension Organization is TILED_FULL, the position of frames in a multi-frame image needs to be computed. The current implementation of the compute_plane_position_slide_per_frame() function performs this computation in an inefficient manner by calling compute_plane_position_tiled_full() for each frame, which internally constructs a PixelToReferenceTransformer object for every invocation. This PR improves the performance of the computation by constructing a PixelToReferenceTransformer object once and then re-using the object repeatedly. I tested this on a larger VL Whole Slide Microscopy Image instance and was able to speed up the computation from 2.38 seconds to 1.65 seconds.

@hackermd hackermd added the enhancement New feature or request label Jul 23, 2022
@hackermd hackermd self-assigned this Jul 23, 2022
Copy link
Collaborator

@CPBridge CPBridge left a comment

Choose a reason for hiding this comment

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

Looks good

@hackermd hackermd merged commit d9c66bb into master Jul 23, 2022
@hackermd hackermd deleted the enhancement/compute-plane-positions-efficiently branch July 23, 2022 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants