Skip to content

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

Open
@nagychris

Description

@nagychris

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions