-
Notifications
You must be signed in to change notification settings - Fork 598
Image
alejandracascru edited this page May 24, 2018
·
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.
- getImage - a function that returns a JavaScript Image object with the image data. This is optional and typically used for images encoded in standard web JPEG and PNG formats
- rows - number of rows in the image. This is the same value as height but replicated for convenience
- columns - number of columns in the image. This is the same as width but replicated for convenience
- height - the height of the image. This is the same value as rows but replicated for convenience
- width - the width of the image. This is the same value as columns but replicated 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.