Skip to content

Frametimes - Auto - #2939

Closed
Rayhan-011 wants to merge 4 commits into
OHIF:v2-legacyfrom
Rayhan-011:master
Closed

Rayhan-011 wants to merge 4 commits into
OHIF:v2-legacyfrom
Rayhan-011:master

Conversation

@Rayhan-011

Copy link
Copy Markdown
Contributor

There are a few gaps in functionality that we need to add to the open source OHIF code:

  1. The viewer needs the ability to load ultrasound cine and auto-play (without the user needing to press the play button). The framerate should be set automatically based on the stored frametime which is stored in the DICOM tag (0018,1063). See: https://github.com/OHIF/Viewers/blob/master/platform/ui/src/viewer/PlayClipButton.js

  2. Also the animation should be smooth when frametimes are short. In the existing code, the animation is not smooth when frametimes are short (greater than 30fps). The code shoud instead set a resonable framerate (like less than 60fps) and then when animation frames are needed, calculate the proper frame based on actual elapsed time since the last frame. This would mean that the animation would play in real time even if the computer cannot process the frames fast enough. See: https://github.com/cornerstonejs/cornerstoneTools/blob/9ea015d9d8dbb2d1be43ca9c1f7d6bf61f153910/src/stackTools/playClip.js#L259

  3. Reference lines should be displayed on the image. This is a feature that is currently not available in the open source OHIF code but is available in Cornerstone. https://tools.cornerstonejs.org/examples/tools/reference-lines.html

Rayhan-011 and others added 3 commits August 19, 2022 15:14
@codecov

codecov Bot commented Sep 17, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #2939 (5995b4e) into master (fe57c00) will decrease coverage by 0.74%.
The diff coverage is 2.06%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2939      +/-   ##
==========================================
- Coverage   12.68%   11.93%   -0.75%     
==========================================
  Files         306      307       +1     
  Lines        8233     8456     +223     
  Branches     1593     1680      +87     
==========================================
- Hits         1044     1009      -35     
- Misses       5797     5959     +162     
- Partials     1392     1488      +96     
Impacted Files Coverage Δ
...latform/core/src/DICOMSR/SCOORD3D/parseSCOORD3D.js 2.63% <0.00%> (-0.76%) ⬇️
.../core/src/DICOMSR/SCOORD3D/utils/addMeasurement.js 5.40% <ø> (ø)
.../DICOMSR/SCOORD3D/utils/getReferencedImagesList.js 6.25% <0.00%> (-0.90%) ⬇️
...re/src/DICOMSR/SCOORD3D/utils/getRenderableData.js 1.72% <0.00%> (-0.07%) ⬇️
...orm/core/src/DICOMSR/parseDicomStructuredReport.js 7.50% <0.00%> (-1.60%) ⬇️
platform/core/src/classes/HotkeysManager.js 76.66% <0.00%> (ø)
platform/core/src/classes/StudyLoadingListener.js 1.03% <0.00%> (+0.01%) ⬆️
...latform/core/src/classes/metadata/StudyMetadata.js 1.25% <0.00%> (-0.04%) ⬇️
.../core/src/measurements/tools/dicomSRDisplayTool.js 50.00% <0.00%> (ø)
.../src/studies/services/wado/studyInstanceHelpers.js 1.56% <0.00%> (-0.48%) ⬇️
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7e1d2c...5995b4e. Read the comment docs.

@Rayhan-011

Copy link
Copy Markdown
Contributor Author

@horner can you please check this pull request - Thanks

@sedghi
sedghi requested a review from igoroctaviano October 7, 2022 02:35
@sedghi
sedghi changed the base branch from master to v2-legacy June 19, 2023 13:13
@sedghi

sedghi commented Jun 19, 2023

Copy link
Copy Markdown
Member

base has changed, read more here #3477

@sedghi

sedghi commented Oct 4, 2023

Copy link
Copy Markdown
Member

we should investigate this in v3

@Rayhan-011

Copy link
Copy Markdown
Contributor Author

we should investigate this in v3

I committed my code with functionality addition that you can use in V3

@sedghi

sedghi commented Oct 5, 2023

Copy link
Copy Markdown
Member

Can you then maybe change the base to master?

@jbocce

jbocce commented Oct 18, 2023

Copy link
Copy Markdown
Collaborator

This PR is being closed in favour of this new PR #3735 which targets the most current master branch. Thanks @Rayhan-011 for the inspiration and ideas!

@jbocce jbocce closed this Oct 18, 2023
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

Successfully merging this pull request may close these issues.

3 participants