/// <summary> /// Creates the PixelMeasuresSequence in the underlying collection. Type 1. /// </summary> public PixelMeasuresSequenceItem CreatePixelMeasuresSequence() { var dicomAttribute = DicomAttributeProvider[DicomTags.PixelMeasuresSequence]; if (dicomAttribute.IsNull || dicomAttribute.IsEmpty) { var dicomSequenceItem = new DicomSequenceItem(); dicomAttribute.Values = new[] { dicomSequenceItem }; var sequenceType = new PixelMeasuresSequenceItem(dicomSequenceItem); return(sequenceType); } return(new PixelMeasuresSequenceItem(((DicomSequenceItem[])dicomAttribute.Values)[0])); }
/// <summary> /// Creates the PixelMeasuresSequence in the underlying collection. Type 1. /// </summary> public PixelMeasuresSequenceItem CreatePixelMeasuresSequence() { var dicomAttribute = DicomAttributeProvider[DicomTags.PixelMeasuresSequence]; if (dicomAttribute.IsNull || dicomAttribute.IsEmpty) { var dicomSequenceItem = new DicomSequenceItem(); dicomAttribute.Values = new[] {dicomSequenceItem}; var sequenceType = new PixelMeasuresSequenceItem(dicomSequenceItem); return sequenceType; } return new PixelMeasuresSequenceItem(((DicomSequenceItem[]) dicomAttribute.Values)[0]); }