File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ def _get_viewer_point_sets(point_sets):
146
146
return xarray_data_array_to_numpy (point_sets )
147
147
if isinstance (point_sets , xr .Dataset ):
148
148
return xarray_data_set_to_numpy (point_sets )
149
+ if HAVE_ITK :
150
+ import itk
151
+ if isinstance (point_sets , itk .PointSet ):
152
+ return itk .array_from_vector_container (point_sets .GetPoints ())
149
153
return point_sets
150
154
151
155
@@ -173,6 +177,9 @@ def _detect_render_type(data, input_type) -> RenderType:
173
177
import itk
174
178
if isinstance (data , itk .Image ):
175
179
return RenderType .IMAGE
180
+ elif isinstance (data , itk .PointSet ):
181
+ print (f'isinstance(data, itk.PointSet)' , flush = True )
182
+ return RenderType .POINT_SET
176
183
if HAVE_MULTISCALE_SPATIAL_IMAGE :
177
184
from multiscale_spatial_image import MultiscaleSpatialImage
178
185
if isinstance (data , MultiscaleSpatialImage ):
You can’t perform that action at this time.
0 commit comments