The IDLffDicomEx::SetProperty procedure method sets the value of a property or group of properties for the IDLffDicomEx object.

Syntax


Obj->[IDLffDicomEx::] SetProperty [, PROPERTY = value]

Return Value


Arguments


None

Keywords


Any property listed under IDLffDicomEx Properties that contains the word “Yes” in the “Set” column of the properties table can be set using this method. To set the value of a property, specify the property name as a keyword set equal to the appropriate property value.

Example


The following code shows setting several properties on a new monochrome image object. These properties must be set prior to setting pixel data or while setting pixel data. See the “Examples” section of IDLffDicomEx::SetPixelData for a complete example.

Note: These property values must match the data of the pixel data array.

; Create a new DICOM file and set properties.
   oImg = OBJ_NEW('IDLffDicomEx', $
      path+PATH_SEP()+'aNewMonoImg.dcm', $
      SOP_CLASS = 'STANDARD_MR', /NON_CONFORMING, /CREATE)
 
   ; Set only the requried properties.
   oImg->SetProperty, $
      BITS_ALLOCATED = 16, $
      COLUMNS = 256, $
      NUMBER_OF_FRAMES = 1, $
      PHOTOMETRIC_INTERPRETATION = 'MONOCHROME2', $
      PIXEL_REPRESENTATION = 0, $
      ROWS = 256, $
      SAMPLES_PER_PIXEL = 1
 
   ; Call set pixel data.
   oImg->SetPixelData, vPixelData, /ORDER

Version History


6.1

Introduced