If I understand it correctly, there is an assumption that is made that perhaps number of frames within a segmentation should be the same for all segments. If this is the case, it is not a correct assumption. As an example, it is valid to have a CT series with 200 slices, and a segmentation that has, say, 3 segments, where 1 segment has 3 frames, and the other two are defined in one frame each.
@Punzo any comments? I see those lines were added by you. No urgency with this of course - can discuss sometime after the holidays.
While debugging an issue with a SEG not being shown in OHIF Viewer, I came across this code:
https://github.com/dcmjs-org/dcmjs/blob/44850b3ac59fab774c841f5738ca1cc874d18eb8/src/adapters/Cornerstone/Segmentation_4X.js#L642-L656
If I understand it correctly, there is an assumption that is made that perhaps number of frames within a segmentation should be the same for all segments. If this is the case, it is not a correct assumption. As an example, it is valid to have a CT series with 200 slices, and a segmentation that has, say, 3 segments, where 1 segment has 3 frames, and the other two are defined in one frame each.
@Punzo any comments? I see those lines were added by you. No urgency with this of course - can discuss sometime after the holidays.