-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perf] Improve spot finding in estimate_grid_orientation_from_img (#2987
) * [perf] Improve spot finding when distance between spots >> spot size Improved spot finding and grid fitting accuracy in `estimate_grid_orientation_from_img` and `find_spot_positions` by: - Using a configurable minimum distance between spots during local maxima finding. This addresses issues when the intensity difference between spots is high and single bright spots could be detected twice, while less bright spots were not detected. - Splitting `min_distance` and `len_object` parameters in `peak_local_max` and `find_spot_positions` to refine spot size calculation and edge exclusion relative to minimum spot distance. * Update after PR review - Add pitch to simulator microscope file - added comment to explain factor 0.75 - added pitch as an input argument to the spot-grid.py script, if not provided it will try to use the detector metadata - Update the lens magnification in the simulated yaml file to match the hardware, this ensures the spot-grid script finds the right spots for the pitch matching the pitch on the hardware * [refactor] Update after PR comments - make DEFAULT_PITCH a constant in fastem.py to have a single source of truth - clean up spot-grid.py
- Loading branch information
Showing
8 changed files
with
117 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters