Skip to content

Commit f1dbbda

Browse files
committed
BUG: set_label_image should call setLabelImage, not setImage
1 parent 4d93732 commit f1dbbda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

itkwidgets/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def set_label_image(self, label_image: Image):
256256
render_type = _detect_render_type(label_image, 'image')
257257
if render_type is RenderType.IMAGE:
258258
label_image = _get_viewer_image(label_image, label=True)
259-
self.queue_request('setImage', label_image)
259+
self.queue_request('setLabelImage', label_image)
260260
elif render_type is RenderType.POINT_SET:
261261
label_image = _get_viewer_point_sets(label_image)
262262
self.queue_request('setPointSets', label_image)

0 commit comments

Comments
 (0)