Open
Description
Describe the Bug
I am trying to calculate a boundingBox using the values returned by the getStatistics
utility function for segmentations.
However, I noticed that the function does not return any value for the min.pointIJK
value, even though the max.pointIJK
is set correctly.
Steps to Reproduce
- Go to demo: https://www.cornerstonejs.org/live-examples/labelmapinterpolation
- Open dev tools and go to
BasicStatsCalculator.ts
file - Set a breakpoint at line 162 (
return named
) - Draw a segment in the viewport with the brush tool
- inspect the
named
object and its properties ->min.pointIJK
isnull
The current behavior
min.pointIJK
is null
The expected behavior
min.pointIJK
is set to the minimum IJK values of the segment, similar to how max.pointIJK
is set to the maximum values.
OS
Ubuntu 24
Node version
22.7.0
Browser
Chrome latest
Activity