Class DicomImageInfo
Tên không gian: Aspose.Imaging.FileFormats.Dicom Tổng hợp: Aspose.Imaging.dll (25.4.0)
chứa tất cả các thông tin từ tiêu đề tệp Dicom
[JsonObject(MemberSerialization.OptIn)]
public sealed class DicomImageInfo
Inheritance
Thành viên thừa kế
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
BitsAllocated
Nhận được giá trị của “bitsAllocated”.
[JsonProperty]
public int BitsAllocated { get; }
Giá trị bất động sản
BitsStored
Nhận số lượng bit được lưu trữ.
[JsonProperty]
public int BitsStored { get; }
Giá trị bất động sản
Blues
Nhận được màu sắc array của màu xanh
[JsonProperty]
public byte[] Blues { get; }
Giá trị bất động sản
byte [ ]
DicomHeaderInfoByBytes
Nhận thông tin tiêu đề dicom bằng byte.
[JsonProperty]
public byte[] DicomHeaderInfoByBytes { get; }
Giá trị bất động sản
byte [ ]
DicomInfo
Nhận thông tin tiêu đề của tệp DICOM.
public ReadOnlyCollection<string> DicomInfo { get; }
Giá trị bất động sản
Examples
Ví dụ sau đây cho thấy cách đọc thông tin tiêu đề của một hình ảnh 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
Nhận được màu sắc array của màu xanh
[JsonProperty]
public byte[] Greens { get; }
Giá trị bất động sản
byte [ ]
Height
nhận được độ cao.
[JsonProperty]
public int Height { get; }
Giá trị bất động sản
IsLittleEndian
Nó nhận được một giá trị cho thấy liệu trường hợp này có nhỏ hay không.
[JsonProperty]
public bool IsLittleEndian { get; }
Giá trị bất động sản
NumberOfFrames
Nhận được số lượng khung.
[JsonProperty]
public int NumberOfFrames { get; }
Giá trị bất động sản
Offset
nhận được sự bồi thường.
[JsonProperty]
public int Offset { get; }
Giá trị bất động sản
PhotoInterpretation
Nhận được một giá trị của “PhotoInterpretation”.
[JsonProperty]
public string PhotoInterpretation { get; }
Giá trị bất động sản
PixelRepresentation
Nhận một giá trị của pixel “pixelRepresentation”.
[JsonProperty]
public int PixelRepresentation { get; }
Giá trị bất động sản
PlanarConfiguration
Nhận được cấu hình kế hoạch.
[JsonProperty]
public int PlanarConfiguration { get; }
Giá trị bất động sản
ReadonlyTagsList
Các giá trị thẻ này sẽ được thiết lập lại theo dữ liệu hình ảnh thực tế trên bản sao lưu.
public static ReadOnlyCollection<string> ReadonlyTagsList { get; }
Giá trị bất động sản
Reds
Nhận được màu sắc array của màu đỏ
[JsonProperty]
public byte[] Reds { get; }
Giá trị bất động sản
byte [ ]
RescaleIntercept
Nhận được một giá trị của “rescaleIntercept”.
[JsonProperty]
public double RescaleIntercept { get; }
Giá trị bất động sản
RescaleSlope
Nhận được giá trị của “rescaleSlope”.
[JsonProperty]
public double RescaleSlope { get; }
Giá trị bất động sản
SamplesPerPixel
Nó nhận được giá trị của “mẫuPerPixel”.
[JsonProperty]
public int SamplesPerPixel { get; }
Giá trị bất động sản
SignedImage
Nhận được một giá trị cho thấy liệu “signedImage”.
public bool SignedImage { get; }
Giá trị bất động sản
Width
nhận được chiều rộng.
[JsonProperty]
public int Width { get; }
Giá trị bất động sản
WindowCentre
Tìm trung tâm cửa sổ
[JsonProperty]
public double WindowCentre { get; }
Giá trị bất động sản
WindowWidth
Nhận được chiều rộng của cửa sổ.
[JsonProperty]
public double WindowWidth { get; }
Giá trị bất động sản
Methods
AddTag(Thẻ, Object)
Thêm tag Dicom mới.
public void AddTag(string tagDescription, object value)
Parameters
tagDescription
string
Mô tả thẻ. không thể là không hoặc không gian trắng.
value
object
Giá trị thẻ. không thể là zero.
RemoveTagAt(int)
Xóa một thẻ hiện có.
public void RemoveTagAt(int index)
Parameters
index
int
Chỉ số của thẻ sẽ được cập nhật.
TryAddTag(Thẻ, Object)
Thêm tag Dicom mới.
public bool TryAddTag(string tagDescription, object value)
Parameters
tagDescription
string
Mô tả thẻ. không thể là không hoặc không gian trắng.
value
object
Giá trị thẻ. không thể là zero.
Returns
Kết quả hoạt động
TryRemoveTagAt(int)
Xóa một thẻ hiện có.
public bool TryRemoveTagAt(int index)
Parameters
index
int
Chỉ số của thẻ sẽ được cập nhật.
Returns
Kết quả hoạt động
TryUpdateTagAt(Mục đích, object)
Cập nhật một thẻ hiện có.
public bool TryUpdateTagAt(int index, object newValue)
Parameters
index
int
Chỉ số của thẻ sẽ được cập nhật.
newValue
object
Giá trị thẻ. không thể là zero.
Returns
Kết quả hoạt động
UpdateTagAt(Mục đích, object)
Cập nhật một thẻ hiện có.
public void UpdateTagAt(int index, object newValue)
Parameters
index
int
Chỉ số của thẻ sẽ được cập nhật.
newValue
object
Giá trị thẻ. không thể là zero.