Skip to content

Commit 3284978

Browse files
Thibault-Pelletierjourdain
authored andcommitted
fix(VtkWindow): fix performances during image flip
- Remove array allocation during image flip
1 parent fa7a95d commit 3284978

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

trame_rca/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def img_cols_rows(self):
139139
scalars = image_data.GetPointData().GetScalars()
140140
np_image = vtk_to_numpy(scalars)
141141
np_image = np_image.reshape((cols, rows, -1))
142-
np_image = np_image[::-1, :, :]
142+
np_image[:] = np_image[::-1, :, :]
143143
return np_image, cols, rows
144144

145145
def process_resize_event(self, width, height):

0 commit comments

Comments
 (0)