Skip to content

Commit

Permalink
docs: FrameRate is set to DICOM frame rate now (cornerstonejs#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
horner committed Aug 3, 2022
1 parent abb0892 commit a6b58f8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ <h1>Example of displaying a DICOM P10 multiframe images using Cornerstone</h1>
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;
Expand Down Expand Up @@ -146,9 +147,7 @@ <h1>Example of displaying a DICOM P10 multiframe images using Cornerstone</h1>
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) {
Expand Down

0 comments on commit a6b58f8

Please sign in to comment.