Currently, the highdicom.ann.AnnotationGroup class only provides the get_coordinates() method to get the coordinates of a single graphical annotation. This method decodes the binary graphic data every time it is called.
This PR adds a get_graphic_data() method to get the coordinates of all graphical annotations at once. In addition, it adds a mechanism to cache the decoded coordinates data and thereby speed subsequent calls to either get_graphic_data() or get_coordinates().
Currently, the
highdicom.ann.AnnotationGroup
class only provides theget_coordinates()
method to get the coordinates of a single graphical annotation. This method decodes the binary graphic data every time it is called.This PR adds a
get_graphic_data()
method to get the coordinates of all graphical annotations at once. In addition, it adds a mechanism to cache the decoded coordinates data and thereby speed subsequent calls to eitherget_graphic_data()
orget_coordinates()
.