Overhaul the interface of the Cornerstone3D MeasurementReport adapter so that it is more natural and doesn't rely on extra knowledge of the system. The old interface you had to have some knowledge of the order of the annotations in the SR (i.e. you had to parse the SR before... parsing the SR) as there was an array of imageIds that are in an assumed order. Now you just pass in a map of sopInstanceUID to imageId.
Allow for annotations to be from multiple referenced series in one SR. The correct references are made so that we reference each series correctly, rather than having all measurements incorrectly reference the first series of the first measurement (this is only done for the Cornerstone3D adapter, but effort has been put in to ensure that the old Cornerstone adapter still works as it did).
Add read/write for Cornerstone3D annotations: planar freehand tool and probe tool.
In this PR I do multiple things:
MeasurementReport
adapter so that it is more natural and doesn't rely on extra knowledge of the system. The old interface you had to have some knowledge of the order of the annotations in the SR (i.e. you had to parse the SR before... parsing the SR) as there was an array of imageIds that are in an assumed order. Now you just pass in a map of sopInstanceUID to imageId.