Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ivmartel/dwv
/ functions
Functions
2,549 in github.com/ivmartel/dwv
⨍
Functions
2,549
◇
Types & classes
354
↓ 14 callers
Method
getViewLayersByDataId
* Get the view layers associated to a data id. * * @param {string} dataId The data id. * @returns {ViewLayer[]} The layers.
src/gui/stage.js:348
↓ 14 callers
Method
removeEventListener
* Remove an event listener from the app. * * @param {string} type The event type. * @param {Function} listener The function associated with t
src/tools/draw.js:1027
↓ 14 callers
Method
setWindowLevel
* Set the view window/level. * * @param {WindowLevel} wl The window and level. * @param {string} [name] Associated preset name, defaults to '
src/image/view.js:911
↓ 13 callers
Method
getA
* Get the radius of the ellipse on the horizontal axe. * * @returns {number} The radius of the ellipse on the horizontal axe.
src/math/ellipse.js:90
↓ 13 callers
Method
getActiveLayerGroup
* Get the active layer group. * The layer is available after the first loaded item. * * @returns {LayerGroup|undefined} The layer group.
src/app/application.js:460
↓ 13 callers
Method
getB
* Get the radius of the ellipse on the vertical axe. * * @returns {number} The radius of the ellipse on the vertical axe.
src/math/ellipse.js:99
↓ 13 callers
Method
getDeltaX
* Get the line delta in the X direction. * * @returns {number} The delta in the X direction.
src/math/line.js:78
↓ 13 callers
Method
getOrigins
* Get the object origins. * * @returns {Point3D[]} The object origins.
src/image/geometry.js:191
↓ 13 callers
Method
getRadius
* Get the radius of the circle. * * @returns {number} The radius of the circle.
src/math/circle.js:81
↓ 13 callers
Method
getX
* Get the X component of the vector. * * @returns {number} The X component of the vector.
src/math/vector.js:43
↓ 13 callers
Method
getY
* Get the Y component of the vector. * * @returns {number} The Y component of the vector.
src/math/vector.js:52
↓ 13 callers
Method
getZ
* Get the Z component of the vector. * * @returns {number} The Z component of the vector.
src/math/vector.js:61
↓ 13 callers
Function
range
(dataAccessor, start, maxIter, increment, blockMaxIter, blockIncrement, reverse1, reverse2)
src/image/iterator.js:65
↓ 13 callers
Method
render
* Render the current data. * * @param {string} dataId The data id to render. * @param {ViewConfig[]} [viewConfigs] The list of configs to ren
src/app/application.js:1255
↓ 13 callers
Method
run
* Run the filter. * * @param {*} args The filter arguments.
src/tools/filter.js:472
↓ 12 callers
Method
addEventListener
* Add an event listener to this class. * * @param {string} type The event type. * @param {Function} callback The function associated with the
src/gui/layerGroup.js:1684
↓ 12 callers
Method
create
* Creates the konva label. * * @param {Annotation} annotation The associated annotation. * @param {Style} style The drawing style. * @retu
src/tools/labelFactory.js:51
↓ 12 callers
Method
create
* Get an {@link Image} object from the read DICOM file. * * @param {Object<string, DataElement>} dataElements The DICOM tags. * @param {Uint8
src/image/maskFactory.js:404
↓ 12 callers
Method
getClosest
* Get the closest point to this in a Point3D list. * * @param {Point3D[]} pointList The list to check. * @returns {number} The index of the c
src/math/point.js:246
↓ 12 callers
Function
getDataElementPrefixByteSize
(vr, isImplicit)
src/dicom/dicomParser.js:564
↓ 12 callers
Method
getDeltaY
* Get the line delta in the Y direction. * * @returns {number} The delta in the Y direction.
src/math/line.js:87
↓ 12 callers
Method
getDivId
* Get the Id of the container div. * * @returns {string|undefined} The id of the div.
src/gui/layerGroup.js:351
↓ 12 callers
Function
getHtmlId
(prefix, root)
tests/pacs/viewer.ui.js:113
↓ 12 callers
Function
getMatrixFromName
(name)
src/math/orientation.js:61
↓ 12 callers
Function
getRootFromHtmlId
(prefix, htmlId)
tests/pacs/viewer.ui.js:124
↓ 12 callers
Function
getSuvFactor
(elements)
src/dicom/dicomPet.js:210
↓ 12 callers
Method
getZoomScale
* Get the zoom scale. * * @returns {Scalar2D} The scale as {x,y}.
src/gui/style.js:168
↓ 12 callers
Function
isMonochrome
(photometricInterpretation)
src/dicom/dicomImage.js:376
↓ 12 callers
Function
mergeObjects
(obj1, obj2, idKey, valueKey, idSuffix)
src/utils/operator.js:40
↓ 12 callers
Method
multiplyArray3D
* Multiply this matrix by a 3D array. * * @param {number[]} array3D The input 3D array. * @returns {number[]} The result 3D array.
src/math/matrix.js:187
↓ 12 callers
Method
norm
* Get the norm of the vector. * * @returns {number} The norm.
src/math/vector.js:94
↓ 12 callers
Method
normalisePoint
* Normalise a point to this size. * * @param {Point} point The input point. * @param {Point} [extra] Optional point used to fill extra dimens
src/image/size.js:321
↓ 12 callers
Method
pop
()
src/math/bucketQueue.js:39
↓ 12 callers
Function
readBits
(count)
src/decoders/pdfjs/jpx.js:1029
↓ 12 callers
Method
removeEventListener
* Remove an event listener from this class. * * @param {string} type The event type. * @param {Function} callback The function associated wit
src/gui/layerGroup.js:1695
↓ 12 callers
Function
setButtonPressed
(button, state)
tests/pacs/viewer.ui.icons.js:68
↓ 12 callers
Function
splitUri
(uri)
src/utils/uri.js:30
↓ 11 callers
Method
addPoint
* Add a point to the ROI. * * @param {Point2D} point The Point2D to add.
src/math/roi.js:59
↓ 11 callers
Method
displayToPlanePos
* Get a plane position from a display position. * * @param {Point2D} point2D The input point. * @returns {Point2D} The plane position.
src/gui/viewLayer.js:758
↓ 11 callers
Method
get2D
* Get the 2D base of this size. * * @returns {Scalar2D} The 2D base [0,1] as {x,y}.
src/image/size.js:283
↓ 11 callers
Function
getButton
(name)
tests/pacs/viewer.ui.icons.js:54
↓ 11 callers
Function
getFlags
(inputStr)
src/utils/string.js:89
↓ 11 callers
Function
getIdentityMat33
()
src/math/matrix.js:415
↓ 11 callers
Function
getMeasuredValue
(dataElements)
src/dicom/dicomMeasuredValue.js:72
↓ 11 callers
Method
getNumberOfComponents
* Get the numberOfComponents of the image. * * @returns {number} The numberOfComponents of the image.
src/image/image.js:663
↓ 11 callers
Method
getOrientation
* Get the object orientation. * * @returns {Matrix33} The object orientation.
src/image/geometry.js:297
↓ 11 callers
Method
getReferenceLayerId
* Get the reference layer id. * * @returns {string} The id.
src/gui/drawLayer.js:223
↓ 11 callers
Function
getTagFromDictionary
(tagName)
src/dicom/dicomTag.js:384
↓ 11 callers
Function
getTimeObj
(element)
src/dicom/dicomDate.js:68
↓ 11 callers
Function
getUrlFromUri
(uri)
src/utils/uri.js:10
↓ 11 callers
Function
insertTCell
(text, width)
tests/pacs/dcmweb.js:423
↓ 11 callers
Function
replaceFlags
(inputStr, values)
src/utils/string.js:115
↓ 11 callers
Method
setToolFeatures
* Set the tool live features. * * @param {object} list The list of features.
src/app/application.js:1727
↓ 10 callers
Method
add
* Add a new annotation. * * @param {Annotation} annotation The annotation to add. * @param {boolean} [propagate] Whether the event propagates
src/image/annotationGroup.js:146
↓ 10 callers
Method
add
* Add a new data. * * @param {string} dataId The data id. * @param {DicomData} data The data. * @returns {boolean} False if the data canno
src/app/dataController.js:648
↓ 10 callers
Method
appendOrigin
* Append an origin to the geometry. * * @param {Point3D} origin The origin to append. * @param {number} index The index at which to append.
src/image/geometry.js:438
↓ 10 callers
Function
cleanString
(inputStr)
src/dicom/dicomParser.js:205
↓ 10 callers
Method
crossProduct
* Get the cross product with another Vector3D, ie the * vector that is perpendicular to both a and b. * If both vectors are parallel, the cross
src/math/vector.js:112
↓ 10 callers
Method
getDataIds
* Get the list of ids in the data storage. * * @returns {string[]} The list of data ids.
src/app/application.js:367
↓ 10 callers
Function
getDate
(dateObj, timeObj)
src/dicom/dicomDate.js:102
↓ 10 callers
Function
getDateTimeObj
(element)
src/dicom/dicomDate.js:143
↓ 10 callers
Function
getElementsFromJSONTags
(simpleTags)
src/dicom/dicomWriter.js:1377
↓ 10 callers
Function
getUID
(tagName)
src/dicom/dicomWriter.js:112
↓ 10 callers
Method
getViewLayerById
* Get a view layer associated to a data id. * * @param {string} id The layer id. * @returns {ViewLayer|undefined} The layer.
src/gui/layerGroup.js:618
↓ 10 callers
Function
isEqualCode
(code1, code2)
src/dicom/dicomCode.js:81
↓ 10 callers
Method
isInBounds
* Check that an index is within bounds. * * @param {Index} index The index to check. * @param {number[]} dirs Optional list of directions to
src/image/size.js:188
↓ 10 callers
Function
isSimilar
(a, b, tol)
tests/utils/colour.test.js:22
↓ 10 callers
Method
isSimilar
* Check for Point3D similarity. * * @param {Point3D} rhs The other point to compare to. * @param {number} [tol] Optional number comparison to
src/math/point.js:198
↓ 10 callers
Method
multiply
* Multiply this matrix by another. * * @param {Matrix33} rhs The matrix to multiply by. * @returns {Matrix33} The product matrix.
src/math/matrix.js:152
↓ 10 callers
Method
multiplyPoint3D
* Multiply this matrix by a 3D point. * * @param {Point3D} point3D The input 3D point. * @returns {Point3D} The result 3D point.
src/math/matrix.js:262
↓ 9 callers
Method
#getFunc
* @param {string} name The image orientation. * @param {number} i The column index. * @param {number} j The row index. * @returns {number} Th
tests/dicom/mprPixGenerator.js:208
↓ 9 callers
Method
#interpretElement
* Interpret the data of an element. * * @param {DataElement} element The data element. * @param {DataReader} reader The raw data reader. *
src/dicom/dicomParser.js:997
↓ 9 callers
Method
#readDataElement
* Read a DICOM data element. * * Reference: [DICOM VRs]{@link http://dicom.nema.org/medical/dicom/2022a/output/chtml/part05/sect_6.2.html#table_
src/dicom/dicomParser.js:858
↓ 9 callers
Method
apply
* Apply the window level on an input value. * * @param {number} value The value to rescale as an integer. * @returns {number} The leveled val
src/image/voiLut.js:282
↓ 9 callers
Function
buildLut
* Build a LUT of size lut_range_max. * * @param {Function} func The i to lut function. * @returns {number[]} The LUT.
src/image/luts.js:13
↓ 9 callers
Function
clamp0to255
(a)
src/decoders/pdfjs/jpg.js:584
↓ 9 callers
Method
draw
* Draw the content (imageData) of the layer. * The imageData variable needs to be set. * * @fires App#renderstart * @fires App#renderend
src/gui/viewLayer.js:827
↓ 9 callers
Function
getAnnotationGroupDivId
* Get the annotation group divId. * * @param {string} dataId The data ID. * @returns {string} The divId.
tests/pacs/viewer.ui.annot.js:30
↓ 9 callers
Method
getBegin
* Get the begin point of the rectangle. * * @returns {Point2D} The begin point of the rectangle.
src/math/rectangle.js:70
↓ 9 callers
Method
getCurrentIndex
* Get the current index. * * @returns {Index|undefined} The current index.
src/image/view.js:709
↓ 9 callers
Function
getDicomCodeItem
(code)
src/dicom/dicomCode.js:130
↓ 9 callers
Function
getDicomMeasuredValueItem
(value)
src/dicom/dicomMeasuredValue.js:106
↓ 9 callers
Function
getOrientationName
(cosines)
src/math/orientation.js:181
↓ 9 callers
Method
getOrigin
* Get the first origin or at a given position. * * @param {Point} [position] Optional position. * @returns {Point3D} The origin.
src/image/view.js:773
↓ 9 callers
Function
getPixelSpacing
(elements)
src/dicom/dicomImage.js:193
↓ 9 callers
Method
getRescaleSlopeAndIntercept
* Get the rescale slope and intercept. * * @param {Index} [index] The index (only needed for non constant rsi). * @returns {RescaleSlopeAndIn
src/image/image.js:505
↓ 9 callers
Function
getScoordFromShape
(shape)
src/dicom/dicomSpatialCoordinate.js:134
↓ 9 callers
Function
getSopInstanceReference
(dataElements)
src/dicom/dicomSopInstanceReference.js:47
↓ 9 callers
Function
getSpatialCoordinate3D
(dataElements)
src/dicom/dicomSpatialCoordinate3D.js:59
↓ 9 callers
Method
hasValues
* Check if the input values are in the buffer. * Could loop through the whole volume, can get long for big data... * * @param {Array} values
src/image/image.js:747
↓ 9 callers
Method
normaliseIndex
* Normalise an index to this size. * * @param {Index} index The input index. * @param {Index} [extra] Optional index used to fill extra dimen
src/image/size.js:337
↓ 9 callers
Function
toStringId
(arr, dims)
src/utils/array.js:10
↓ 8 callers
Method
#augmentCallbackEvent
* Augment a callback event: adds loadtype to the event * passed to a callback. * * @param {object} callback The callback to update. * @pa
src/app/loadController.js:242
↓ 8 callers
Function
arrayMap
(arr0, arr1, func)
src/utils/array.js:100
↓ 8 callers
Method
asOneAndZeros
* Get this matrix with only zero and +/- ones instead of the maximum. * * @returns {Matrix33} The simplified matrix.
src/math/matrix.js:325
↓ 8 callers
Method
canLoadFile
* Check if the loader can load the provided file. * True if the file has a 'zip' extension. * * @param {File} file The file to check. * @r
src/io/zipLoader.js:152
↓ 8 callers
Method
canLoadMemory
* Check if the loader can load the provided memory object. * * @param {object} mem The memory object. * @returns {boolean} True if the object
src/io/zipLoader.js:201
↓ 8 callers
Function
capitaliseFirstLetter
(string)
src/utils/string.js:10
↓ 8 callers
Function
createImage
* Create the colour map image and add it to the document. * * @param {string} colourMapName The colour map name. * @param {object} colourMap The co
tests/image/pages/colourmaps.js:24
↓ 8 callers
Function
dateToDateObj
(date)
src/dicom/dicomDate.js:173
← previous
next →
101–200 of 2,549, ranked by callers