Class: ImageVolume
The base class for volume data. It includes the volume metadata and the volume data along with the loading status.
Constructors
new ImageVolume()
new ImageVolume(
props
):ImageVolume
Parameters
• props: ImageVolumeProps
Returns
Defined in
packages/core/src/cache/classes/ImageVolume.ts:89
Properties
additionalDetails?
optional
additionalDetails:Record
<string
,unknown
>
Property to store additional information
Defined in
packages/core/src/cache/classes/ImageVolume.ts:78
cancelLoading()
cancelLoading: () =>
void
Returns
void
Defined in
packages/core/src/cache/classes/ImageVolume.ts:206
cornerstoneImageMetaData
protected
cornerstoneImageMetaData:any
=null
Defined in
packages/core/src/cache/classes/ImageVolume.ts:34
dataType?
optional
dataType:PixelDataTypedArrayString
Defined in
packages/core/src/cache/classes/ImageVolume.ts:85
dimensions
dimensions:
Point3
Dimensions of the volume
Defined in
packages/core/src/cache/classes/ImageVolume.ts:42
direction
direction:
Mat3
volume direction in world space
Defined in
packages/core/src/cache/classes/ImageVolume.ts:44
hasPixelSpacing
hasPixelSpacing:
boolean
whether the metadata for the pixel spacing is not undefined
Defined in
packages/core/src/cache/classes/ImageVolume.ts:76
imageData?
optional
imageData:vtkImageData
volume image data
Defined in
packages/core/src/cache/classes/ImageVolume.ts:66
isPreScaled
isPreScaled:
boolean
=false
Defined in
packages/core/src/cache/classes/ImageVolume.ts:39
loadStatus?
optional
loadStatus:Record
<string
,unknown
>
load status object for the volume
Defined in
packages/core/src/cache/classes/ImageVolume.ts:70
metadata
metadata:
Metadata
volume metadata
Defined in
packages/core/src/cache/classes/ImageVolume.ts:46
numFrames
protected
numFrames:number
volume scalar data 3D or 4D
Defined in
packages/core/src/cache/classes/ImageVolume.ts:32
numTimePoints?
optional
numTimePoints:number
Defined in
packages/core/src/cache/classes/ImageVolume.ts:87
numVoxels
numVoxels:
number
volume number of voxels
Defined in
packages/core/src/cache/classes/ImageVolume.ts:64
origin
origin:
Point3
volume origin, Note this is an opinionated origin for the volume
Defined in
packages/core/src/cache/classes/ImageVolume.ts:48
referencedImageIds?
optional
referencedImageIds:string
[]
optional reference image ids if the volume is derived from a set of images in the image cache
Defined in
packages/core/src/cache/classes/ImageVolume.ts:74
referencedVolumeId?
optional
referencedVolumeId:string
optional reference volume id if the volume is derived from another volume
Defined in
packages/core/src/cache/classes/ImageVolume.ts:72
scaling?
optional
scaling:object
volume scaling parameters if it contains scaled data
PT?
optional
PT:object
PT.SUVbsaFactor?
optional
SUVbsaFactor:number
PT.suvbwToSuvbsa?
optional
suvbwToSuvbsa:number
PT.suvbwToSuvlbm?
optional
suvbwToSuvlbm:number
PT.SUVlbmFactor?
optional
SUVlbmFactor:number
Defined in
packages/core/src/cache/classes/ImageVolume.ts:51
spacing
spacing:
Point3
volume spacing in 3d world space
Defined in
packages/core/src/cache/classes/ImageVolume.ts:62
totalNumFrames
protected
totalNumFrames:number
Defined in
packages/core/src/cache/classes/ImageVolume.ts:33
volumeId
readonly
volumeId:string
Read-only unique identifier for the volume
Defined in
packages/core/src/cache/classes/ImageVolume.ts:37
voxelManager?
optional
voxelManager:IVoxelManager
<number
> |IVoxelManager
<RGB
>
The new volume model which solely relies on the separate image data and do not cache the volume data at all
Defined in
packages/core/src/cache/classes/ImageVolume.ts:84
vtkOpenGLTexture
vtkOpenGLTexture:
vtkStreamingOpenGLTexture
open gl texture for the volume
Defined in
packages/core/src/cache/classes/ImageVolume.ts:68
Accessors
imageIds
get
imageIds():string
[]
return the image ids for the volume if it is made of separated images
set
imageIds(newImageIds
):void
updates the image ids
Parameters
• newImageIds: string
[]
Returns
string
[]
Defined in
packages/core/src/cache/classes/ImageVolume.ts:184
sizeInBytes
get
sizeInBytes():number
Returns
number
Defined in
packages/core/src/cache/classes/ImageVolume.ts:179
Methods
destroy()
destroy():
void
destroy the volume and make it unusable
Returns
void
Defined in
packages/core/src/cache/classes/ImageVolume.ts:242
getCornerstoneImages()
getCornerstoneImages():
IImage
[]
Returns an array of all the volume's images as Cornerstone images. It iterates over all the imageIds and converts them to Cornerstone images.
Returns
IImage
[]
An array of Cornerstone images.
Defined in
packages/core/src/cache/classes/ImageVolume.ts:308
getImageIdByIndex()
getImageIdByIndex(
imageIdIndex
):string
Parameters
• imageIdIndex: number
Returns
string
Defined in
packages/core/src/cache/classes/ImageVolume.ts:222
getImageIdIndex()
getImageIdIndex(
imageId
):number
return the index of a given imageId
Parameters
• imageId: string
imageId
Returns
number
imageId index
Defined in
packages/core/src/cache/classes/ImageVolume.ts:218
getImageURIIndex()
getImageURIIndex(
imageURI
):number
return the index of a given imageURI
Parameters
• imageURI: string
Returns
number
imageURI index
Defined in
packages/core/src/cache/classes/ImageVolume.ts:231
getScalarDataLength()
getScalarDataLength():
number
Returns
number
Defined in
packages/core/src/cache/classes/ImageVolume.ts:276
imageIdIndexToFrameIndex()
protected
imageIdIndexToFrameIndex(imageIdIndex
):number
Converts imageIdIndex into frameIndex which will be the same for 3D volumes but different for 4D volumes. The indices are 0 based.
Parameters
• imageIdIndex: number
Returns
number
Defined in
packages/core/src/cache/classes/ImageVolume.ts:298
invalidate()
invalidate():
void
Returns
void
Defined in
packages/core/src/cache/classes/ImageVolume.ts:252
isDynamicVolume()
isDynamicVolume():
boolean
return true if it is a 4D volume or false if it is 3D volume
Returns
boolean
Defined in
packages/core/src/cache/classes/ImageVolume.ts:209
load()
load(
callback
?):void
Parameters
• callback?
Returns
void
Defined in
packages/core/src/cache/classes/ImageVolume.ts:235
modified()
modified():
void
Updates the internals of the volume to reflect the changes in the underlying scalar data. This should be called when the scalar data is modified externally
Returns
void
Defined in
packages/core/src/cache/classes/ImageVolume.ts:265
removeFromCache()
removeFromCache():
void
Returns
void