Jump to I try to import a directory of DICOM files, but nothing shows up. Try loading the data by selecting one of. If you are sure that the DICOM files do not contain patient confidential information, you may post a sample dataset on a. Firstly test if it DICOM file or it will be skipped. Secondly try anonymize and then upload file to server. Same goes for zip file: try to extract and read file by file, test for DICOM format or skip, anonymize and upload. All extracting and anonymization is made on your browser.
![]() Read Metadata from DICOM Files
DICOM files contain metadata that provide information about the image data, such as the size, dimensions, bit depth, modality used to create the data, and equipment settings used to capture the image. To read metadata from a DICOM file, use the
dicominfo function. dicominfo returns the information in a MATLAB® structure where every field contains a specific piece of DICOM metadata. You can use the metadata structure returned by dicominfo to specify the DICOM file you want to read using dicomread — see Read Image Data from DICOM Files. If you just want to view the metadata in a DICOM file, for debugging purposes, you can use the dicomdisp function.
The following example reads the metadata from a sample DICOM file that is included with the toolbox.
Private DICOM Metadata![]()
The DICOM specification defines many of these metadata fields, but files can contain additional fields, called private metadata. This private metadata is typically defined by equipment vendors to provide additional information about the data they provide.
When
dicominfo encounters a private metadata field in a DICOM file, it returns the metadata creating a generic name for the field based on the group and element tags of the metadata. For example, if the file contained private metadata at group 0009 and element 0006, dicominfo creates the name:Private_0009_0006 . dicominfo attempts to interpret the private metadata, if it can. For example, if the metadata contains characters, dicominfo processes the data. If it can't interpret the data, dicominfo returns a sequence of bytes.
If you need to process a DICOM file created by a manufacturer that uses private metadata, and you prefer to view the correct name of the field as well as the data, you can create your own copy of the DICOM data dictionary and update it to include definitions of the private metadata. You will need information about the private metadata that vendors typically provide in DICOM compliance statements. For more information about updating DICOM dictionary, see Create Your Own Copy of DICOM Dictionary.
![]() Create Your Own Copy of DICOM Dictionary
MathWorks uses a DICOM dictionary that contains definitions of thousands of standard DICOM metadata fields. If your DICOM file contains metadata that is not defined this dictionary, you can update the dictionary, creating your own copy that it includes these private metadata fields.
To create your own dictionary, perform this procedure:
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |