dicomwrite

Write data in DICOM format to a file.

重要: Valid only with Altair DICOM Extension.

Syntax

dicomwrite(filename,imagedata, infodata)

Inputs

filename
Path of the DICOM file.
Type: string
imagedata
Image data represented as a 2D or 3D matrix.
Type: matrix
infodata
Similar to output produced by dicominfo.
Type: struct

Example

dicomwrite example.

s = dicominfo('data/0015.DCM');
m = dicomread(s);
out_file='0015_write.DCM';
if exist(out_file)
	delete(out_file)
end

dicomwrite(out_file,m,s)
mw = dicomread(out_file);