# Images
Image Loaders 返回一个 Image 对象。
Image 对象可用的属性可以在 API 文档中的 Image 对象定义 中查看:
提示
# Image
An Image Object in Cornerstone
Type: [Object]
# Properties
imageId
[string] The imageId associated with this image objectminPixelValue
[Number] the minimum stored pixel value in the imagemaxPixelValue
[Number] the maximum stored pixel value in the imageslope
[Number] the rescale slope to convert stored pixel values to modality pixel values or 1 if not specifiedintercept
[Number] the rescale intercept used to convert stored pixel values to modality values or 0 if not specifiedwindowCenter
[Number] the default windowCenter to apply to the imagewindowWidth
[Number] the default windowWidth to apply to the imagegetPixelData
[function] a function that returns the underlying pixel data. An array of integers for grayscale and an array of RGBA for colorgetImageData
[function] a function that returns a canvas imageData object for the image. This is only needed for color imagesgetCanvas
[function] a function that returns a canvas element with the image loaded into it. This is only needed for color images.getImage
[function] 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 formatsrows
[Number] number of rows in the image. This is the same as height but duplicated for conveniencecolumns
[Number] number of columns in the image. This is the same as width but duplicated for convenienceheight
[Number] the height of the image. This is the same as rows but duplicated for conveniencewidth
[Number] the width of the image. This is the same as columns but duplicated for conveniencecolor
[Boolean] true if pixel data is RGB, false if grayscalelut
[Object] The Lookup Tablergba
[Boolean] Is the color pixel data stored in RGBA?columnPixelSpacing
[Number] horizontal distance between the middle of each pixel (or width of each pixel) in mm or undefined if not knownrowPixelSpacing
[Number] vertical distance between the middle of each pixel (or height of each pixel) in mm or undefined if not knowninvert
[Boolean] 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 MONOCHROME1sizeInBytes
[Number] the number of bytes used to store the pixels for this image.falseColor
[Boolean]? Whether or not the image has undergone false color mappingorigPixelData
[Array]? Original pixel data for an image after it has undergone false color mappingstats
ImageStats? Statistics for the last redraw of the imagecachedLut
[Object] Cached Lookup Table for this image.colormap
([String] | Colormap)? Depreacted. Use viewport.colormap instead. an optional colormap ID or colormap object (from colors/colormap.js). This will be applied during rendering to convert the image to pseudocolorlabelmap
[Boolean]? whether or not to render this image as a label map (i.e. skip modality and VOI LUT pipelines and use only a color lookup table)