We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf486f1 commit bfd319fCopy full SHA for bfd319f
itkwidgets/_transform_types.py
@@ -134,6 +134,8 @@ def _numpy_array_to_point_set(point_set_like):
134
point_values = np.asarray(point_set_like).astype(np.float32)
135
if len(
136
point_values.shape) > 1 and point_values.shape[1] == 2 or point_values.shape[1] == 3:
137
+ if not point_values.flags['CONTIGUOUS']:
138
+ point_values = np.ascontiguousarray(point_values)
139
if point_values.shape[1] == 2:
140
point_values = np.hstack(
141
(point_values, -5.0e-6 * np.ones((point_values.shape[0], 1)))).astype(np.float32)
0 commit comments