Methods
applyWWWCRegion()
- Source:
Calculates the minimum and maximum value in the given pixel array
calculateMinMaxMean()
- Source:
Calculates the minimum, maximum, and mean value in the given pixel array
createMagnificationCanvas()
- Source:
Creates the magnifying glass canvas
dragCallback()
- Source:
Draws the rectangular region while the touch or mouse event drag occurs
dragCallback()
- Source:
Drag callback is triggered by both the touch and mouse magnify tools
drawMagnificationTool()
- Source:
Draws the magnifying glass
getPlayClipTimeouts(vector, speed) → {Array}
- Source:
[private] Turns a Frame Time Vector (0018,1065) array into a normalized array of timeouts. Each element
... of the resulting array represents the amount of time each frame will remain on the screen.
Parameters:
| Name | Type | Description |
|---|---|---|
vector |
Array | A Frame Time Vector (0018,1065) as specified in section C.7.6.5.1.2 of DICOM standard. |
speed |
Number | A speed factor which will be applied to each element of the resulting array. |
Returns:
An array with timeouts for each animation frame.
- Type
- Array
mouseDownCallback()
- Source:
Records the start point and attaches the drag event handler
mouseDownCallback()
- Source:
Draw the magnifying glass on mouseDown, and begin tracking mouse movements
mouseUpCallback()
- Source:
Remove the magnifying glass when the mouse event ends
onImageRendered()
- Source:
Draw regions on image
performThresholding()
- Source:
Perform the thresholding on a stack
playClip(element, framesPerSecond)
- Source:
Starts playing a clip or adjusts the frame rate of an already playing clip. framesPerSecond is
optional and defaults to 30 if not specified. A negative framesPerSecond will play the clip in reverse.
The element must be a stack of images
Parameters:
| Name | Type | Description |
|---|---|---|
element |
||
framesPerSecond |
playClip(element, framesPerSecond)
Starts playing a clip of different time series of the same image or adjusts the frame rate of an
already playing clip. framesPerSecond is optional and defaults to 30 if not specified. A negative
framesPerSecond will play the clip in reverse.
The element must have time series
Parameters:
| Name | Type | Description |
|---|---|---|
element |
||
framesPerSecond |
recordStartPoint()
- Source:
Records the start point of the click or touch
removeMagnificationCanvas()
- Source:
Find the magnifying glass canvas and remove it
stopClip()
- Source:
Stops an already playing clip.
* @param element
stopClip()
Stops an already playing clip.
* @param element
stopClipWithData(playClipData)
- Source:
[private] Performs the heavy lifting of stopping an ongoing animation.
Parameters:
| Name | Type | Description |
|---|---|---|
playClipData |
Object | The data from playClip that needs to be stopped. |
Returns:
void
triggerStopEvent(element)
- Source:
[private] Trigger playClip tool stop event.
Parameters:
| Name | Type | Description |
|---|---|---|
element |
Returns:
void