# US 2023/0009035 A1 · Method for encoding a digital image in order to compress same

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

- Number: US 2023/0009035 A1
- Document ID: US20230009035A1
- Status: Published application
- Kind: A1
- Application number: 17/757,532
- Filed: 2020-12-16
- Published: 2023-01-12
- Earliest claimed: 2019-12-19
- Assignees: Shadow
- Applicants: Shadow
- Inventors: Amaury Darsch; Lucas Clarté
- Web page: https://patentgrep.com/patent/US20230009035A1

## CPC

- G06T 9/00: Image coding (bandwidth or redundancy reduction for static pictures H04N1/41; coding or decoding of static colour picture signals H04N1/64; methods or arrangements for coding, decoding, compressing or decompressing digital video signals H04N19/00)
- G06T 9/001: {Model-based coding, e.g. wire frame}
- H04N 19/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/90: using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The invention relates to a method of encoding a digital image in order to compress same, the digital image being defined as a point cloud associating a set of N pixels, designated as vertices, to a scalar intensity value. The method aims at establishing triangulation vertices of the digital image and implements the principles of algorithmic topology.

## Claims

### Claim 1

Method for encoding a digital image formed by a set of N pixels (pij) for the compression thereof, the digital image being defined as a cloud of N points (i, j, fij), designated as vertices (vk), associating the set of N pixels (pij) with a scalar intensity value (fij), the method comprising the following steps:
a) ordering the N vertices (vk) in increasing order of scalar intensity values (fij) in a vertex table;
b) initializing an iteration index i and a class index c to 0, initializing a starting simplicial complex (K0) to the empty set and repeating the sequence of the following operations until the iteration index i reaches N:
incrementing the iteration index i;
extracting the vertex of rank i (vi) from the vertex table and checking whether the vertex of rank i (vi) is in the neighborhood of a vertex comprised in the simplicial complex of rank i−1 (Ki−1); and
if no vertex of the simplicial complex of rank i (Ki) is in the neighborhood of the vertex of rank i (vi), incrementing the rank of class c, forming the simplicial complex of rank i (Ki) by adding a new class (CC) composed of the vertex of rank i (vi) to the simplicial complex of rank i−1 (Ki−1), and assigning rank c to the new class (CC);
if at least one vertex of a single class of the simplicial complex of rank i (Ki) is in the neighborhood of the vertex of rank i (vi), forming the simplicial complex of rank i (Ki) by adding the vertex of rank i (vi) to the simplicial complex of rank i−1 (Ki−1) in this one class;
if several vertices of a plurality of classes of the simplicial complex of rank i (Ki) are in the neighborhood of the vertex of rank i (vi), forming the simplicial complex of rank i (Ki) by grouping together, in the simplicial complex of rank i−1 (Ki−1), the vertices forming this plurality of classes and the vertex of rank i (vi) in the class of lowest rank and forming a persistence pair comprising:
i. the first vertex (vic) corresponding to the lowest rank vertex in the lowest rank class of the plurality of classes of the simplicial complex of rank i (Ki), this rank being called the appearance rank of the persistence pair (ic);
ii. the second vertex (vid) corresponding to the vertex of rank of index i (vi), this rank i being called the disappearance rank of the persistence pair (id);
in a decimation step, calculating, for each persistence pair (vic, vid) identified, the lifetime associated with the persistence pair (vic, vid) calculated as the difference between the disappearance rank of the persistence pair (id) and the appearance rank of the persistence pair (ic), and retaining, in a restricted list, some of the persistence pairs (vic, vid) exhibiting the longest lifetimes; the encoded digital image comprising at least some of the pixels (pij) corresponding to the vertices constituting the persistence pairs (vic, vid) of the restricted list.

### Claim 2

Encoding method according to the preceding claim, wherein the ordering step comprises applying a discrimination rule so as to order, in the table, two vertices having the same scalar intensity value.

### Claim 3 (depends on 1, 2)

Encoding method according to one of claims 1 and 2, wherein the following steps are also carried out: an iteration index i to N+1 and a class index c are initialized to 0, a starting simplicial complex (KN) is initialized to the empty set and the sequence of the following operations is repeated until the iteration index i reaches 1:
decrementing the iteration index i;
extracting the vertex of rank i (vi) from the vertex table and checking whether the vertex of rank i (vi) is in the neighborhood of a vertex comprised in the simplicial complex of rank i+1 (Ki+1), and
if no vertex of the simplicial complex of rank i+1 (Ki+1) is in the neighborhood of the vertex of rank i (vi), incrementing the rank of class c, forming the simplicial complex of rank i (Ki) by adding a new class (CC) composed of the vertex of rank i (vi) to the simplicial complex of rank i+1 (Ki+1), and assigning rank c to the new class (CC);
if at least one vertex of a single class of the simplicial complex of rank i+1 (Ki+1) is in the neighborhood of the vertex of rank i (vi), forming the simplicial complex of rank i (Ki) by adding the vertex of rank i (vi) to the simplicial complex of rank i+1 (Ki+1) in this one class;
if several vertices of a plurality of classes of the simplicial complex of rank i+1 (Ki+1) are in the neighborhood of the vertex of rank i (vi), forming the simplicial complex of rank i (Ki) by grouping together, in the simplicial complex of rank i+1 (Ki+1), the vertices forming this plurality of classes and the vertex of rank i (vi) in the class of lowest rank.

### Claim 4

Encoding method according to one of the preceding claims, wherein a first vertex v1, corresponding to a point with indices i1, j1 of the digital image, is in the neighborhood of a second vertex v2, corresponding to a point with indices i2, j2 of the digital image, if i1=i2+1 and/or if j1=j2+1.

### Claim 5

Encoding method according to one of the preceding claims, wherein the scalar intensity value (fij) of the digital image results from the combination of a plurality of color intensities of a raw color image.

### Claim 6

Encoding method according to one of the two preceding claims, further comprising determining a plurality of triangles from triangulation vertices.

### Claim 7 (depends on 1, 2, 3, 4, 5, 6)

Computer program comprising instructions suitable for implementing each of the steps of the encoding method according to one of claims 1 to 6, when the program is executed on a computer.

### Claim 8 (depends on 1, 2, 3, 4, 5, 6)

Encoder configured to implement the encoding method according to one of claims 1 to 6.
