Class DicomImageInfo
Nazwa przestrzeń: Aspose.Imaging.FileFormats.Dicom Zgromadzenie: Aspose.Imaging.dll (25.4.0)
Zawiera wszystkie meta-informacje z nagłówka pliku Dicom
[JsonObject(MemberSerialization.OptIn)]
public sealed class DicomImageInfo
Inheritance
Dziedziczeni członkowie
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
BitsAllocated
Otrzymuje wartość „bitsAllocated”.
[JsonProperty]
public int BitsAllocated { get; }
Wartość nieruchomości
BitsStored
Dostarcza liczbę przechowywanych bitów.
[JsonProperty]
public int BitsStored { get; }
Wartość nieruchomości
Blues
Znajduje się w kolorze niebieskim
[JsonProperty]
public byte[] Blues { get; }
Wartość nieruchomości
byte [ ]
DicomHeaderInfoByBytes
Otrzymuje informacje o nagłówku dicom według bajtów.
[JsonProperty]
public byte[] DicomHeaderInfoByBytes { get; }
Wartość nieruchomości
byte [ ]
DicomInfo
Otrzymuje informacje o nagłówku pliku DICOM.
public ReadOnlyCollection<string> DicomInfo { get; }
Wartość nieruchomości
ReadOnlyCollection • < string >
Examples
Poniższy przykład pokazuje, jak przeczytać informacje o nagłówku obrazu 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
Znajduje się w kolorze zielonej
[JsonProperty]
public byte[] Greens { get; }
Wartość nieruchomości
byte [ ]
Height
Otrzymuje wysokość.
[JsonProperty]
public int Height { get; }
Wartość nieruchomości
IsLittleEndian
Otrzymuje wartość wskazującą, czy ta instancja jest niewielka.
[JsonProperty]
public bool IsLittleEndian { get; }
Wartość nieruchomości
NumberOfFrames
Dostarczamy liczbę ram.
[JsonProperty]
public int NumberOfFrames { get; }
Wartość nieruchomości
Offset
Otrzymuje odszkodowanie.
[JsonProperty]
public int Offset { get; }
Wartość nieruchomości
PhotoInterpretation
Otrzymuje wartość „tłumaczenia zdjęć”.
[JsonProperty]
public string PhotoInterpretation { get; }
Wartość nieruchomości
PixelRepresentation
Otrzymuje wartość piksela „PixelRepresentation”.
[JsonProperty]
public int PixelRepresentation { get; }
Wartość nieruchomości
PlanarConfiguration
Dostęp do konfiguracji planaryjnej.
[JsonProperty]
public int PlanarConfiguration { get; }
Wartość nieruchomości
ReadonlyTagsList
Te wartości tagów zostaną ponownie ustawione w zależności od rzeczywistych danych obrazu na zdjęciu zapisanych.
public static ReadOnlyCollection<string> ReadonlyTagsList { get; }
Wartość nieruchomości
ReadOnlyCollection • < string >
Reds
Znajduje się w kolorze array czerwonego
[JsonProperty]
public byte[] Reds { get; }
Wartość nieruchomości
byte [ ]
RescaleIntercept
Otrzymuje wartość „rescaleIntercept”.
[JsonProperty]
public double RescaleIntercept { get; }
Wartość nieruchomości
RescaleSlope
Otrzymuje wartość „rescaleSlope”.
[JsonProperty]
public double RescaleSlope { get; }
Wartość nieruchomości
SamplesPerPixel
Otrzymuje wartość „samplePerPixel”.
[JsonProperty]
public int SamplesPerPixel { get; }
Wartość nieruchomości
SignedImage
Otrzymuje wartość wskazującą, czy „signedImage”.
public bool SignedImage { get; }
Wartość nieruchomości
Width
Dostaje szerokość.
[JsonProperty]
public int Width { get; }
Wartość nieruchomości
WindowCentre
Znajduje się w centrum okna.
[JsonProperty]
public double WindowCentre { get; }
Wartość nieruchomości
WindowWidth
Dostaje szerokość okna.
[JsonProperty]
public double WindowWidth { get; }
Wartość nieruchomości
Methods
AddTag(Źródło, Obiekt)
Dodaj nowy tag Dicom.
public void AddTag(string tagDescription, object value)
Parameters
tagDescription
string
Opis etykiety. nie może być zero lub biały przestrzeń.
value
object
Wartość znaku. nie może być zero.
RemoveTagAt(Int)
Usunąć istniejący znak.
public void RemoveTagAt(int index)
Parameters
index
int
Indeks etykiety należy zaktualizować.
TryAddTag(Źródło, Obiekt)
Dodaj nowy tag Dicom.
public bool TryAddTag(string tagDescription, object value)
Parameters
tagDescription
string
Opis etykiety. nie może być zero lub biały przestrzeń.
value
object
Wartość znaku. nie może być zero.
Returns
W wyniku operacji.
TryRemoveTagAt(Int)
Usunąć istniejący znak.
public bool TryRemoveTagAt(int index)
Parameters
index
int
Indeks etykiety należy zaktualizować.
Returns
W wyniku operacji.
TryUpdateTagAt(Obiekt, Obiekt)
Aktualizacja istniejącego tagi.
public bool TryUpdateTagAt(int index, object newValue)
Parameters
index
int
Indeks etykiety należy zaktualizować.
newValue
object
Wartość znaku. nie może być zero.
Returns
W wyniku operacji.
UpdateTagAt(Obiekt, Obiekt)
Aktualizacja istniejącego tagi.
public void UpdateTagAt(int index, object newValue)
Parameters
index
int
Indeks etykiety należy zaktualizować.
newValue
object
Wartość znaku. nie może być zero.