Skip to content

Nrrd loader in segmentaion mode cannot display the 3d mesh in correct position for each slice. #25718

@LinkunGao

Description

@LinkunGao

Description

  • the saggital and coronal view's slice space is too big, so when we drag the slice index to 0 or maximum(384). we can see the slices are beyond the boundaries.
    image

  • the axial view's slice space is small, it cannot reach the saggital and coronal boundary
    image

Idealy, it should be displaiedlike a box.

Reproduction steps

  1. use nrrd loader
  2. set segmentation mode
  3. load nrrd file, then add all view slices to scene.

Code

loader = new NRRDLoader();
loader.setSegmentation(true);
 loader.load(url, function (volume) {
      const sliceZ = volume.extractSlice("z", initIndexZ);
      const sliceY = volume.extractSlice("y", initIndexY);
      const sliceX = volume.extractSlice("x", initIndexX);
     scene.add(sliceX.mesh, sliceY.mesh, sliceZ.mesh)
})

Live example

segmentation app

Screenshots

No response

Version

r151

Device

No response

Browser

Chrome

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions