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
ได้รับ array สีของสีน้ําเงิน
[JsonProperty]
public byte[] Blues { get; }
คุณสมบัติมูลค่า
byte [ ]
DicomHeaderInfoByBytes
รับข้อมูลหัว 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
รับสี array ของสีเขียว
[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
ได้รับค่าของ pixel “pixelRepresentation”
[JsonProperty]
public int PixelRepresentation { get; }
คุณสมบัติมูลค่า
PlanarConfiguration
ได้รับการกําหนดค่าแผน
[JsonProperty]
public int PlanarConfiguration { get; }
คุณสมบัติมูลค่า
ReadonlyTagsList
รายการแท็กเพียงอ่าน หมายเลขเหล่านี้จะถูกตั้งค่าใหม่ตามข้อมูลภาพจริงเมื่อบันทึกภาพ
public static ReadOnlyCollection<string> ReadonlyTagsList { get; }
คุณสมบัติมูลค่า
Reds
รับสี array ของสีแดง
[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
ได้รับค่าที่แสดงให้เห็นว่า “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
คําอธิบายแท็ก ไม่สามารถเป็น null หรือ whitespace
value
object
หมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลข
RemoveTagAt(int)
ลบแท็กที่มีอยู่
public void RemoveTagAt(int index)
Parameters
index
int
ดัชนีของแท็กจะได้รับการปรับปรุง
TryAddTag(วัตถุ วัตถุ)
เพิ่มแท็ก Dicom ใหม่
public bool TryAddTag(string tagDescription, object value)
Parameters
tagDescription
string
คําอธิบายแท็ก ไม่สามารถเป็น null หรือ whitespace
value
object
หมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลข
Returns
ผลการดําเนินงาน
TryRemoveTagAt(int)
ลบแท็กที่มีอยู่
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
หมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลขหมายเลข