From a6b58f874e4f3d577991d39c6bb39eb47dc5c0aa Mon Sep 17 00:00:00 2001 From: Doug Horner Date: Wed, 3 Aug 2022 07:47:15 -0400 Subject: [PATCH] docs: FrameRate is set to DICOM frame rate now (#453) --- .../dicomImageLoader/examples/wadourimultiframe/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/dicomImageLoader/examples/wadourimultiframe/index.html b/packages/dicomImageLoader/examples/wadourimultiframe/index.html index 011152b974..a6f77c7eab 100644 --- a/packages/dicomImageLoader/examples/wadourimultiframe/index.html +++ b/packages/dicomImageLoader/examples/wadourimultiframe/index.html @@ -112,6 +112,7 @@

Example of displaying a DICOM P10 multiframe images using Cornerstone

cornerstoneWADOImageLoader.wadouri.dataSetCacheManager.load(url, cornerstoneWADOImageLoader.internal.xhrRequest).then(function(dataSet) { // dataset is now loaded, get the # of frames so we can build the array of imageIds var numFrames = dataSet.intString('x00280008'); + var FrameRate = 1000/dataSet.floatString('x00181063'); if(!numFrames) { alert('Missing element NumberOfFrames (0028,0008)'); return; @@ -146,9 +147,7 @@

Example of displaying a DICOM P10 multiframe images using Cornerstone

cornerstoneTools.addStackStateManager(element, ['stack', 'playClip']); cornerstoneTools.addToolState(element, 'stack', stack); // Start playing the clip - // TODO: extract the frame rate from the dataset - var frameRate = 10; - cornerstoneTools.playClip(element, frameRate); + cornerstoneTools.playClip(element, FrameRate); loaded = true; } }, function(err) {