当前位置: 首页>>代码示例>>C#>>正文


C# Dicom.DicomAttribute类代码示例

本文整理汇总了C#中ClearCanvas.Dicom.DicomAttribute的典型用法代码示例。如果您正苦于以下问题:C# DicomAttribute类的具体用法?C# DicomAttribute怎么用?C# DicomAttribute使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DicomAttribute类属于ClearCanvas.Dicom命名空间,在下文中一共展示了DicomAttribute类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TryGetAttribute

		public override bool TryGetAttribute(DicomTag tag, out DicomAttribute attribute)
		{
			lock (SyncLock)
			{
				// the instance dataset should always override the prototype values from the sliceset
				return DataSet.TryGetAttribute(tag, out attribute) || Slice.TryGetAttribute(tag, out attribute);
			}
		}
开发者ID:jfphilbin,项目名称:ClearCanvas,代码行数:8,代码来源:VolumeSliceSopDataSource.cs

示例2: TryGetAttribute

        public override bool TryGetAttribute(DicomTag tag, out DicomAttribute attribute)
        {
            lock (SyncLock)
            {
                if (NeedFullHeader(tag.TagValue))
                    GetFullHeader();

                return base.TryGetAttribute(tag, out attribute);
            }
        }
开发者ID:nhannd,项目名称:Xian,代码行数:10,代码来源:ImageServerSopDataSource.cs

示例3: TryGetAttribute

		public bool TryGetAttribute(uint tag, out DicomAttribute attribute)
		{
			if (this[tag] == null)
			{
				attribute = null;
				return false;
			}
			attribute = this[tag];
			return true;
		}
开发者ID:nhannd,项目名称:Xian,代码行数:10,代码来源:ServerEntityAttributeProvider.cs

示例4: DicomEditorTag

        public DicomEditorTag(DicomAttribute attribute, DicomEditorTag parentTag, int nestingLevel)
        {
            _attribute = attribute;

            _group = _attribute.Tag.Group;
            _element = _attribute.Tag.Element;
            _tagName = _attribute.Tag.Name;            

            _parentTag = parentTag;
            _nestingLevel = nestingLevel;
            _postitionOrdinal = 0;
        }
开发者ID:nhannd,项目名称:Xian,代码行数:12,代码来源:DicomEditorTag.cs

示例5: TryGetAttribute

        public override bool TryGetAttribute(DicomTag tag, out DicomAttribute attribute)
        {
            lock (SyncLock)
            {
                if (_sop.IsStoredTag(tag))
                {
                    attribute = _sop[tag];
                    if (!attribute.IsEmpty)
                        return true;
                }

                return base.TryGetAttribute(tag, out attribute);
            }
        }
开发者ID:nhannd,项目名称:Xian,代码行数:14,代码来源:LocalStoreSopDataSource.cs

示例6: DicomUncompressedPixelData

		/// <summary>
		/// Contructor from a <see cref="DicomCompressedPixelData"/> instance.
		/// </summary>
		/// <param name="compressedPixelData"></param>
		public DicomUncompressedPixelData(DicomCompressedPixelData compressedPixelData)
			: base(compressedPixelData)
		{
			if (BitsAllocated > 8)
			{
				_pd = new DicomAttributeOW(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 DicomAttributeOB(obTag);
			}
			InitializeFrameData(this, _pd);
		}
开发者ID:jfphilbin,项目名称:ClearCanvas,代码行数:19,代码来源:DicomUncompressedPixelData.cs

示例7: TryGetAttribute

		public override bool TryGetAttribute(uint tag, out DicomAttribute attribute)
		{
			return _fusionHeaders.TryGetAttribute(tag, out attribute) || _realSopDataSource.TryGetAttribute(tag, out attribute);
		}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:4,代码来源:FusionSopDataSource.cs

示例8: SetTagCommand

 /// <summary>
 /// Creates an instance of <see cref="SetTagCommand"/> that can be used to update the specified dicom tag with the specified value
 /// </summary>
 /// <remarks>
 /// <see cref="BaseImageLevelUpdateCommand.File"/> must be set prior to <see cref="BaseImageLevelUpdateCommand.OnExecute"></see>
 /// </remarks>
 public SetTagCommand(DicomAttribute attribute, string newValue)
     : this(attribute.Tag.TagValue, String.Empty, newValue)
 {
 }
开发者ID:nhannd,项目名称:Xian,代码行数:10,代码来源:SetTagCommand.cs

示例9: TryGetAttribute

		public override bool TryGetAttribute(uint tag, out DicomAttribute attribute)
		{
			lock (base.SyncLock)
			{
				if (_volumeReference.Volume.DataSet.TryGetAttribute(tag, out attribute))
					return true;
				return _instanceDataSet.TryGetAttribute(tag, out attribute);
			}
		}
开发者ID:nhannd,项目名称:Xian,代码行数:9,代码来源:VolumeSliceSopDataSource.cs

示例10: TryGetAttribute

		public bool TryGetAttribute(DicomTag tag, out DicomAttribute attribute)
		{
			return TryGetAttribute(tag.TagValue, out attribute);
		}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:4,代码来源:ServerEntityAttributeProvider.cs

示例11: TryGetAttribute

		public bool TryGetAttribute(uint tag, out DicomAttribute attribute)
		{
			lock (_syncRoot)
			{
				return _collection.TryGetAttribute(tag, out attribute);
			}
		}
开发者ID:yjsyyyjszf,项目名称:ClearCanvas-1,代码行数:7,代码来源:VolumeHeaderData.cs

示例12:

		bool IDicomAttributeProvider.TryGetAttribute(uint dicomTag, out DicomAttribute dicomAttribute)
		{
			return _parentImageSop.TryGetFrameAttribute(_frameNumber, dicomTag, out dicomAttribute);
		}
开发者ID:yjsyyyjszf,项目名称:ClearCanvas-1,代码行数:4,代码来源:Frame.cs

示例13: TryGetAttribute

		/// <summary>
		/// Attempts to get the attribute specified by <paramref name="tag"/>.
		/// </summary>
		public override bool TryGetAttribute(uint tag, out DicomAttribute attribute)
		{
			lock (SyncLock)
			{
				Load();

				if (_sourceMessage.DataSet.TryGetAttribute(tag, out attribute))
					return true;

				return _sourceMessage.MetaInfo.TryGetAttribute(tag, out attribute);
			}
		}
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:15,代码来源:DicomMessageSopDataSource.cs

示例14: TryGetAttribute

        public override bool TryGetAttribute(uint tag, out DicomAttribute attribute)
        {
            lock (SyncLock)
            {
                if (NeedFullHeader(tag))
					LoadFullHeader();

                return base.TryGetAttribute(tag, out attribute);
            }
        }
开发者ID:jfphilbin,项目名称:ClearCanvas,代码行数:10,代码来源:XmlSopDataSource.cs

示例15: ConvertPaletteColorToRgb

		public void ConvertPaletteColorToRgb()
		{
			Platform.CheckTrue(PhotometricInterpretation.Equals("PALETTE COLOR"), "Photometric Interpretation Palette Color Check");

			List<FrameData> frames = new List<FrameData>();

			for (int i = 0; i < NumberOfFrames; i++)
			{
				byte[] currentFrame = GetFrame(i);
				byte[] newFrame = new byte[UncompressedFrameSize*3];

				PaletteColorToRgb(BitsAllocated, IsSigned, currentFrame, newFrame, PaletteColorLut);
				frames.Add(new FrameDataBytes(this, newFrame, false));
			}

			// change the Pixel Data attribute so we don't affect the original
			_pd = _pd.Tag.VR.CreateDicomAttribute(_pd.Tag);

			_fd.Clear();
			_fd.AddRange(frames);

			SamplesPerPixel = 3;
			PhotometricInterpretation = "RGB";
			PlanarConfiguration = 0;
			HasPaletteColorLut = false;
		}
开发者ID:jfphilbin,项目名称:ClearCanvas,代码行数:26,代码来源:DicomUncompressedPixelData.cs


注:本文中的ClearCanvas.Dicom.DicomAttribute类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。