# US 2020/0393567 A1 · Nearest neighbor search using compressed octrees representing high definition maps for autonomous vehicles

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0393567 A1
- Document ID: US20200393567A1
- Status: Published application
- Kind: A1
- Application number: 16/904,238
- Filed: 2020-06-17
- Published: 2020-12-17
- Earliest claimed: 2019-06-17
- Assignees: Deepmap Inc.
- Applicants: DeepMap Inc.
- Inventors: Derik Schroeter
- Web page: https://patentgrep.com/patent/US20200393567A1

## CPC

- G01S 17/894: Three-dimensional [3D] imaging with simultaneous measurement of time-of-flight at a two-dimensional [2D] array of receiver pixels, e.g. time-of-flight cameras or flash lidar
- G01S 17/931: of land vehicles
- G01C 21/16: by integrating acceleration or speed, i.e. inertial navigation
- G01C 21/3878: {Hierarchical structures, e.g. layering}
- G01S 17/933: of aircraft or spacecraft
- G01S 19/01: Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 16/24575: {using context}
- G06F 16/29: Geographical information databases
- G01S: RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01C: MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY (measuring liquid level G01F; radio navigation, determining distance or velocity by use of propagation effects, e.g. Doppler effects, propagation time, of radio waves, analogous arrangements using other waves G01S)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to an aspect of an embodiment, operations may comprise receiving a search query for points near a query-point, accessing a compressed octree representation of a point cloud comprising 3D points of a region, and traversing the compressed octree representation to identify regions that overlap a search space by, marking a current node as overlapping the search space responsive to determining that the current node is a leaf node, identifying a child node of the current node and performing a nearest neighbor search in the child node responsive to determining that a region represented by the current node overlaps the search space, and identifying a sibling node of the current node and performing the nearest neighbor search in the sibling node responsive to determining that a region represented by the current node does not overlap the search space.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving a search query for points near a query-point, the search query specifying a search space comprising the query-point and a search range;
accessing a compressed octree representation of a point cloud comprising three-dimensional (3D) points of a region, the compressed octree representation comprising nodes, at least some of the nodes storing a sibling link to a sibling node having the same parent node;
traversing the compressed octree representation to identify regions that overlap the search space, the traversing comprising:
responsive to determining that a current node is a leaf node, marking the node as overlapping the search space,
responsive to determining that a region represented by the current node overlaps the search space, identifying a child node of the current node and performing a nearest neighbor search in the child node, and
responsive to determining that the region represented by the current node does not overlap the search space, identifying a sibling node of the current node using the sibling link and performing the nearest neighbor search in the sibling node;
identifying at least one nearest neighbor node in a set of leaf nodes identified as overlapping the search space; and
using the at least one nearest neighbor node for performing an operation on the point cloud.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the nearest neighbor search is performed directly on the compressed octree representation without having to decompress the compressed octree representation.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the sibling link stores an index of the sibling node, the index identifying the sibling node in a linear array.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the sibling link stores an offset value that stores a relative position of the sibling node with respect to the current node.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the compressed octree representation is represented as a linear array of structures, each structure representing a node.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the linear array of structures stores the nodes in a depth first search order of traversal of the compressed octree representation.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein each node is represented as a byte such that each bit of the byte indicates whether a child node is present.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein:
the search query is received by an autonomous vehicle; and
the operation performed on the point cloud comprises performing localization of the autonomous vehicle.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the performances of either of the nearest neighbor searches further comprises performing nearest neighbor search with a maximum radius or performing a radius search which returns all points that lie within a radius of the query-point.

### Claim 10

One or more non-transitory computer readable media storing instructions that in response to being executed by one or more processors, cause a computer system to perform operations, the operations comprising:
receiving a search query for points near a query-point, the search query specifying a search space comprising the query-point and a search range;
accessing a compressed octree representation of a point cloud comprising three-dimensional (3D) points of a region, the compressed octree representation comprising nodes, at least some of the nodes storing a sibling link to a sibling node having the same parent node;
traversing the compressed octree representation to identify regions that overlap the search space, the traversing comprising:
responsive to determining that a current node is a leaf node, marking the node as overlapping the search space,
responsive to determining that a region represented by the current node overlaps the search space, identifying a child node of the current node and performing a nearest neighbor search in the child node, and
responsive to determining that the region represented by the current node does not overlap the search space, identifying a sibling node of the current node using the sibling link and performing the nearest neighbor search in the sibling node;
identifying at least one nearest neighbor node in a set of leaf nodes identified as overlapping the search space; and
using the at least one nearest neighbor node for performing an operation on the point cloud.

### Claim 11 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein the nearest neighbor search is performed directly on the compressed octree representation without having to decompress the compressed octree representation.

### Claim 12 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein the sibling link stores an index of the sibling node, the index identifying the sibling node in a linear array.

### Claim 13 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein the sibling link stores an offset value that stores a relative position of the sibling node with respect to the current node.

### Claim 14 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein the compressed octree representation is represented as a linear array of structures, each structure representing a node.

### Claim 15 (depends on 14)

The one or more non-transitory computer-readable media of claim 14, wherein the linear array of structures stores the nodes in a depth first search order of traversal of the compressed octree representation.

### Claim 16 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein each node is represented as a byte such that each bit of the byte indicates whether a child node is present.

### Claim 17 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein:
the search query is received by an autonomous vehicle; and
the operation performed on the point cloud comprises performing localization of the autonomous vehicle.

### Claim 18 (depends on 10)

The one or more non-transitory computer-readable media of claim 10, wherein the performances of either of the nearest neighbor searches further comprises performing nearest neighbor search with a maximum radius or performing a radius search which returns all points that lie within a radius of the query-point.

### Claim 19

A computer system comprising:
one or more processors; and
one or more non-transitory computer readable media storing instructions that in response to being executed by the one or more processors, cause the computer system to perform operations, the operations comprising:
receiving a search query for points near a query-point, the search query specifying a search space comprising the query-point and a search range;
accessing a compressed octree representation of a point cloud comprising three-dimensional (3D) points of a region, the compressed octree representation comprising nodes, at least some of the nodes storing a sibling link to a sibling node having the same parent node;
traversing the compressed octree representation to identify regions that overlap the search space, the traversing comprising:
responsive to determining that a current node is a leaf node, marking the node as overlapping the search space,
responsive to determining that a region represented by the current node overlaps the search space, identifying a child node of the current node and performing a nearest neighbor search in the child node, and
responsive to determining that the region represented by the current node does not overlap the search space, identifying a sibling node of the current node using the sibling link and performing the nearest neighbor search in the sibling node;
identifying at least one nearest neighbor node in a set of leaf nodes identified as overlapping the search space; and
using the at least one nearest neighbor node for performing an operation on the point cloud.

### Claim 20 (depends on 19)

The computer system of claim 19, wherein the nearest neighbor search is performed directly on the compressed octree representation without having to decompress the compressed octree representation.

### Claim 21 (depends on 19)

The computer system of claim 19, wherein the sibling link stores an index of the sibling node, the index identifying the sibling node in a linear array.

### Claim 22 (depends on 19)

The computer system of claim 19, wherein the sibling link stores an offset value that stores a relative position of the sibling node with respect to the current node.

### Claim 23 (depends on 19)

The computer system of claim 19, wherein the compressed octree representation is represented as a linear array of structures, each structure representing a node.

### Claim 24 (depends on 23)

The computer system of claim 23, wherein the linear array of structures stores the nodes in a depth first search order of traversal of the compressed octree representation.

### Claim 25 (depends on 19)

The computer system of claim 19, wherein each node is represented as a byte such that each bit of the byte indicates whether a child node is present.

### Claim 26 (depends on 19)

The computer system of claim 19, wherein:
the search query is received by an autonomous vehicle; and
the operation performed on the point cloud comprises performing localization of the autonomous vehicle.

### Claim 27 (depends on 19)

The computer system of claim 19, wherein the performances of either of the nearest neighbor searches further comprises performing nearest neighbor search with a maximum radius or performing a radius search which returns all points that lie within a radius of the query-point.
