Class DicomImageInfo

Class DicomImageInfo

Namn på plats: Aspose.Imaging.FileFormats.Dicom Församling: Aspose.Imaging.dll (25.4.0)

Innehåller all meta-information från Dicom-filen header

[JsonObject(MemberSerialization.OptIn)]
public sealed class DicomImageInfo

Inheritance

object DicomImageInfo

Arvsmedlemmar

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Properties

BitsAllocated

Få ett värde av “bitsAllocated”.

[JsonProperty]
public int BitsAllocated { get; }

Fastighetsvärde

int

BitsStored

Få antalet sparade bits.

[JsonProperty]
public int BitsStored { get; }

Fastighetsvärde

int

Blues

Få array färgerna av blått

[JsonProperty]
public byte[] Blues { get; }

Fastighetsvärde

byte [ ]

DicomHeaderInfoByBytes

Få dicom headerinformation per byte.

[JsonProperty]
public byte[] DicomHeaderInfoByBytes { get; }

Fastighetsvärde

byte [ ]

DicomInfo

Få headerinformation i DICOM-filen.

public ReadOnlyCollection<string> DicomInfo { get; }

Fastighetsvärde

ReadOnlyCollection ochlt; string >

Examples

Följande exempel visar hur man läser headerinformation för en DICOM-bild.

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

Få array färgerna av grön

[JsonProperty]
public byte[] Greens { get; }

Fastighetsvärde

byte [ ]

Height

får höjden.

[JsonProperty]
public int Height { get; }

Fastighetsvärde

int

IsLittleEndian

Det får ett värde som indikerar om denna instans är liten endian.

[JsonProperty]
public bool IsLittleEndian { get; }

Fastighetsvärde

bool

NumberOfFrames

Upptäcker antalet rammar.

[JsonProperty]
public int NumberOfFrames { get; }

Fastighetsvärde

int

Offset

Få ut avgiften.

[JsonProperty]
public int Offset { get; }

Fastighetsvärde

int

PhotoInterpretation

Det får ett värde av “PhotoInterpretation”.

[JsonProperty]
public string PhotoInterpretation { get; }

Fastighetsvärde

string

PixelRepresentation

Få ett värde av pixeln “pixelrepresentation”.

[JsonProperty]
public int PixelRepresentation { get; }

Fastighetsvärde

int

PlanarConfiguration

Få den planära konfigurationen.

[JsonProperty]
public int PlanarConfiguration { get; }

Fastighetsvärde

int

ReadonlyTagsList

Dessa tagvärden kommer att återställas i enlighet med de faktiska bilddata på bilden sparas.

public static ReadOnlyCollection<string> ReadonlyTagsList { get; }

Fastighetsvärde

ReadOnlyCollection ochlt; string >

Reds

Få array färgerna av röd

[JsonProperty]
public byte[] Reds { get; }

Fastighetsvärde

byte [ ]

RescaleIntercept

Det får ett värde av “rescaleIntercept”.

[JsonProperty]
public double RescaleIntercept { get; }

Fastighetsvärde

double

RescaleSlope

Få ett värde av “rescaleSlope”.

[JsonProperty]
public double RescaleSlope { get; }

Fastighetsvärde

double

SamplesPerPixel

Det får ett värde av “SmallPerPixel”.

[JsonProperty]
public int SamplesPerPixel { get; }

Fastighetsvärde

int

SignedImage

Det får ett värde som indikerar om “signedImage”.

public bool SignedImage { get; }

Fastighetsvärde

bool

Width

får bredden.

[JsonProperty]
public int Width { get; }

Fastighetsvärde

int

WindowCentre

Hitta fönstret centrum.

[JsonProperty]
public double WindowCentre { get; }

Fastighetsvärde

double

WindowWidth

Få bredden av fönstret.

[JsonProperty]
public double WindowWidth { get; }

Fastighetsvärde

double

Methods

AddTag(Sträng, Objekt)

Lägg till ny Dicom tag.

public void AddTag(string tagDescription, object value)

Parameters

tagDescription string

Beskrivning av taggen. kan inte vara noll eller vitt utrymme.

value object

Etikettvärde. kan inte vara noll.

RemoveTagAt(int)

Ta bort en befintlig tag.

public void RemoveTagAt(int index)

Parameters

index int

Indexet av taggen ska uppdateras.

TryAddTag(Sträng, Objekt)

Lägg till ny Dicom tag.

public bool TryAddTag(string tagDescription, object value)

Parameters

tagDescription string

Beskrivning av taggen. kan inte vara noll eller vitt utrymme.

value object

Etikettvärde. kan inte vara noll.

Returns

bool

Operationen är resultatet.

TryRemoveTagAt(int)

Ta bort en befintlig tag.

public bool TryRemoveTagAt(int index)

Parameters

index int

Indexet av taggen ska uppdateras.

Returns

bool

Operationen är resultatet.

TryUpdateTagAt(Int, Objektet)

Uppdatera en befintlig tag.

public bool TryUpdateTagAt(int index, object newValue)

Parameters

index int

Indexet av taggen ska uppdateras.

newValue object

Etikettvärde. kan inte vara noll.

Returns

bool

Operationen är resultatet.

UpdateTagAt(Int, Objektet)

Uppdatera en befintlig tag.

public void UpdateTagAt(int index, object newValue)

Parameters

index int

Indexet av taggen ska uppdateras.

newValue object

Etikettvärde. kan inte vara noll.

 Svenska