Skip to content

Commit

Permalink
fix: Unset voiLUT when using WWWC or WWWCRegion tool (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
swederik authored Mar 23, 2020
1 parent 9a71b62 commit b4afdef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/WwwcRegionTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ const _applyWWWCRegion = function(evt, config) {
);
viewport.voi.windowCenter = minMaxMean.mean;

// Unset any existing VOI LUT
viewport.voiLUT = undefined;

external.cornerstone.setViewport(element, viewport);
external.cornerstone.updateImage(element);
};
Expand Down
3 changes: 3 additions & 0 deletions src/tools/WwwcTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ function basicLevelingStrategy(evt) {
eventData.viewport.voi.windowWidth += deltaY;
eventData.viewport.voi.windowCenter += deltaX;
}

// Unset any existing VOI LUT
eventData.viewport.voiLUT = undefined;
}

0 comments on commit b4afdef

Please sign in to comment.