Skip to content

Commit c7bd4ae

Browse files
committed
BUG: to_itk_image understands itk.VectorImage
1 parent 31469f1 commit c7bd4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

itkwidgets/_transform_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _numpy_array_to_point_set(point_set_like):
232232

233233
def to_itk_image(image_like):
234234

235-
if isinstance(image_like, itk.Image):
235+
if isinstance(image_like, (itk.Image, itk.VectorImage)):
236236
return image_like
237237

238238
if is_arraylike(image_like):

0 commit comments

Comments
 (0)