Closed rghgit1 closed 1 year ago
Did you try to set calculateStats
option in the PlanarFreehandROITool configuration?
Did you try to set
calculateStats
option in the PlanarFreehandROITool configuration?
Thanks a ton. I had set calculateStats
option to true, but was not at the right place. After setting calculateStats
to 'true' in toolsConfig for PlanarFreehandROI, stats are getting displayed.
Describe the Bug
Stats like Area, Std Dev, Mean, Max are not displayed for PlanarFreehandROI tool. As per this feat in cornerstonejs repo, stats are calculated for PlanarFreehandROI. https://github.com/cornerstonejs/cornerstone3D-beta/pull/326
1) Updated the dependencies to latest versions of cornerstonejs "@cornerstonejs/core": "^0.46.1", "@cornerstonejs/tools": "^0.67.1", 2) Ran 'yarn install' 3) The cornerstonejs code changes done as part of the above feature (https://github.com/cornerstonejs/cornerstone3D-beta/pull/326) is available under extensions\cornerstone\node_modules@cornerstonejs\tools\src\tools\annotation\PlanarFreehandROITool.ts
However, this is not getting called when the PlanarFreehandROI tool is used and no stats are displayed in OHIF Viewport. Any pointers on how to invoke this when PlanarFreehandROI tool is used in OHIF would be great. Thanks
Steps to Reproduce:
The current behavior
After marking and area using PlanarFreehandROI tool, the stats are not displayed.
The expected behavior
Display stats like Area, Std Dev, Mean, Max next to the PlanarFreehandROI marking