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] fillAlpha in setStyle Has No Effect When Using LABELMAP_EDGE_PROJECTION_BLEND #1841

Open
stada526 opened this issue Feb 20, 2025 · 0 comments

Comments

@stada526
Copy link
Contributor

Describe the Bug

When using LABELMAP_EDGE_PROJECTION_BLEND, the fillAlpha specified in setStyle will not be applied to the segmentation and viewport.

Steps to Reproduce

In examples/labelmapMIP/index.ts, specify fillAlpha: 0.5 in the setStyle function as shown below, and you'll see that the segments in the MIP viewer are not filled.

  segmentation.config.style.setStyle(
    {
      type: csToolsEnums.SegmentationRepresentations.Labelmap,
      viewportId: viewportId2,
    },
    {
      fillAlpha: 0.5,
      activeSegmentOutlineWidthDelta: 3,
    }
  );

The current behavior

fillAlpha specified in setStyle will not be applied properly.

The expected behavior

fillAlpha specified in setStyle will be applied.

OS

maxOS 15.1

Node version

v21.7.1

Browser

Chrome 132.0.6834.162

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