public DicomFieldAttribute(uint tag) { _tag = DicomTagDictionary.GetDicomTag(tag); if (_tag == null) { _tag = new DicomTag(tag, "Unknown Tag", "UnknownTag", DicomVr.UNvr, false, 1, uint.MaxValue, false); } _default = DicomFieldDefault.None; _defltOnZL = false; _createEmpty = false; }
/// <summary> /// Contructor from a <see cref="DicomCompressedPixelData"/> instance. /// </summary> /// <param name="compressedPixelData"></param> public DicomUncompressedPixelData(DicomCompressedPixelData compressedPixelData) : base(compressedPixelData) { if (BitsAllocated > 8) { _pd = new DicomElementOw(DicomTags.PixelData); } else { var pdTag = DicomTagDictionary.GetDicomTag(DicomTags.PixelData); var obTag = new DicomTag(DicomTags.PixelData, pdTag.Name, pdTag.VariableName, DicomVr.OBvr, pdTag.MultiVR, pdTag.VMLow, pdTag.VMHigh, pdTag.Retired); _pd = new DicomElementOb(obTag); } InitializeFrameData(this, _pd); }
/// <summary> /// Internal constructor when a uint representation of the tag is used to identify the tag being added. /// </summary> /// <param name="tag">The DICOM tag associated with the element being created.</param> internal DicomElement(uint tag) { Tag = DicomTagDictionary.GetDicomTag(tag); }