-
Notifications
You must be signed in to change notification settings - Fork 3
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
DM-41956: Exclude diaObjects not contained in the image bounding box. #185
Conversation
9b619f2
to
9597d0b
Compare
Note: the original PR had the purged diaObjects in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks reasonable; can we add a test?
9597d0b
to
3fc67f6
Compare
Looking at this again, I'm wondering if this ticket is what we need after all.
The reason we load with a buffer though is because sometimes sources on the edge of the chip are going to need to match to a DiaObject with a centroid right outside the bbox. If we purge before associating we'll miss that match and artificially create a new diaObject. What is the problem that is created by the buffer diaObjects? As I trace the logic through diaPipe, they get included in association and passed to My proposal would be:
|
I'd like to push back on your proposal, because reducing I'm not very worried about missing associations to diaObjects, since this change only removes diaObjects that are outside of the image bounding box. We aren't able to detect sources or accurately make measurements all the way to the edge of the image, so that gives us a bit of a buffer. If you're worried about losing real associations with diaObjects just outside the image we could grow the bounding box by a few pixels without hurting speed very much. |
Good point about the preload. I do think we need a small buffer, though, or we will get miss-associated DiaSources even if most edge sources are not reliable. Your suggestion to grow the bbox by a small amount (roughly a PSF width or two?) seems reasonable. |
I've added the requested buffer as a config option. |
No description provided.