Create dicom file matlab




















Note that the instance ID in the newly created file differs from the ID in the original file. Each field of DICOM metadata known as an attribute or data element , includes a tag that identifies the attribute, information about the length of the attribute, and the attribute data. The attribute optionally includes a two-letter value representation VR that identifies the format of the attribute data. For example, the format can be a single-precision binary floating point number, a character vector that represents a decimal integer, or a character vector in the format of a date-time.

To include the VR in the attribute when using dicomwrite , specify the 'VR' name-value pair argument as 'explicit'. If you do not specify the VR, then dicomwrite infers the value representation from the data dictionary. Choose a web site to get translated content where available and see local events and offers.

Based on your location, we recommend that you select:. Based on your location, we recommend that you select:. Select the China site in Chinese or English for best site performance. Other MathWorks country sites are not optimized for visits from your location. Toggle Main Navigation. Search MathWorks. Open Mobile Search. Off-Canvas Navigation Menu Toggle. Main Content. An m -by- n -by-3 array representing a single-frame truecolor RGB image.

An m -by- n -by- numChannels -by- numFrames array representing a multiframe image. Data Types: int8 int16 uint8 uint Colormap associated with indexed image X , specified as a c -by-3 numeric matrix with values in the range [0, 1]. Each row is a three-element RGB triplet that specifies the red, green, and blue components of a single color of the colormap. Data Types: char string. Optional metadata or file options, specified as a struct. Metadata produced by the dicominfo function, specified as a structure.

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1, Compression mode to use when storing the image, specified as the comma-separated pair consisting of 'CompressionMode' and one of the following.

Method used for creating data to put in the new file, specified as the comma-separated pair consisting of 'CreateMode' and one of the following. For help selecting a creation method, see Tips. Name of DICOM data dictionary, specified as the comma-separated pair consisting of 'Dictionary' and a character vector or string scalar.

The default file is dicom-dict. Byte ordering of the file, specified as the comma-separated pair consisting of 'Endian' and 'ieee-le' or 'ieee-be'. If VR is set to 'Implicit' , then Endian must be 'ieee-le'. Write multiframe image to one file, specified as the comma-separated pair consisting of 'MultiframeSingleFile' and true or false. When true , one file is created regardless of how many frames X contains.

When false , one file is written for each frame in the image. Transfer syntax, specified as the comma-separated pair consisting of 'TransferSyntax' and a character vector or string scalar.

If you specify a transfer syntax, then dicomwrite ignores any values specified for the Endian , VR , and CompressionMode options. When true , dicomwrite preserves existing values. When false default , dicomwrite computes these values based on the datatype of the pixel data. When CreateMode is 'Create' , dicomwrite ignores this field.

Write two-letter value representation VR code to file, specified as the comma-separated pair consisting of 'VR' and one of the following.



0コメント

  • 1000 / 1000