@@ -772,7 +772,7 @@ def _execute_value_target_dijkstra(
772
772
voxel_graph_ptr
773
773
)
774
774
elif dtype in (np.int64, np.uint64):
775
- arr_memview64 = data.astype (np.uint64)
775
+ arr_memview64 = data.view (np.uint64)
776
776
if sixtyfourbit:
777
777
output64 = value_target_dijkstra3d[uint64_t, uint64_t](
778
778
& arr_memview64[0 ,0 ,0 ],
@@ -788,7 +788,7 @@ def _execute_value_target_dijkstra(
788
788
voxel_graph_ptr
789
789
)
790
790
elif dtype in (np.int32, np.uint32):
791
- arr_memview32 = data.astype (np.uint32)
791
+ arr_memview32 = data.view (np.uint32)
792
792
if sixtyfourbit:
793
793
output64 = value_target_dijkstra3d[uint32_t, uint64_t](
794
794
& arr_memview32[0 ,0 ,0 ],
@@ -804,7 +804,7 @@ def _execute_value_target_dijkstra(
804
804
voxel_graph_ptr
805
805
)
806
806
elif dtype in (np.int16, np.uint16):
807
- arr_memview16 = data.astype (np.uint16)
807
+ arr_memview16 = data.view (np.uint16)
808
808
if sixtyfourbit:
809
809
output64 = value_target_dijkstra3d[uint16_t, uint64_t](
810
810
& arr_memview16[0 ,0 ,0 ],
@@ -820,7 +820,7 @@ def _execute_value_target_dijkstra(
820
820
voxel_graph_ptr
821
821
)
822
822
elif dtype in (np.int8, np.uint8, bool ):
823
- arr_memview8 = data.astype (np.uint8)
823
+ arr_memview8 = data.view (np.uint8)
824
824
if sixtyfourbit:
825
825
output64 = value_target_dijkstra3d[uint8_t, uint64_t](
826
826
& arr_memview8[0 ,0 ,0 ],
@@ -1607,31 +1607,31 @@ def _execute_distance_field(data, sources, connectivity, voxel_graph):
1607
1607
voxel_graph_ptr, max_loc
1608
1608
)
1609
1609
elif dtype in (np.int64, np.uint64):
1610
- arr_memview64 = data.astype (np.uint64)
1610
+ arr_memview64 = data.view (np.uint64)
1611
1611
dist = distance_field3d[uint64_t](
1612
1612
& arr_memview64[0 ,0 ,0 ],
1613
1613
sx, sy, sz,
1614
1614
src, connectivity,
1615
1615
voxel_graph_ptr, max_loc
1616
1616
)
1617
1617
elif dtype in (np.uint32, np.int32):
1618
- arr_memview32 = data.astype (np.uint32)
1618
+ arr_memview32 = data.view (np.uint32)
1619
1619
dist = distance_field3d[uint32_t](
1620
1620
& arr_memview32[0 ,0 ,0 ],
1621
1621
sx, sy, sz,
1622
1622
src, connectivity,
1623
1623
voxel_graph_ptr, max_loc
1624
1624
)
1625
1625
elif dtype in (np.int16, np.uint16):
1626
- arr_memview16 = data.astype (np.uint16)
1626
+ arr_memview16 = data.view (np.uint16)
1627
1627
dist = distance_field3d[uint16_t](
1628
1628
& arr_memview16[0 ,0 ,0 ],
1629
1629
sx, sy, sz,
1630
1630
src, connectivity,
1631
1631
voxel_graph_ptr, max_loc
1632
1632
)
1633
1633
elif dtype in (np.int8, np.uint8, bool ):
1634
- arr_memview8 = data.astype (np.uint8)
1634
+ arr_memview8 = data.view (np.uint8)
1635
1635
dist = distance_field3d[uint8_t](
1636
1636
& arr_memview8[0 ,0 ,0 ],
1637
1637
sx, sy, sz,
@@ -1720,7 +1720,7 @@ def _execute_parental_field(data, source, connectivity, voxel_graph):
1720
1720
voxel_graph_ptr
1721
1721
)
1722
1722
elif dtype in (np.int64, np.uint64):
1723
- arr_memview64 = data.astype (np.uint64)
1723
+ arr_memview64 = data.view (np.uint64)
1724
1724
if sixtyfourbit:
1725
1725
parental_field3d[uint64_t,uint64_t](
1726
1726
& arr_memview64[0 ,0 ,0 ],
@@ -1738,7 +1738,7 @@ def _execute_parental_field(data, source, connectivity, voxel_graph):
1738
1738
voxel_graph_ptr
1739
1739
)
1740
1740
elif dtype in (np.uint32, np.int32):
1741
- arr_memview32 = data.astype (np.uint32)
1741
+ arr_memview32 = data.view (np.uint32)
1742
1742
if sixtyfourbit:
1743
1743
parental_field3d[uint32_t,uint64_t](
1744
1744
& arr_memview32[0 ,0 ,0 ],
@@ -1756,7 +1756,7 @@ def _execute_parental_field(data, source, connectivity, voxel_graph):
1756
1756
voxel_graph_ptr
1757
1757
)
1758
1758
elif dtype in (np.int16, np.uint16):
1759
- arr_memview16 = data.astype (np.uint16)
1759
+ arr_memview16 = data.view (np.uint16)
1760
1760
if sixtyfourbit:
1761
1761
parental_field3d[uint16_t,uint64_t](
1762
1762
& arr_memview16[0 ,0 ,0 ],
@@ -1774,7 +1774,7 @@ def _execute_parental_field(data, source, connectivity, voxel_graph):
1774
1774
voxel_graph_ptr
1775
1775
)
1776
1776
elif dtype in (np.int8, np.uint8, bool ):
1777
- arr_memview8 = data.astype (np.uint8)
1777
+ arr_memview8 = data.view (np.uint8)
1778
1778
if sixtyfourbit:
1779
1779
parental_field3d[uint8_t,uint64_t](
1780
1780
& arr_memview8[0 ,0 ,0 ],
0 commit comments