Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framerate & Cine issues #4

Open
norman-ma opened this issue Jun 17, 2022 · 2 comments
Open

Framerate & Cine issues #4

norman-ma opened this issue Jun 17, 2022 · 2 comments

Comments

@norman-ma
Copy link
Collaborator

norman-ma commented Jun 17, 2022

In this code when we run the multiframe US, the viewportSpecificData object does not have a cine property and so the cine framerate remains the default of 24. viewportSpecificData does have a framerate property however.

if (viewportSpecificData && viewportSpecificData.cine) {

if (viewportSpecificData && viewportSpecificData.cine) {
    const cine = viewportSpecificData.cine;

    isPlaying = cine.isPlaying === true;
    frameRate = cine.cineFrameRate || frameRate;
  }
@norman-ma
Copy link
Collaborator Author

norman-ma commented Jun 17, 2022

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 cineModule = cornerstone.metaData.get('cineModule', imageId) || {};
const { frameTime } = cineModule;
const frameRate = formatNumberPrecision(1000 / frameTime, 1);

@norman-ma
Copy link
Collaborator Author

This is the CINE_MODULE handler in the metaDataProvider. It only gets the frameTime.

case WADO_IMAGE_LOADER_TAGS.CINE_MODULE:

case WADO_IMAGE_LOADER_TAGS.CINE_MODULE:
        metadata = {
          frameTime: instance.FrameTime,
        };

        break;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant