Open norman-ma opened 2 years ago
This is where the FrameTime property is retireved and the framerate derived.
This is eventually added to the viewportSpecificData
but not to a viewportSpecificData.cine
object.
const cineModule = cornerstone.metaData.get('cineModule', imageId) || {};
const { frameTime } = cineModule;
const frameRate = formatNumberPrecision(1000 / frameTime, 1);
This is the CINE_MODULE
handler in the metaDataProvider. It only gets the frameTime
.
case WADO_IMAGE_LOADER_TAGS.CINE_MODULE:
metadata = {
frameTime: instance.FrameTime,
};
break;
In this code when we run the multiframe US, the
viewportSpecificData
object does not have acine
property and so the cine framerate remains the default of 24.viewportSpecificData
does have aframerate
property however.https://github.com/mieweb/OHIF-Viewers/blob/1cc94f36a77cccb34cab68dcd7f991241801290f/extensions/cornerstone/src/ConnectedCornerstoneViewport.js#L41