| Image Processing Toolbox User's Guide | ![]() |
Example: Creating a New Series
When writing a modified image to a DICOM file, you might want to make the modified image the start of a new series. In the DICOM standard, images can be organized into series. When you write an image with metadata to a DICOM file, dicomwrite puts the image in the same series by default. To create a new series, you must assign a new DICOM unique identifier to the SeriesInstanceUID metadata field. This example illustrates this process:
imshow or imtool. Because the DICOM image data is signed 16-bit data, you must use the autoscaling syntax.
To remove these text characters, the example sets all pixels with the maximum value to the minimum value.
dicomuid function. You need a new UID to write the modified image as a new series.
SeriesInstanceUID field in the metadata associated with the original DICOM file to the generated value.
info, as an argument. Because you set the SeriesInstanceUID value, the image you write is part of a new series.
| Writing Image Data or Metadata to a DICOM File | Image Arithmetic | ![]() |
© 1994-2005 The MathWorks, Inc.