File tree 1 file changed +2
-3
lines changed
examples/wadourimultiframe
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ <h1>Example of displaying a DICOM P10 multiframe images using Cornerstone</h1>
112
112
cornerstoneWADOImageLoader . wadouri . dataSetCacheManager . load ( url , cornerstoneWADOImageLoader . internal . xhrRequest ) . then ( function ( dataSet ) {
113
113
// dataset is now loaded, get the # of frames so we can build the array of imageIds
114
114
var numFrames = dataSet . intString ( 'x00280008' ) ;
115
+ var FrameRate = 1000 / dataSet . floatString ( 'x00181063' ) ;
115
116
if ( ! numFrames ) {
116
117
alert ( 'Missing element NumberOfFrames (0028,0008)' ) ;
117
118
return ;
@@ -146,9 +147,7 @@ <h1>Example of displaying a DICOM P10 multiframe images using Cornerstone</h1>
146
147
cornerstoneTools . addStackStateManager ( element , [ 'stack' , 'playClip' ] ) ;
147
148
cornerstoneTools . addToolState ( element , 'stack' , stack ) ;
148
149
// 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 ) ;
152
151
loaded = true ;
153
152
}
154
153
} , function ( err ) {
You can’t perform that action at this time.
0 commit comments