File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
examples/wadourimultiframe Expand file tree Collapse file tree 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>
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 ) {
You can’t perform that action at this time.
0 commit comments