Skip to content

Commit

Permalink
fix(image_data): use view on ITK image pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Sep 13, 2023
1 parent d3a7b0c commit 0296c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/volview_server/transformers/image_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def itk_to_vtk_image(itk_image):
raise ConvertError("Provided data is not an ITK image")

size = list(itk_image.GetLargestPossibleRegion().GetSize())
values = itk.GetArrayFromImage(itk_image).flatten(order="C")
values = itk.GetArrayViewFromImage(itk_image).flatten(order="C")
return {
"vtkClass": "vtkImageData",
"dataDescription": 8,
Expand Down

0 comments on commit 0296c0b

Please sign in to comment.