MCPcopy Create free account
hub / github.com/NVIDIA/MinkowskiEngine / quantize

Function quantize

tests/python/strided_conv.py:51–60  ·  view source on GitHub ↗
(coordinates)

Source from the content-addressed store, hash-verified

49
50
51def quantize(coordinates):
52 D = coordinates.size(1) - 1
53 coordinate_manager = ME.CoordinateManager(
54 D=D, coordinate_map_type=ME.CoordinateMapType.CPU
55 )
56 coordinate_map_key = ME.CoordinateMapKey(convert_to_int_list(1, D), "")
57 key, (unique_map, inverse_map) = coordinate_manager.insert_and_map(
58 coordinates, *coordinate_map_key.get_key()
59 )
60 return unique_map, inverse_map
61
62
63def load_file(file_name, voxel_size):

Callers 1

load_fileFunction · 0.70

Calls 5

insert_and_mapMethod · 0.95
get_keyMethod · 0.95
convert_to_int_listFunction · 0.90
CoordinateMapKeyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected