Skip to content
Chris Hafey edited this page Apr 18, 2014 · 9 revisions

The image object describes the image that is to be rendered.

  • imageId - the imageId associated with this image object
  • minPixelValue - the minimum stored pixel value in the image
  • maxPixelValue - the maximum stored pixel value in the image
  • slope - the rescale slope to convert stored pixel values to modality pixel values or 1 if not specified
  • intercept - the rescale intercept used to convert stored pixel values to modality values or 0 if not specified
  • windowCenter - the default windowCenter to apply to the image
  • windowWidth - the default windowWidth to apply to the image
  • getPixelData - a function that returns the underlying pixel data. An array of integers for grayscale and an array of RGBA for color
  • getImageData - a function that returns a canvas imageData object for the image. This is only needed for color images
  • getCanvas - a function that returns a canvas element with the image loaded into it. This is only needed for color images.
  • rows - number of rows in the image. This is the same as height but duplicated for convenience
  • columns - number of columns in the image. This is the same as width but duplicated for convenience
  • height - the height of the mage. This is the same as rows but duplicated for convenience
  • width - the width of the image. This is the same as columns but duplicated for convenience
  • color - true if pixel data is RGB, false if grayscale
  • columnPixelSpacing - horizontal distance between the middle of each pixel (or width of each pixel) in mm or undefined if not known
  • rowPixelSpacing - vertical distance between the middle of each pixel (or heigh of each pixel) in mm or undefined if not known
  • invert - true if the the image should initially be displayed be inverted, false if not. This is here mainly to support DICOM images with a photometric interpretation of MONOCHROME1
  • sizeInBytes - the number of bytes used to store the pixels for this image.