File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def _get_viewer_image(image, label=False):
7373
7474 if HAVE_ITK :
7575 import itk
76- if isinstance (image , itk .Image ):
76+ if isinstance (image , itk .Image ) or isinstance ( image , itk . VectorImage ) :
7777 ngff_image = itk_image_to_ngff_image (image )
7878 multiscales = to_multiscales (ngff_image , method = method )
7979 to_ngff_zarr (store , multiscales , chunk_store = chunk_store )
@@ -189,6 +189,8 @@ def _detect_render_type(data, input_type) -> RenderType:
189189 import itk
190190 if isinstance (data , itk .Image ):
191191 return RenderType .IMAGE
192+ elif isinstance (data , itk .VectorImage ):
193+ return RenderType .IMAGE
192194 elif isinstance (data , itk .PointSet ):
193195 return RenderType .POINT_SET
194196 if HAVE_MULTISCALE_SPATIAL_IMAGE :
You can’t perform that action at this time.
0 commit comments