You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
double downsample =1.0def imageData = getCurrentImageData()
def labelServer =newLabeledImageServer.Builder(imageData)
.downsample(downsample) // Choose server resolution; this should match the resolution at which tiles are exported
.useInstanceLabels()
.useAnnotations()
.multichannelOutput(false) // If true, each label refers to the channel of a multichannel binary image (required for multiclass probability)
.build()
def path = buildFilePath(PROJECT_BASE_DIR, "labels.tif")
writeImage(labelServer, path)
Expected behavior
A TIFF stack is written that contains 3 annotations on different z-slices.
Screenshots
All 3 annotations are included on slices where only one should appear.
Desktop (please complete the following information):
petebankhead
changed the title
Labeled image export doesn't work as expected for z-stacks
Labeled image instance export doesn't work as expected for z-stacks
Aug 23, 2023
Bug report
Describe the bug
Exporting annotations across multiple z-slices can fail, in that annotations are drawn on more slices than they should.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A TIFF stack is written that contains 3 annotations on different z-slices.
Screenshots
All 3 annotations are included on slices where only one should appear.
Desktop (please complete the following information):
Additional context
Problem first noticed when replying to https://forum.image.sc/t/exporting-annotations-for-all-z-stack/81393/3
The text was updated successfully, but these errors were encountered: