Class DicomImageInfo
名称: Aspose.Imaging.FileFormats.Dicom 收藏: Aspose.Imaging.dll (25.4.0)
包含来自Dicom文件标题的所有代码信息
[JsonObject(MemberSerialization.OptIn)]
public sealed class DicomImageInfo
Inheritance
继承人
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
BitsAllocated
得到“bitsAllocated”的价值。
[JsonProperty]
public int BitsAllocated { get; }
财产价值
BitsStored
获取存储的比特数量。
[JsonProperty]
public int BitsStored { get; }
财产价值
Blues
得到蓝色的色彩
[JsonProperty]
public byte[] Blues { get; }
财产价值
byte ( )
DicomHeaderInfoByBytes
以 byte 获取 dicom 标题信息。
[JsonProperty]
public byte[] DicomHeaderInfoByBytes { get; }
财产价值
byte ( )
DicomInfo
获取 DICOM 文件的标题信息。
public ReadOnlyCollection<string> DicomInfo { get; }
财产价值
Examples
下面的例子显示如何阅读DICOM图像的标题信息。
string dir = "c:\\aspose.imaging\\issues\\net\\3635\\testdata\\3628";
using (Aspose.Imaging.FileFormats.Dicom.DicomImage image = (Aspose.Imaging.FileFormats.Dicom.DicomImage)Aspose.Imaging.Image.Load(System.IO.Path.Combine(dir, "ttfm.dcm")))
{
foreach (string s in image.FileInfo.DicomInfo)
{
System.Console.WriteLine(s);
}
}
// STDOUT:
//Media Storage Sop Class Uid: 1.2.840.10008.5.1.4.1.1.3.1
//Media Storage Sop Instance Uid: 2.16.840.1.114488.0.4.123489834087.1330071425.2
//Transfer Syntax Uid: 1.2.840.10008.1.2.4.70
//Implementation Class Uid: 1.2.840.114236
//Specific Character Set: ISO_IR 100
//Image Type: \SECONDARY\INTRAOPERATIVE
//Sop Class Uid: 1.2.840.10008.5.1.4.1.1.3.1
//Sop Instance Uid: 2.16.840.1.114488.0.4.123489834087.1330071425.2
//Study Date: 20110824
//Series Date: 20110824
//Content Date: 20110824
//Study Time: 094836.214743984
//Series Time: 094836.214743984
//Content Time: 100451.214743816
//Modality: US
//Manufacturer: Medistim
//Institution Name: Hospital Name
//Institution Address: Hospital Address or Department
//Station Name: VERIQ
//Performing Physician's Name: CA Prof. Debus
//Manufacturer's Model Name: VeriQ C
//Recommended Display Frame Rate: 1
//Patient's Name: Femoral trombenarterectomy^Case Report:
//Patient Id: Case Report 1
//Patient's Sex: M
//Patient's Size: 0
//Patient's Weight: 0
//Patient Comments: See case report on www.medistim.com
//Cine Rate: 1
//Effective Duration: 1
//Device Serial Number: 0
//Software Versions(s): 3.3.0 RC0 built 02 / 23 / 12 09:50:45
//Frame Time: 1000
//Study Instance Uid: 2.16.840.1.114488.0.4.123489834087.1330071425.0
//Series Instance Uid: 2.16.840.1.114488.0.4.123489834087.1330071425.1
//Series Number: 1
//Instance Number: 1
//Samples per Pixel: 3
//Photometric Interpretation: RGB
//Planar Configuration: 0
//Number of Frames: 1
//Frame Increment Pointer:
//Rows: 768
//Columns: 1024
//Bits Allocated: 8
//Bits Stored: 8
//high Bit: 7
//Pixel Representation: 0
//Lossy Image Compression: 00
//Pixel Data: 1492
Greens
得到绿色的色彩
[JsonProperty]
public byte[] Greens { get; }
财产价值
byte ( )
Height
得到了高度。
[JsonProperty]
public int Height { get; }
财产价值
IsLittleEndian
它得到一个值,表明这个例子是否是微不足道的。
[JsonProperty]
public bool IsLittleEndian { get; }
财产价值
NumberOfFrames
得到框架的数量。
[JsonProperty]
public int NumberOfFrames { get; }
财产价值
Offset
得到折扣。
[JsonProperty]
public int Offset { get; }
财产价值
PhotoInterpretation
得到“照片解释”的价值。
[JsonProperty]
public string PhotoInterpretation { get; }
财产价值
PixelRepresentation
收到像素“像素代表”的值。
[JsonProperty]
public int PixelRepresentation { get; }
财产价值
PlanarConfiguration
接收计划配置。
[JsonProperty]
public int PlanarConfiguration { get; }
财产价值
ReadonlyTagsList
这些标签值将根据图像存储时的实际图像数据重新设置。
public static ReadOnlyCollection<string> ReadonlyTagsList { get; }
财产价值
Reds
得到红色的色彩
[JsonProperty]
public byte[] Reds { get; }
财产价值
byte ( )
RescaleIntercept
得到“rescaleIntercept”的价值。
[JsonProperty]
public double RescaleIntercept { get; }
财产价值
RescaleSlope
得到“rescaleSlope”的价值。
[JsonProperty]
public double RescaleSlope { get; }
财产价值
SamplesPerPixel
得到“PerPixel”的值。
[JsonProperty]
public int SamplesPerPixel { get; }
财产价值
SignedImage
收到一个值,表明是否“签名图像”。
public bool SignedImage { get; }
财产价值
Width
得到宽度。
[JsonProperty]
public int Width { get; }
财产价值
WindowCentre
接到窗口中心。
[JsonProperty]
public double WindowCentre { get; }
财产价值
WindowWidth
接收窗口的宽度。
[JsonProperty]
public double WindowWidth { get; }
财产价值
Methods
AddTag(字体、对象)
添加新的Dicom标签。
public void AddTag(string tagDescription, object value)
Parameters
tagDescription
string
标签描述. 不能是零或白空间。
value
object
标签值. 不能是零。
RemoveTagAt(因特)
删除现有标签。
public void RemoveTagAt(int index)
Parameters
index
int
标签的指数要更新。
TryAddTag(字体、对象)
添加新的Dicom标签。
public bool TryAddTag(string tagDescription, object value)
Parameters
tagDescription
string
标签描述. 不能是零或白空间。
value
object
标签值. 不能是零。
Returns
操作结果。
TryRemoveTagAt(因特)
删除现有标签。
public bool TryRemoveTagAt(int index)
Parameters
index
int
标签的指数要更新。
Returns
操作结果。
TryUpdateTagAt(对象,对象)
更新现有标签。
public bool TryUpdateTagAt(int index, object newValue)
Parameters
index
int
标签的指数要更新。
newValue
object
标签值. 不能是零。
Returns
操作结果。
UpdateTagAt(对象,对象)
更新现有标签。
public void UpdateTagAt(int index, object newValue)
Parameters
index
int
标签的指数要更新。
newValue
object
标签值. 不能是零。