Skip to content

Commit

Permalink
fix(src/store/modules/segmentationModule/getLabelmap2D.js): add segme… (
Browse files Browse the repository at this point in the history
#1096)

* fix(src/store/modules/segmentationModule/getLabelmap2D.js): add segmentsOnLabelmap to newly generate
  • Loading branch information
JamesAPetts authored Oct 9, 2019
1 parent e7eaa37 commit 11021f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion netlify-example/brush/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ <h2>
];
*/


const imageIds = [
'example://1',
'example://2'
Expand Down
3 changes: 2 additions & 1 deletion src/store/modules/segmentationModule/getLabelmap2D.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import getElement from './getElement';
import { getToolState } from '../../../stateManagement/toolState.js';
import getSegmentsOnPixelData from './getSegmentsOnPixeldata';
import addLabelmap3D from './addLabelmap3D';
import addLabelmap2D from './addLabelmap2D';
import external from '../../../externalModules';
Expand Down Expand Up @@ -133,7 +134,7 @@ export function getLabelmap2DByImageIdIndex(

labelmap3D.labelmaps2D[imageIdIndex] = {
pixelData,
getSegmentIndexes: () => new Set(pixelData),
segmentsOnLabelmap: getSegmentsOnPixelData(pixelData),
};
}

Expand Down

0 comments on commit 11021f2

Please sign in to comment.