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

[Bug] getStatistics utility: min.pointIJK is null #1874

Open
nagychris opened this issue Mar 4, 2025 · 0 comments
Open

[Bug] getStatistics utility: min.pointIJK is null #1874

nagychris opened this issue Mar 4, 2025 · 0 comments

Comments

@nagychris
Copy link

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.

Image

Steps to Reproduce

  1. Go to demo: https://www.cornerstonejs.org/live-examples/labelmapinterpolation
  2. Open dev tools and go to BasicStatsCalculator.ts file
  3. Set a breakpoint at line 162 (return named)
  4. Draw a segment in the viewport with the brush tool
  5. inspect the named object and its properties -> min.pointIJK is null

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

@nagychris nagychris changed the title [Bug] getStatistics utility does not return pointIJK for min value (even though it does for max) [Bug] getStatistics utility: min.pointIJK is null Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant