-
Notifications
You must be signed in to change notification settings - Fork 34
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
Allow annotations to reference multiple images #193
Conversation
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.
I have not read the relevant parts of the standard in detail, but this seems potentially too lax and allow the creation of objects whose meaning is ambiguous. In the case where multiple images are passed, in which image's coordinate system are the annotation graphic data defined? Should there not be a check that the different images have the same frame of reference UID (for SCOORD3D) and/or number of rows and columns (for SCOORD)?
That's a good idea. I realized that we will need to differentiate between the Referenced Image Sequence (Microscopy Bulk Simple Annotations Module) and Referenced Instance Sequence (Common Instance Reference Module). At the moment, we are including a reference for each of the In my opinion, the design of the Microscopy Bulk Simple Annotations Module is flawed for the use of 2D annotation coordinate type (SCOORD), where coordinates are defined relative to the total pixel matrix of an individual SOP instance, because the assumption that a group of annotations applies to a single image instance may not hold - in particular if measurements are included. For example, objects may be detected in one image and the coordinates will be recorded relative to that image, but then measurements may subsequently be taken from a different image, which will have a different SOP Instance UID but the same Frame of Reference UID. Therefore, I only use 3D annotation coordinate type, where coordinates are defined relative to the frame of reference. In conclusion, I think we should apply different checks for different annotation coordinate type values. I will update the PR accordingly. |
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.
Looks good, just one tiny suggestion
Co-authored-by: Chris Bridge <chrisbridge44@googlemail.com>
An annotations object may contain multiple measurements, which may have been derived from different images. Therefore, it is important to allow reference of multiple (multi-frame) image instances.