Method for encoding a digital image in order to compress same
AssigneeShadow
InventorsAmaury Darsch, Lucas Clarté
Life of this patent
Estimating the term…
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.
Claims8
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.
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.
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.
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.
Encoding method according to one of the two preceding claims, further comprising determining a plurality of triangles from triangulation vertices.
Dependencies are inferred from the claim text.