dcmjs
dcmjs copied to clipboard
Need Some Clue for Implement Adapter of Cornerstone Rectangle Annotation
I saw these implement hints from dcmjs/src/utilities/TID300/index.js. But I am not clear about those hint, could you explain more detail? Is that are the Hierarchy I need to implement in dcmjs/src/utilities/TID300/Rectangle.js like dcmjs/src/utilities/TID300/Ellipse.js do? I saw "Graphic Type: POLYLINE" and I wondering Rectangle.js should change Graphic Type to POLYLINE. But what is the meaning of following line? TID 1500 MeasurementReport --TID 1501 Measurement Group ---Measurement Group (DCM 125007) ----TID 300 Measurement https://github.com/dcmjs-org/dcmjs/blob/0e1e2921e953bde8f4707b025f584a6c558ffedd/src/utilities/TID300/index.js#L25-L35
The hint also mention about "This should be the same as a Freehand ROI, more or less." Is that mean I need to use src/adapters/Cornerstone/Freehand.js as my template for implement src/adapters/Cornerstone/Rectangle.js rather than src/adapters/Cornerstone/EllipticalRoi.js?
https://github.com/dcmjs-org/dcmjs/blob/0e1e2921e953bde8f4707b025f584a6c558ffedd/src/utilities/TID300/index.js#L37-L42
Originally posted by @jenhaoyang in https://github.com/dcmjs-org/dcmjs/issues/137#issuecomment-667048974