Skip to content

Conversation

@whistler
Copy link
Contributor

  • Add DICOMObjectAnnotation and GroupKey enum to support annotation import using Python objects.
  • Update NDJsonConverter to serialize/deserialize DICOMObjectAnnotation to/from the NDJson format.

Note: coco tests did not cleanup files written to directory which resulted in only the first execution of these tests working the and subsequent ones failing. These have been updated to cleanup temporary files.

Copy link
Contributor

@vbrodsky vbrodsky left a comment

Choose a reason for hiding this comment

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

minor comments and questions

>>> ]),
>>> segment_index=0,
>>> keyframe=True,
>>> Group_key=GroupKey.AXIAL
Copy link
Contributor

Choose a reason for hiding this comment

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

if you want to be really precise here, add confidence too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

VideoObjectAnnotation uses the ConfidenceNotSupportedMixin, so I assume confidence is not supported for this yet.

data: Union[VideoData, ImageData, TextData, TiledImageData]
annotations: List[Union[ClassificationAnnotation, ObjectAnnotation,
VideoObjectAnnotation,
DICOMObjectAnnotation, VideoObjectAnnotation,
Copy link
Contributor

Choose a reason for hiding this comment

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

here is my question: for some cases, a type here is a base class, like ObjectAnnotation and I think derived classes are going in, am I right? But now you are adding DICOMObjectAnnotation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I just added DICOMObjectAnnotation for completeness since I saw other video annotation types listed there. But I think just the base classes are enough, so I've removed all Video/DICOM subclasses from here.

@whistler whistler force-pushed the imuhammad/AL-5108-dicom-polyline branch from d40412f to 13509f2 Compare March 17, 2023 17:25
@whistler whistler force-pushed the imuhammad/AL-5108-dicom-polyline branch from 13509f2 to 93b169d Compare March 17, 2023 17:58
@whistler whistler merged commit 422dd6d into develop Mar 17, 2023
@whistler whistler deleted the imuhammad/AL-5108-dicom-polyline branch March 17, 2023 18:13
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.

3 participants