The GDLffDICOM__assoc class provides methods to read and update images embedded in a DICOM Part 10 file. The GDLffDICOM__assoc class takes advantage to the IDL assoc function to allow for direct access to frame data in the DICOM file. Such direct access means that you cannot make alter the image dimensions.
The GDLffDICOM__assoc class also provides a method for generating a new SOP Instance UID. Generating a new UID is necessary if you intend on altering the DICOM file. If you do not generate a new UID then you may experience data loss:
; Initialise the DICOM update class
du = obj_new('GDLffDICOM__assoc')
; Open and parse the DICOM file
if (du -> open('image.dcm')) then begin
; Associate the image embedded in the file
images = du -> assoc(COUNT=count)
; Display the slices
for i=0l,count-1l do tvscl, images[i], i
; Close the file
du -> close
endif
; Cleanup
obj_destroy, du