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
feat: PlanarFreehandROI stats #326
feat: PlanarFreehandROI stats #326
Conversation
✅ Deploy Preview for cornerstone-3d-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@lscoder, can you please review this as soon as possible? |
@m00n620 Users should be able to drag and drop labels but it is broken |
@lscoder , it requires heavy calculation for stats, so I didn't implement moving stats, should we essentially need this feature? |
All labels work in the same way and we follow the same standard to all tools. Why does it need heavy calculation when moving the label? The points should be the same and it could use the stats from the cache. |
There are some improvements to this PR, but not there yet
cb22d03c-1614-4dbc-be79-57d93e791cdf.webm |
Please ensure that you have tested store/remember with the @cornerstonejs/adapters DICOM SR reader and writer. Those should be able to record and restore the Planar Freehand object with the updated measurements data and position. |
@sedghi , this comment has been resolved, please take a look again. |
@wayfarer3130 , can you please be more specific? it would be great if you can comment more for how to test storing/remembering with the @cornerstonejs/adapters DICOM SR reader and writer on this tool. |
@m00n620 @wayfarer3130 We can focus on performance for stats for this PR and deal with SR later. |
@sedghi , can you please be more specific about performance issues? I tried locally and I think it's working well. |
Can you send me a video capturing the link I sent you when you draw a contour and enable text box and enable again? |
@sedghi , I found out that there are some performance issues when I draw large-area contours. I will do more adjustments and let you know when it's ready. |
You need to embed this within a framework such as OHIF that has a store/remember facility. I'd like to add this to the CS3D with a set of examples, but that isn't available yet. I think proceeding without the adapters is probably worthwhile, as the save/load can then be added separately. |
@m00n620 It seems stats are being recalculated when user draws new ROIs even when it is not needed because it gets slower considerably. After comparing to the video shared by Alireza the textboxes were being removed but not recalculated in the middle of the drawing process and now they are not being removed but recalculated on every mouse move event. 2023-04-13.11-01-11.mp41st ROI - OK |
@lscoder , this should be fixed now. please check again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sedghi - I've tested the various cases that were complained about, and also looked at the various comments, and I think they are all addressed. If you are ok with that, then I can merge this. I think it is sufficiently ready to be worth including now - not perfect, but better than before.
@lscoder , can you please take a look again? |
LGTM |
Have been looking for PlanarFreehandROI stats in OHIF Viewer V3. Has this been integrated with OHIF Viewer? If not, can you please guide me with the steps to do the same. Thanks Adding some additional details on the steps tried so far:
However, this is not getting called when the PlanarFreehandROI tool is used and no stats are displayed in OHIF Viewport. |
@rghgit1 , you should set |
Thanks a ton. I had set |
Display PlanarFreehandROI stats like other ROI tools (Elliptical, Rectangle).