Skip to content

Commit bd130d4

Browse files
authored
docs: FrameRate is set to DICOM frame rate now (#453)
1 parent 9d71753 commit bd130d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/wadourimultiframe/index.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ <h1>Example of displaying a DICOM P10 multiframe images using Cornerstone</h1>
112112
cornerstoneWADOImageLoader.wadouri.dataSetCacheManager.load(url, cornerstoneWADOImageLoader.internal.xhrRequest).then(function(dataSet) {
113113
// dataset is now loaded, get the # of frames so we can build the array of imageIds
114114
var numFrames = dataSet.intString('x00280008');
115+
var FrameRate = 1000/dataSet.floatString('x00181063');
115116
if(!numFrames) {
116117
alert('Missing element NumberOfFrames (0028,0008)');
117118
return;
@@ -146,9 +147,7 @@ <h1>Example of displaying a DICOM P10 multiframe images using Cornerstone</h1>
146147
cornerstoneTools.addStackStateManager(element, ['stack', 'playClip']);
147148
cornerstoneTools.addToolState(element, 'stack', stack);
148149
// Start playing the clip
149-
// TODO: extract the frame rate from the dataset
150-
var frameRate = 10;
151-
cornerstoneTools.playClip(element, frameRate);
150+
cornerstoneTools.playClip(element, FrameRate);
152151
loaded = true;
153152
}
154153
}, function(err) {

0 commit comments

Comments
 (0)