Class DicomImageInfo

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

object DicomImageInfo

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

int

BitsStored

Nhận số lượng bit được lưu trữ.

[JsonProperty]
public int BitsStored { get; }

Giá trị bất động sản

int

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

ReadOnlyCollection < string >

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

int

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

bool

NumberOfFrames

Nhận được số lượng khung.

[JsonProperty]
public int NumberOfFrames { get; }

Giá trị bất động sản

int

Offset

nhận được sự bồi thường.

[JsonProperty]
public int Offset { get; }

Giá trị bất động sản

int

PhotoInterpretation

Nhận được một giá trị của “PhotoInterpretation”.

[JsonProperty]
public string PhotoInterpretation { get; }

Giá trị bất động sản

string

PixelRepresentation

Nhận một giá trị của pixel “pixelRepresentation”.

[JsonProperty]
public int PixelRepresentation { get; }

Giá trị bất động sản

int

PlanarConfiguration

Nhận được cấu hình kế hoạch.

[JsonProperty]
public int PlanarConfiguration { get; }

Giá trị bất động sản

int

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

ReadOnlyCollection < string >

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

double

RescaleSlope

Nhận được giá trị của “rescaleSlope”.

[JsonProperty]
public double RescaleSlope { get; }

Giá trị bất động sản

double

SamplesPerPixel

Nó nhận được giá trị của “mẫuPerPixel”.

[JsonProperty]
public int SamplesPerPixel { get; }

Giá trị bất động sản

int

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

bool

Width

nhận được chiều rộng.

[JsonProperty]
public int Width { get; }

Giá trị bất động sản

int

WindowCentre

Tìm trung tâm cửa sổ

[JsonProperty]
public double WindowCentre { get; }

Giá trị bất động sản

double

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

double

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

bool

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

bool

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

bool

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.

 Tiếng Việt