C# Class Dicom.Data.DicomFileFormat

User class for loading and saving DICOM files
Mostrar archivo Open project: fo-dicom/mdcm Class Usage Examples

Public Methods

Method Description
ChangeTransferSyntax ( DicomTransferSyntax ts, DcmCodecParameters parameters ) : void

Changes transfer syntax of dataset and updates file meta information

DicomFileFormat ( ) : System

Initializes new DICOM file format

DicomFileFormat ( DcmDataset dataset ) : System

Initializes new DICOM file format from dataset

GetDatasetStream ( String file, bool useIsoStore = false ) : FileStream

Gets file stream starting at DICOM dataset

IsDicomFile ( string file, bool useIsoStore = false ) : bool
Load ( Stream fs, DicomReadOptions options ) : DicomReadStatus

Loads a dicom file

Load ( Stream fs, Dicom.Data.DicomTag stopTag, DicomReadOptions options ) : DicomReadStatus

Loads a dicom file, stopping at a certain tag

Load ( String file, DicomReadOptions options, bool useIsoStore = false ) : DicomReadStatus

Loads a dicom file

Load ( String file, Dicom.Data.DicomTag stopTag, DicomReadOptions options, bool useIsoStore = false ) : DicomReadStatus

Loads a dicom file, stopping at a certain tag

LoadFileMetaInfo ( String file, bool useIsoStore = false ) : DcmFileMetaInfo

Gets the file meta information from a DICOM file

Save ( string file, DicomWriteOptions options, bool useIsoStore = false ) : void

Saves a DICOM file in the isolated storage area

Private Methods

Method Description
CheckFileHeader ( Stream fs ) : bool

Method Details

ChangeTransferSyntax() public method

Changes transfer syntax of dataset and updates file meta information
public ChangeTransferSyntax ( DicomTransferSyntax ts, DcmCodecParameters parameters ) : void
ts DicomTransferSyntax New transfer syntax
parameters DcmCodecParameters Encode/Decode params
return void

DicomFileFormat() public method

Initializes new DICOM file format
public DicomFileFormat ( ) : System
return System

DicomFileFormat() public method

Initializes new DICOM file format from dataset
public DicomFileFormat ( DcmDataset dataset ) : System
dataset DcmDataset Dataset
return System

GetDatasetStream() public static method

Gets file stream starting at DICOM dataset
public static GetDatasetStream ( String file, bool useIsoStore = false ) : FileStream
file String Filename
useIsoStore bool Get dataset from isolated store
return System.IO.FileStream

IsDicomFile() public static method

public static IsDicomFile ( string file, bool useIsoStore = false ) : bool
file string
useIsoStore bool
return bool

Load() public method

Loads a dicom file
public Load ( Stream fs, DicomReadOptions options ) : DicomReadStatus
fs Stream File stream to read
options DicomReadOptions DICOM read options
return DicomReadStatus

Load() public method

Loads a dicom file, stopping at a certain tag
public Load ( Stream fs, Dicom.Data.DicomTag stopTag, DicomReadOptions options ) : DicomReadStatus
fs Stream File stream to read
stopTag Dicom.Data.DicomTag Tag to stop parsing at
options DicomReadOptions DICOM read options
return DicomReadStatus

Load() public method

Loads a dicom file
public Load ( String file, DicomReadOptions options, bool useIsoStore = false ) : DicomReadStatus
file String Filename
options DicomReadOptions DICOM read options
useIsoStore bool Load file from isolated storage
return DicomReadStatus

Load() public method

Loads a dicom file, stopping at a certain tag
public Load ( String file, Dicom.Data.DicomTag stopTag, DicomReadOptions options, bool useIsoStore = false ) : DicomReadStatus
file String Filename
stopTag Dicom.Data.DicomTag Tag to stop parsing at
options DicomReadOptions DICOM read options
useIsoStore bool Load file from isolated storage
return DicomReadStatus

LoadFileMetaInfo() public static method

Gets the file meta information from a DICOM file
public static LoadFileMetaInfo ( String file, bool useIsoStore = false ) : DcmFileMetaInfo
file String Filename
useIsoStore bool Load file from isolated storage
return DcmFileMetaInfo

Save() public method

Saves a DICOM file in the isolated storage area
public Save ( string file, DicomWriteOptions options, bool useIsoStore = false ) : void
file string Filename
options DicomWriteOptions DICOM write options
useIsoStore bool Save in isolated storage
return void