Skip to content

Commit

Permalink
Merge pull request #729 from thewtex/label-background-default
Browse files Browse the repository at this point in the history
fix: default label image weight for background label is 0.0
  • Loading branch information
thewtex authored Dec 19, 2023
2 parents 4ea7642 + cd25476 commit 2750710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rendering/VTKJS/Images/applyRenderedImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function applyRenderedImage(context, { data: { name } }) {
if (!labelImageWeights.has(label)) {
// 0 is usually the background label -- suppress it
label === 0
? labelImageWeights.set(label, 0.1)
? labelImageWeights.set(label, 0.0)
: labelImageWeights.set(label, 1.0)
labelImageWeightAdded = true
}
Expand Down

0 comments on commit 2750710

Please sign in to comment.