BE1022166B1 - IMAGE COMPRESSION METHOD - Google Patents

IMAGE COMPRESSION METHOD Download PDF

Info

Publication number
BE1022166B1
BE1022166B1 BE2014/5148A BE201405148A BE1022166B1 BE 1022166 B1 BE1022166 B1 BE 1022166B1 BE 2014/5148 A BE2014/5148 A BE 2014/5148A BE 201405148 A BE201405148 A BE 201405148A BE 1022166 B1 BE1022166 B1 BE 1022166B1
Authority
BE
Belgium
Prior art keywords
image
pixels
pixel
mask
foreground
Prior art date
Application number
BE2014/5148A
Other languages
French (fr)
Inventor
Michel Dauw
Muelenaere Pierre De
Original Assignee
I.R.I.S.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by I.R.I.S. filed Critical I.R.I.S.
Priority to BE2014/5148A priority Critical patent/BE1022166B1/en
Application granted granted Critical
Publication of BE1022166B1 publication Critical patent/BE1022166B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • H04N1/411Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
    • H04N1/413Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information
    • H04N1/415Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information in which the picture-elements are subdivided or grouped into fixed one-dimensional or two-dimensional blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/20Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30176Document

Abstract

Procédé permettant de créer, à partir d'une image numérique, une couche d'avant-plan à utiliser dans la compression d'images telle que MRC (Mixed Raster Content). Un masque est tout d'abord déterminé. Chaque pixel du masque correspond à une fenêtre de mise à l'échelle dans l'image numérique. Les pixels noirs dans le masque correspondent à des éléments d'avant-plan et les pixels blancs dans le masque correspondent à des éléments d'arrière-plan. Puis, une image de transition est déterminée dans laquelle des pixels blancs dans le masque obtiennent une valeur vide et des pixels noirs dans le masque obtiennent une valeur déterminée à partir des couleurs des pixels dans une fenêtre de moyennage, ladite fenêtre de moyennage d'un pixel comprenant plus de pixels que la fenêtre de mise à l'échelle dudit pixel.A process for creating, from a digital image, a foreground layer for use in image compression such as MRC (Mixed Raster Content). A mask is first determined. Each pixel in the mask corresponds to a scaling window in the digital image. Black pixels in the mask correspond to foreground elements, and white pixels in the mask correspond to background elements. Then, a transition image is determined in which white pixels in the mask get an empty value and black pixels in the mask get a value determined from the colors of the pixels in an averaging window, said averaging window of one. pixel comprising more pixels than the scaling window of said pixel.

Description

« Procédé de compression d'images »"Image compression process"

Domaine de l'invention . L'invention concerne un procédé de compression d'images. De manière spécifique, l'invention concerne un procédé permettant de créer à partir d'une image numérique une couche d'avant-plan à utiliser dans la compression d'images.Field of the invention The invention relates to a method of compressing images. Specifically, the invention relates to a method for creating from a digital image a foreground layer for use in image compression.

Art antérieur de l'inventionPrior art of the invention

La compression d'images (impression, numérisation par balayage, binarisation) modifie les couleurs d'une image, en particulier le bord d'éléments comme des caractères où le contraste entre pixels adjacents est élevé. Cette modification introduit une certaine inhomogénéité dans les éléments colorés de l'image, ce qui a pour résultat une certaine inhomogénéité de la couche d'avant-plan utilisée dans la compression MRC. Le fait que la compression MRC, telle que décrite par exemple dans US2012/0093412A1, ne peut pas fournir un taux de compression aussi élevé pour une couche d'avant-plan inhomogène que pour une couche d’avant-plan homogène constitue un problème. 'Image compression (printing, scanning, binarization) changes the colors of an image, especially the edge of elements as characters where the contrast between adjacent pixels is high. This modification introduces a certain inhomogeneity in the colored elements of the image, which results in a certain inhomogeneity of the foreground layer used in the MRC compression. The fact that MRC compression, as described for example in US2012 / 0093412A1, can not provide such a high compression ratio for an inhomogeneous foreground layer as for a homogeneous foreground layer is a problem. '

Le fait qu'une détérioration de l'homogénéité de la couche d'avant-plan induit une détérioration de la lisibilité de l'image après compression constitue un autre problème. Résumé de l'inventionAnother problem is that a deterioration in the homogeneity of the foreground layer causes a deterioration in the readability of the image after compression. Summary of the invention

Par conséquent, un but de la présente invention est de fournir un procédé permettant de créer une image d’avant-plan de bonne homogénéité à utiliser dans la compression d’images.Therefore, an object of the present invention is to provide a method for creating a foreground image of good homogeneity for use in image compression.

Un autre but de la présente invention est un procédé de compression faisant appel à une image d'avant-plan de bonne homogénéité.Another object of the present invention is a compression method using a foreground image of good homogeneity.

Un autre but de la présente invention est un support non temporaire lisible par l'ordinateur stockant un programme amenant un ordinateur à exécuter un procédé permettant de créer une couche d'avant-plan de bonne homogénéité à utiliser dans la compression d'images.Another object of the present invention is a non-temporary computer readable medium storing a program causing a computer to execute a method for creating a foreground layer of good homogeneity for use in image compression.

Un autre but de la présente invention est un système comprenant un processeur et un support non temporaire lisible par l'ordinateur stockant un programme amenant un ordinateur à exécuter un procédé permettant de créer une couche d'avant-plan de bonne homogénéité à utiliser dans la compression d'images.Another object of the present invention is a system comprising a processor and a non-temporary computer readable medium storing a program causing a computer to execute a method for creating a foreground layer of good homogeneity to be used in the image compression.

Ce but est atteint selon des modes de réalisation de l’invention.This object is achieved according to embodiments of the invention.

Selon un aspect de la présente invention, il est prévu un procédé permettant de créer, à partir d'une image numérique initiale, une image d'avant-plan à utiliser dans la compression d'images, comprenant les étapes de al création d'une image de masque binaire à partir de l'image numérique initiale, chaque pixel de l’image de masque binaire étant créé à partir d’une première fenêtre de pixels correspondante dans l'image numérique initiale, et ladite image de masque binaire comprenant un premier ensemble de pixels qui sont d’une première valeur et un deuxième ensemble de pixels qui sont d'une deuxième valeur; b/ génération d’une image de transition qui a une quantité de pixels égale à la quantité de pixels de l'image de masque binaire en déterminant pour chaque pixel de l'image de transition correspondant à un pixel du premier ensemble de pixels dans l'image de masque binaire une deuxième fenêtre de pixels correspondante dans l'image numérique initiale, la deuxième fenêtre de pixels comprenant plus de pixels que la première fenêtre de pixels; déterminant une couleur pour chaque pixel de l'image de transition correspondant à un pixel du premier ensemble de pixels dans l'image de masque binaire par un calcul basé sur les couleurs des pixels dans la deuxième fenêtre correspondante; et établissant chaque pixel de l'image de transition correspondant à un pixel du deuxième ensemble de pixels dans l'image de masque binaire comme étant vide; et cl création de l’image d'avant-plan à partir de l'image de transition en gardant la couleur des pixels non vides et détermination d'une couleur pour les pixels vides en utilisant les pixels non vides voisins.According to one aspect of the present invention, there is provided a method for creating, from an initial digital image, a foreground image for use in image compression, including the steps of creating the image. a binary mask image from the initial digital image, each pixel of the binary mask image being created from a corresponding first pixel window in the initial digital image, and said binary mask image including a first set of pixels which are of a first value and a second set of pixels which are of a second value; b / generating a transition image that has an amount of pixels equal to the pixel amount of the bit mask image by determining for each pixel of the transition image corresponding to a pixel of the first set of pixels in the image. binary mask image a corresponding second pixel window in the initial digital image, the second pixel window comprising more pixels than the first pixel window; determining a color for each pixel of the transition image corresponding to a pixel of the first set of pixels in the bitmask image by a calculation based on the colors of the pixels in the corresponding second window; and establishing each pixel of the transition image corresponding to a pixel of the second set of pixels in the binary mask image as empty; and cl creating the foreground image from the transition image by keeping the color of the non-empty pixels and determining a color for the empty pixels using the neighboring non-empty pixels.

Comme la deuxième fenêtre comprend plus de pixels que la première fenêtre, les couleurs déterminées pour des pixels proches sont plus proches que si les couleurs étaient déterminées sur la deuxième fenêtre. Cela induit des couleurs plus similaires sur les pixels de l'image de transition et donc des couleurs plus similaires sur les pixels de la couche d'avant-plan. Cette bonne homogénéité permet une bonne compression et une bonne lisibilité des caractères de texte compressés de cette façon.Since the second window has more pixels than the first window, the colors determined for nearby pixels are closer than if the colors were determined on the second window. This induces more similar colors on the pixels of the transition image and therefore more similar colors on the pixels of the foreground layer. This good homogeneity allows good compression and readability of text characters compressed in this way.

Selon un aspect de l'invention, la première fenêtre de pixels comprend un pixel. C'est le cas quand l'image de masque binaire a la même taille que l'image numérique initiale.According to one aspect of the invention, the first pixel window comprises a pixel. This is the case when the binary mask image is the same size as the initial digital image.

Selon un autre aspect de l'invention, la première fenêtre de pixels comprend une fenêtre η x n de pixels, n étant au moins 2. C'est le cas quand l'image de masque binaire a une résolution plus faible que l'image numérique initiale.According to another aspect of the invention, the first pixel window comprises a window η xn of pixels, n being at least 2. This is the case when the bit mask image has a lower resolution than the digital image initial.

Selon un aspect de l'invention, le calcul basé sur les couleurs des pixels dans la deuxième fenêtre correspondante est un moyennage.According to one aspect of the invention, the calculation based on the colors of the pixels in the corresponding second window is an averaging.

Selon un aspect de l'invention, l'emplacement du centre d'un pixel dans l'image de transition correspond a l'emplacement du centre de la deuxième fenêtre de pixels correspondante dans l'image numérique initiale. La deuxième fenêtre indique les pixels de l'image numérique initiale utilisée pour déterminer la couleur des pixels de l'image de transition. Il est par conséquent avantageux que l'emplacement du centre de la deuxième fenêtre corresponde au centre du pixel correspondant de l'image de transition.According to one aspect of the invention, the location of the center of a pixel in the transition image corresponds to the location of the center of the corresponding second pixel window in the initial digital image. The second window indicates the pixels of the initial digital image used to determine the color of the pixels of the transition image. It is therefore advantageous that the location of the center of the second window corresponds to the center of the corresponding pixel of the transition image.

Selon un aspect de l'invention, le procédé comprend une étape de réduction de la résolution de l'image de transition entre sa génération et la création de l'image d'avant-plan. Une telle compression peut être avantageuse pour obtenir une compression plus élevée et une résolution plus faible pour l’image d'avant-plan.According to one aspect of the invention, the method comprises a step of reducing the resolution of the transition image between its generation and the creation of the foreground image. Such compression may be advantageous to achieve higher compression and lower resolution for the foreground image.

Selon un aspect de l'invention, la couleur des pixels vides est déterminée à partir des pixels non vides en utilisant un algorithme séquentiel en deux étapes.According to one aspect of the invention, the color of the empty pixels is determined from non-empty pixels using a two-step sequential algorithm.

Selon un aspect de l'invention, le procédé comprend l'étape de découpage de l'image numérique initiale en groupes de pixels, la couleur de chaque pixel dans l’image de transition étant déterminée indépendamment pour chaque groupe de pixels. Selon un aspect de l'invention, le procédé comprend l'étape de découpage de l'image de masque binaire en groupes de pixels correspondant aux groupes de pixels dans l'image numérique initiale.According to one aspect of the invention, the method comprises the step of splitting the initial digital image into groups of pixels, the color of each pixel in the transition image being determined independently for each group of pixels. According to one aspect of the invention, the method comprises the step of splitting the bit mask image into groups of pixels corresponding to the groups of pixels in the initial digital image.

Selon un aspect de l'invention, chaque groupe de pixels dans l'image initiale contient au moins un de: un seul composant connecté, un seul élément textuel, un seul élément lineart ou un seul caractère. Cet aspect de l'invention est particulièrement avantageux quand des éléments (composant connecté, lettres, symboles, lignes pleines, ...) de différentes couleurs sont proches les uns des autres dans l'image numérique initiale. Les éléments sont distribués en groupes de pixels. Cet aspect de l'invention fait que ces couleurs de différents groupes de pixels ne se mélangent pas dans l'image d'avant-plan.According to one aspect of the invention, each group of pixels in the initial image contains at least one of: a single connected component, a single textual element, a single lineart element, or a single character. This aspect of the invention is particularly advantageous when elements (connected component, letters, symbols, solid lines, ...) of different colors are close to each other in the initial digital image. The elements are distributed in groups of pixels. This aspect of the invention causes these colors of different groups of pixels to not mix in the foreground image.

Selon un aspect de l'invention, le procédé comprend les étapes consistant: à détecter si, dans un groupe de pixels dans l'image numérique initiale, les pixels correspondant aux pixels du premier ensemble de pixels de l'image de masque binaire ont des couleurs qui sont nettement différentes, et à déterminer, si les pixels dans l'image numérique initiale n'ont pas des couleurs nettement différentes, la couleur moyenne des pixels dans l'image numérique initiale et à appliquer la couleur moyenne sur chaque pixel dans l'image de transition correspondant au groupe de pixels dans l’image numérique initiale et correspondant aux pixels, dans le premier ensemble de pixels de l'image de masque binaire.According to one aspect of the invention, the method comprises the steps of: detecting whether, in a group of pixels in the initial digital image, the pixels corresponding to the pixels of the first set of pixels of the bit mask image have colors that are significantly different, and to determine, if the pixels in the initial digital image do not have significantly different colors, the average pixel color in the initial digital image and to apply the average color on each pixel in the transition image corresponding to the group of pixels in the initial digital image and corresponding to the pixels, in the first set of pixels of the bit mask image.

Cet aspect de l'invention est particulièrement avantageux si les pixels dans un élément correspondant à un groupe de pixels sont de couleurs similaires. Dans un tel cas, il est suffisant de calculer une fois la couleur pour le groupe et de donner cette couleur à tous les pixels de l’image de transition correspondant à ce groupe de pixels et qui sont de première valeur, par exemple noire, dans le masque binaire. Ce processus additionnel réduit le nombre d'étapes de calcul du procédé, étant donné que le moyennage n'est effectué qu'une fois par groupe et fournit une homogénéité plus élevée, étant donné que tous les pixels de l’élément dans l'image de transition ont la même couleur. Ce moyennage sur la totalité du groupe n'est toutefois pas utilisé si les pixels du groupe ont des couleurs trop différentes.This aspect of the invention is particularly advantageous if the pixels in an element corresponding to a group of pixels are of similar colors. In such a case, it is sufficient to calculate once the color for the group and to give this color to all the pixels of the transition image corresponding to this group of pixels and which are of first value, for example black, in the binary mask. This additional process reduces the number of calculation steps in the process, since averaging is performed only once per group and provides higher homogeneity, since all pixels of the element in the image of transition have the same color. This averaging over the entire group is however not used if the pixels of the group have too different colors.

Selon un aspect de l'invention, il est prévu un procédé de compression pour compresser une image numérique initiale d'un document numérisé par balayage, ledit procédé de compression comprend l'étape de segmentation de l'image numérique initiale en multiples couches d'image comprenant une image d'avant-plan contenant des informations de couleur pour les éléments d'avant-plan dudit document, une image d'arrière-plan contenant des informations de couleur pour les éléments d'arrière-plan dudit document et une image binaire pour sélectionner entre pixels dans ladite image d'avant-plan et ladite image d'arrière-plan, l'image d'avant-plan étant créée selon l'un quelconque des procédés permettant de créer une image d'avant-plan selon l'invention.According to one aspect of the invention, there is provided a compression method for compressing an initial digital image of a scanned document, said compression method comprises the step of segmenting the initial digital image into multiple layers of an image comprising a foreground image containing color information for the foreground elements of said document, a background image containing color information for the background elements of said document and an image binary for selecting between pixels in said foreground image and said background image, the foreground image being created according to any of the methods for creating a foreground image according to the invention.

Selon un aspect de l'invention, il est prévu un support non temporaire lisible par ordinateur stockant un programme amenant un ordinateur à exécuter un procédé selon l'un quelconque des procédés permettant de créer une image d'avant-plan selon l'invention. Selon un aspect de l'invention, il est prévu un système comprenant un processeur et un support non temporaire lisible par ordinateur stockant un programme amenant le processeur à exécuter l'un quelconque des procédés permettant de créer une image d'avant-plan selon l'invention. Le procédé de l'invention est avantageusement mis en œuvre par un programme d'ordinateur.According to one aspect of the invention, there is provided a non-temporary computer readable medium storing a program causing a computer to execute a method according to any of the methods for creating a foreground image according to the invention. According to one aspect of the invention there is provided a system comprising a processor and a non-temporary computer readable medium storing a program causing the processor to execute any of the methods for creating a foreground image according to the present invention. 'invention. The method of the invention is advantageously implemented by a computer program.

Selon un aspect de l'invention, le système comprend un dispositif d'imagerie pour capturer l'image numérique initiale. Un dispositif d'imagerie peut introduire une inhomogénéité dans l'image numérique initiale, laquelle est au moins en partie compensée dans l'image résultant de la compression par le procédé selon l'invention.According to one aspect of the invention, the system includes an imaging device for capturing the initial digital image. An imaging device may introduce inhomogeneity into the initial digital image, which is at least partially compensated in the image resulting from the compression by the method according to the invention.

Brève description des figuresBrief description of the figures

Pour une meilleure compréhension de la présente invention, il sera maintenant fait référence, à titre d’exemple uniquement, aux dessins joints dans lesquels:For a better understanding of the present invention, reference will now be made, by way of example only, to the accompanying drawings in which:

La figure 1 montre un organigramme d'un procédé de compression d'images.Figure 1 shows a flowchart of an image compression method.

La figure 2 montre un organigramme d'un procédé de segmentation d’images.Figure 2 shows a flow diagram of an image segmentation method.

La figure 3 montre un organigramme d'un procédé de construction d'une couche d'avant-plan.Figure 3 shows a flowchart of a method of constructing a foreground layer.

La figure 4 montre un organigramme d'un procédé de construction d'une couche d'avant-plan selon un mode de réalisation de l'invention.Figure 4 shows a flowchart of a method of constructing a foreground layer according to an embodiment of the invention.

La figure 5 montre un organigramme d'un procédé de détermination d'une image de transition selon un mode de réalisation de l'invention.Fig. 5 shows a flowchart of a method for determining a transition image according to an embodiment of the invention.

La figure 6 illustre un procédé de détermination d'une image de transition selon un mode de réalisation de l'invention.Figure 6 illustrates a method of determining a transition image according to an embodiment of the invention.

La figure 7 illustre un procédé de détermination d'une image de transition selon un mode de réalisation de l'invention.Fig. 7 illustrates a method of determining a transition image according to an embodiment of the invention.

La figure 8 montre un organigramme d’un procédé de détermination d'une image de transition selon un mode de réalisation de l'invention.Figure 8 shows a flowchart of a method for determining a transition image according to an embodiment of the invention.

La figure 9 illustre un procédé de détermination d'une image de transition selon un mode de réalisation de l'invention.Figure 9 illustrates a method of determining a transition image according to an embodiment of the invention.

La figure 10 montre un organigramme d’un procédé de détermination d'une image de transition selon un mode de réalisation de l'invention.Fig. 10 shows a flowchart of a method for determining a transition image according to an embodiment of the invention.

Description de l'inventionDescription of the invention

La présente invention sera décrite en rapport avec des modes de réalisation particuliers et en référence à certains dessins mais l'invention n'y est toutefois pas limitée. Les dessins décrits ne sont que schématiques et sont non limitatifs. Dans les dessins, la taille de certains des éléments peut être exagérée et non dessinée à l'échelle à des fins illustratives.The present invention will be described in connection with particular embodiments and with reference to certain drawings but the invention is however not limited thereto. The drawings described are only schematic and are non-limiting. In the drawings, the size of some of the elements may be exaggerated and not drawn to scale for illustrative purposes.

En outre, les termes premier, deuxième, troisième et similaire dans la description et dans les revendications sont utilisés pour faire la distinction entre éléments similaires et pas nécessairement pour décrire un ordre séquentiel ou chronologique. Les termes sont interchangeables dans les circonstances appropriées et les modes de réalisation de l'invention peuvent fonctionner dans d'autres séquences que celles décrites ou illustrées dans le présent document.In addition, the terms first, second, third and similar in the description and in the claims are used to distinguish between similar elements and not necessarily to describe a sequential or chronological order. The terms are interchangeable under appropriate circumstances and the embodiments of the invention may operate in other sequences than those described or illustrated herein.

De plus, les divers modes de réalisation, bien que qualifiés de "préférés", doivent être interprétés comme des façons exemplaires dont l'invention peut être mise en œuvre plutôt que comme limitant la portée de l'invention.In addition, the various embodiments, although referred to as "preferred", should be interpreted as exemplary ways in which the invention can be implemented rather than as limiting the scope of the invention.

Le terme "comprenant", utilisé dans les revendications, ne doit pas être interprété comme étant limité aux moyens ou étapes énumérés ci-dessous; il n’exclut pas d’autres éléments ou étapes. Il doit être interprété comme spécifiant la présence des éléments, nombres entiers, étapes ou composants cités auxquels il est fait référence mais n'exclut pas la présence ou l'ajout d'un ou plusieurs autres éléments, nombres entiers, étapes ou composants ou groupes de ceux-ci. Donc, la portée de l'expression "un dispositif comprenant A et B" ne devrait pas être limitée à des dispositifs comprenant uniquement les composants A et B, au contraire, en ce qui concerne la présente invention, les seuls composants énumérés du dispositif sont A et B, et la revendication devrait également être interprétée comme incluant des équivalents de ces composants.The term "comprising", as used in the claims, should not be construed as being limited to the means or steps listed below; it does not exclude other elements or steps. It must be interpreted as specifying the presence of the elements, integers, steps or components referred to but does not exclude the presence or addition of one or more other elements, integers, steps or components or groups of these. Therefore, the scope of the term "a device comprising A and B" should not be limited to devices comprising only components A and B, on the contrary, with respect to the present invention, the only listed components of the device are A and B, and the claim should also be interpreted to include equivalents of these components.

Sur les figures, des éléments identiques ou analogues peuvent être désignés par un même numéro. .In the figures, identical or similar elements may be designated by the same number. .

Dans ce qui suit, des aspects de l'invention appliqués dans un procédé de compression d’images seront décrits. Il est à noter qu’un grand nombre des étapes ou algorithmes décrits peuvent aussi être utilisés pour d'autres applications, par exemple pour la reconnaissance de texte ou autre. De plus, de nombreuses modifications peuvent être apportées aux étapes et algorithmes décrits sans s’écarter du cadre de l'invention.In the following, aspects of the invention applied in an image compression method will be described. It should be noted that many of the steps or algorithms described can also be used for other applications, for example for text recognition or other. In addition, many modifications can be made to the steps and algorithms described without departing from the scope of the invention.

Telle qu'utilisée dans le présent document, l'expression "image numérique" est censée se référer à une matrice de pixels où chaque pixel a une valeur qui correspond à sa couleur dans ladite image. Un pixel peut avoir une valeur "vide" qui signifie qu'aucune couleur ne correspond audit pixel dans ladite image. Dans ce qui suit, les mots "valeur" et "couleur" sont équivalents quand ils se réfèrent à un pixel. Les images numériques sont stockées dans des dispositifs de mémoire lisibles par des dispositifs électroniques tels que des ordinateurs.As used herein, the term "digital image" is meant to refer to a matrix of pixels where each pixel has a value that corresponds to its color in said image. A pixel may have an "empty" value which means that no color corresponds to said pixel in said image. In what follows, the words "value" and "color" are equivalent when they refer to a pixel. Digital images are stored in memory devices readable by electronic devices such as computers.

Tel qu'utilisé dans le présent document, le mot "lineart" se référant à un élément est censé faire référence à des droites ou courbes connectées placées contre un arrière-plan (en général uni), l'élément lineart n'ayant aucune gradation de nuance (noirceur) ou tonalité chromatique (couleur). Un élément noir sur un fond blanc en est un exemple.As used herein, the word "lineart" referring to an element is meant to refer to connected lines or curves placed against a background (usually plain), the lineart element having no gradation shade (blackness) or color tone (color). A black element on a white background is an example.

Telle qu'utilisée dans le présent document, l'expression "ton continu" se référant à un élément est censée faire référence à un élément dans lequel les couleurs et les niveaux de gris se fondent en douceur dans les couleurs ou niveaux de gris voisins au lieu de produire des zones distinctes, nettement délimitées, de couleur ou niveau de gris.As used herein, the term "continuous tone" referring to an element is meant to refer to an element in which colors and grayscale melt smoothly in adjacent colors or greyscale levels. instead of producing distinct, clearly delimited areas of color or gray level.

Telle qu'utilisée dans le présent document, l'expression "composant connecté" dans une image faite de pixels de couleur et de pixels vides est censée faire référence à un groupe de pixels connectés par des pixels de couleur.As used herein, the term "connected component" in an image made of color pixels and empty pixels is meant to refer to a group of pixels connected by color pixels.

Telle qu'utilisée dans le présent document, l'expression "composant connecté" dans une image en noir et blanc est censée faire référence à un groupe de pixels noirs qui sont connectés les uns aux autres par des pixels noirs. Un composant connecté peut être dénommé un "blobM.As used herein, the term "connected component" in a black and white image is meant to refer to a group of black pixels that are connected to each other by black pixels. A connected component can be called a "blobM.

Telle qu'utilisée dans le présent document, l'expression "image d'un composant connecté" est censée faire référence à une image numérique qui comprend un seul composant connecté.As used herein, the term "image of a connected component" is meant to refer to a digital image that includes a single connected component.

Le procédé de compression d'images 10 montré sur la figure 1 est basé sur le modèle MRC. Le modèle MRC est censé produire une bonne compression d'image "mixte" qui contient ton continu (comme une photo) et lineart (comme des lignes continues, des caractères).The image compression method shown in Figure 1 is based on the MRC model. The MRC model is supposed to produce a good "mixed" image compression that contains your continuous (like a photo) and lineart (like solid lines, characters).

Une image originale 1 est prise comme entrée par une étape de traitement 2 d'image initiale, ce qui a pour résultat une image pleine taille 11 qui est une image numérique. L'image pleine taille 11 est prise comme entrée par une segmentation 100. La segmentation 100 a pour résultat trois images numériques: une couche d'avant-plan 12, un masque 13 et une couche d'arrière-plan 14. La segmentation 100 utilise comme paramètres un facteur de réduction 15 de la résolution de l'avant-plan, un facteur de réduction 16 de la résolution du masque et un facteur de réduction 17 de la résolution de l'arrière-plan. La couche d'avant-plan 12 est compressée par une étape de compression 18 qui utilise comme paramètre une qualité d'avant-plan 19 et génère une couche d'avant-plan compressée 28. Le masque 13 est compressé par une étape de compression 20 qui utilise comme paramètre une qualité de masque 21 et génère une couche de masque compressée 30. La couche d'arrière-plan 14 est compressée par une étape de compression 22 qui utilise comme paramètre une qualité d'arrière-plan 23 et génère une couche d'arrière-plan compressée 32. Après la compression d'images 10, les trois images compressées (avant-plan 28, masque 30 et arrière-plan 32) sont utilisées dans un traitement d'image ultérieur 24. L'image originale 1 peut être une image sur papier ou une image numérique. Elle peut provenir d'une impression, d'un écrit..... elle peut comprend du texte, des figures, des photos, des codes à barres, ... Le traitement d'image initial 2 numérise l'image originale 1 si elle n'était pas numérique. Il peut inclure un traitement d'image. L'image pleine taille 11 résultant du traitement d'image initial 2 est stockée dans un dispositif de mémoire. Le traitement d'image initial 2 peut utiliser un dispositif d'imagerie tel qu'un numériseur à balayage, une caméra, une souris, un stylo numérique.....An original image 1 is taken as input by an initial image processing step 2, resulting in a full-size image 11 which is a digital image. The full-size image 11 is taken as input by a segmentation 100. The segmentation 100 results in three digital images: a foreground layer 12, a mask 13, and a background layer 14. The segmentation 100 uses as parameters a reduction factor of the foreground resolution, a reduction factor of the mask resolution and a reduction factor of the background resolution. The foreground layer 12 is compressed by a compression step 18 which uses as a parameter foreground quality 19 and generates a compressed foreground layer 28. The mask 13 is compressed by a compression step Which uses a mask quality 21 as a parameter and generates a compressed mask layer 30. The background layer 14 is compressed by a compression step 22 which uses a background quality 23 as a parameter and generates a Compressed background layer 32. After the compression of images 10, the three compressed images (foreground 28, mask 30 and background 32) are used in a subsequent image processing 24. The original image 1 may be a paper image or a digital image. It can come from an impression, a writing ..... it can include text, figures, photos, barcodes, ... The initial image processing 2 scans the original image 1 if it was not digital. It may include image processing. The full size image 11 resulting from the initial image processing 2 is stored in a memory device. The initial image processing 2 can use an imaging device such as a scanning digitizer, a camera, a mouse, a digital pen .....

Le traitement d'image initial 2 peut utiliser un dispositif de calcul tel qu'un ordinateur, un téléphone intelligent (smartphone), une tablette,.... L'image pleine taille 11 est en couleur, en niveaux de gris..... L'image pleine taille 11 peut contenir des photos et du texte avec des caractères à reconnaître à un stade ultérieur du traitement d'image. L'étape de segmentation 100 est décrite de manière détaillée plus loin dans le présent document. La couche d'avant-plan 12 et la couche d'arrière-plan 13 sont en couleur, en niveaux de gris, selon l'image pleine taille 11. Le masque 13 est une image binaire, ce qui signifie que les pixels du masque 13 prennent des valeurs binaires (noir ou blanc, allumé ou éteint, 1 ouThe initial image processing 2 can use a computing device such as a computer, a smart phone (smartphone), a tablet, .... The full size image 11 is in color, grayscale ... .. The full size image 11 may contain photos and text with characters to be recognized at a later stage of the image processing. The segmentation step 100 is described in detail later in this document. The foreground layer 12 and the background layer 13 are in color, in grayscale, according to the full size image 11. The mask 13 is a binary image, which means that the pixels of the mask 13 take binary values (black or white, on or off, 1 or

La compression 18 de la couche d'avant-plan 12 peut utiliser une technique de compression de tons continus avec perte tel que JPEG ou JPEG-2000. La compression 20 du masque 13 peut utiliser une technique de compression binaire telle que JBIG2 ou TIFF G4. La compression 22 de la couche d'arrière-plan 14 peut utiliser une technique de compression de tons continus avec perte tel que JPEG ou JPEG-2000. L'utilisation d'une technique de tons continus avec perte pour la couche d'arrière-plan et d'avant-’plan fournit une compression élevée tout en maintenant la gamme de couleurs.The compression 18 of the foreground layer 12 can use a lossy continuous tone compression technique such as JPEG or JPEG-2000. The compression of the mask 13 may use a binary compression technique such as JBIG2 or TIFF G4. The compression 22 of the background layer 14 can use a lossy continuous tone compression technique such as JPEG or JPEG-2000. The use of a lossy continuous tone technique for the background and foreground layer provides high compression while maintaining the color gamut.

Le traitement d'image ultérieur 24 comprend typiquement une décompression des trois couches (avant-plan 28, masque 30 et arrière-plan 32) et une reconstruction d'une image à partir des couches décompressées. La reconstruction sélectionne la couleur des pixels de la manière suivante. Un pixel noir, c'est-à-dire allumé ou égal à 1, dans le masque indique que pendant la reconstruction, la valeur dudit pixel est égale à la valeur dudit pixel dans la couche d'avant-plan 12. Un pixel blanc dans le masque 13 (c’est-à-dire éteint ou qui a une valeur égale à 0) indique que pendant la reconstruction, la valeur dudit pixel est égale à la valeur dudit pixel dans la couche d'arrière-plan 14.The subsequent image processing 24 typically comprises decompression of the three layers (foreground 28, mask 30 and background 32) and reconstruction of an image from the decompressed layers. The reconstruction selects the color of the pixels as follows. A black pixel, ie, lit or equal to 1, in the mask indicates that during the reconstruction, the value of said pixel is equal to the value of said pixel in the foreground layer 12. A white pixel in the mask 13 (ie off or having a value equal to 0) indicates that during the reconstruction, the value of said pixel is equal to the value of said pixel in the background layer 14.

Le traitement d'image ultérieur 24 peut comprendre: segmentation, normalisation, extraction de caractéristiques, classification, reconnaissance de caractères, détermination de blobs, transfert d'images, stockage d'images,...The subsequent image processing 24 may include: segmentation, normalization, feature extraction, classification, character recognition, blob determination, image transfer, image storage, ...

La compression d'images 10 peut être utilisée pour créer un document PDF. Le document PDF comprend les trois images compressées (avant-plan, masque et arrière-plan). Quand le document PDF est ouvert, le logiciel de lecture, Acrobat Reader par exemple, décompresse les trois images compressées et effectue la reconstruction d'images, pendant l’ouverture du document.Image compression 10 can be used to create a PDF document. The PDF document includes the three compressed images (foreground, mask, and background). When the PDF document is open, the reading software, Acrobat Reader for example, uncompresses the three compressed images and performs the reconstruction of images, during the opening of the document.

La figure 2 illustre la segmentation 100 de l’image pleine taille 11 en trois images numériques: couche d'avant-plan 12, masque 13 et couche d'arrière-plan 14. Une étape de binarisation 101 prend comme entrée l'image pleine taille 11 et génère comme sortie une image en noir et blanc 102 qui est une image numérique. Une détermination des éléments d’avant-plan 103 prend comme entrée l'image en noir et blanc 102 et éventuellement l'image pleine taille 11 et génère comme sortie un masque initial 104 qui est une image numérique. Une étape de réduction de la résolution (ou diminution d'échelle) 105 prend comme entrées le masque initial 104 et le facteur de réduction 16 de la résolution du masque et génère le masque 13. Une étape de construction de la couche d'avant-plan 200 prend comme entrées l'image pleine taille 11 et le masque initial 104 et génère la couche d'avant-plan 12. Une étape de construction de la couche d'arrière-plan 106 prend comme entrées l'image pleine taille 11 et le masque initial 104 et génère la couche d’arrière-plan 14.FIG. 2 illustrates the segmentation 100 of the full-size image 11 in three digital images: foreground layer 12, mask 13 and background layer 14. A binarization step 101 takes as input the full image size 11 and generates as output a black and white image 102 which is a digital image. A determination of the foreground elements 103 takes as input the black and white image 102 and possibly the full-size image 11 and generates as output an initial mask 104 which is a digital image. A step of reduction of the resolution (or reduction of scale) 105 takes as input the initial mask 104 and the reduction factor 16 of the mask resolution and generates the mask 13. A step of constructing the front layer plane 200 takes as inputs the full-size image 11 and the initial mask 104 and generates the foreground layer 12. A step of constructing the background layer 106 takes as inputs the full-size image 11 and the initial mask 104 and generates the background layer 14.

La binarisation 101 peut être effectuée par un algorithme local adaptatif ou un autre algorithme de binarisation pour générer l'image en noir et blanc 102 qui est une version binaire de l'image pleine taille 11.The binarization 101 may be performed by an adaptive local algorithm or other binarization algorithm to generate the black and white image 102 which is a binary version of the full-size image 11.

Les éléments d'avant-plan sont alors sélectionnés dans l'image en noir et blanc 102 dans l'étape de détermination 103 pour former les pixels noirs dans le masque initial 104. Des éléments de texte tels que des caractères et des signes de ponctuation sont typiquement des éléments d'avant-plan. Dans un mode de réalisation de l'invention, tout élément qui n'est pas de ton continu est pris comme un élément d'avant-plan. Par conséquent, des éléments de texte, des lignes continues et des cadres de tableaux sont des éléments d'avant-plan.The foreground elements are then selected in the black and white image 102 in the determination step 103 to form the black pixels in the initial mask 104. Text elements such as characters and punctuation marks are typically foreground elements. In one embodiment of the invention, any non-continuous element is taken as a foreground element. As a result, text elements, solid lines, and table frames are foreground elements.

Les éléments qui ne sont pas d'avant-plan forment les pixels blancs dans le masque initial 14. Les éléments qui ne sont pas d’avant-plan sont des éléments d'arrière-plan. La détermination 103 peut être réalisée par un filtrage qui utilise le principe de longueur de description minimale, lequel est connu dans l'art. Il est décidé ici pour chaque ensemble de pixels noirs et chaque ensemble de pixels blancs s'il s’agit d'un élément d’avant-plan ou un élément d'arrière-plan. Un exemple de cette technique est décrit dans le brevet US8331706.The non-foreground elements form the white pixels in the initial mask 14. The elements that are not foreground are background elements. The determination 103 may be performed by filtering that uses the minimum description length principle, which is known in the art. It is decided here for each set of black pixels and each set of white pixels if it is a foreground element or a background element. An example of this technique is described in US patent 8331706.

Le masque 13 est généré à partir de la réduction de la résolution 105 du masque initial 104. L'étape de réduction de la résolution 105 est optionnelle. Elle améliore la compression mais détériore la résolution.The mask 13 is generated from the reduction of the resolution 105 of the initial mask 104. The reduction step of the resolution 105 is optional. It improves the compression but deteriorates the resolution.

La construction de la couche d'avant-plan 200 est décrite de manière plus détaillée plus loin dans le présent document. La construction de la couche d'arrière-plan 106 peut être effectuée par une quelconque technique connue dans l'art. Un exemple de cette technique est décrit dans le brevet US8331706. ·The construction of the foreground layer 200 is described in more detail later in this document. The construction of the background layer 106 may be performed by any technique known in the art. An example of this technique is described in US patent 8331706. ·

Une construction de la couche d'avant-plan 200 est montrée sur la figure 3. Pour faire la différence entre plusieurs procédés de construction de la couche d'avant-plan, la construction de la couche d'avant-plan 200 illustrée sur la figure 3 est désignée par 200A, L'image pleine taille 11 et le masque initial 104 sont utilisés comme entrées dans l'étape de sélection 201 des pixels des éléments d’avant-plan dans l'image pleine taille 11, ce qui génère une image des éléments d'avant-plan 202, qui est une image numérique, comme sortie. Le masque initial 104 et un facteur de réduction 252 de la résolution du masque opérant sont utilisés comme entrée dans une étape de réduction de la résolution 251 qui génère un masque opérant 253, qui est une image numérique binaire. L'image des éléments d'avant-plan 202 et le masque opérant 253 sont alors utilisés comme entrée dans une étape de détermination 300 d'une image de transition, ce qui détermine une image de transition 203, qui est une image numérique. Une étape de remplissage 204 est effectuée sur l'image de transition 203 pour générer la couche d'avant-plan 12. L'étape de sélection 201 des pixels des éléments d'avant-plan dans l'image pleine taille 11 construit une image numérique, l'image des éléments d'avant-plan 202, où un pixel qui est noir dans le masque initial 104 prend la même valeur que dans l'image pleine taille 11, et un pixel qui est blanc dans le masque initial 104 est établi comme étant "vide”. L'étape de réduction de la résolution 251 crée le masque opérant 253 par une réduction de la résolution du masque initial 104 par un facteur n égal au facteur de réduction 252 de la résolution du masque opérant. Par conséquent, un pixel dans le masque opérant 253 correspond à une première fenêtre de η x n pixels dans le masque initial 104 et donc dans l'image pleine taille 11, avec n=1, 2, ... Dans des variantes de réalisation, la première fenêtre utilisée pour générer le masque opérant 253 à partir du masque initial 104 a une forme rectangulaire, une forme polygonale, une forme circulaire ou elliptique,... L’étape de détermination 300 d'une image de transition introduit une réduction d'échelle de telle manière que l'image de transition 203 résultant de l'étape 300 ait la même échelle que le masque opérant 253, ce qui signifie que l’image de transition 203 est à échelle réduite par un facteur de réduction de la résolution n par rapport à l'image des éléments d'avant-plan 202 et donc dans l'image pleine taille 11. L'étape de détermination 300 d'une image de transition est décrite de manière plus détaillée plus loin dans le présent document. L'image de transition 203 résultant de l'étape 300 a la même échelle que le masque opérant 253, ce qui signifie que l'image de transition 203 est à échelle réduite par un facteur de réduction de la résolution n par rapport à l'image des éléments d'avant-plan 202. Le facteur de réduction 15 de la résolution de l'avant-plan est par conséquent égal au facteur de réduction 252 de la résolution du masque opérant dans la construction de la couche d'avant-plan 200A. Des pixels qui sont blancs dans le masque opérant 253 sont vides dans l'image de transition 203.A construction of the foreground layer 200 is shown in Fig. 3. In order to distinguish between several methods of constructing the foreground layer, the construction of the foreground layer 200 illustrated in FIG. Fig. 3 is designated 200A. The full-size image 11 and the initial mask 104 are used as inputs in the selection step 201 of the pixels of the foreground elements in the full-size image 11, which generates a image of the foreground elements 202, which is a digital image, as an output. The initial mask 104 and a reduction factor 252 of the operating mask resolution are used as input to a resolution reduction step 251 which generates an operating mask 253, which is a binary digital image. The image of the foreground elements 202 and the operating mask 253 are then used as input to a determination step 300 of a transition image, which determines a transition image 203, which is a digital image. A fill step 204 is performed on the transition image 203 to generate the foreground layer 12. The step 201 of selecting pixels of the foreground elements in the full-size image 11 builds an image digital, the image of the foreground elements 202, where a pixel that is black in the initial mask 104 takes the same value as in the full-size image 11, and a pixel that is white in the initial mask 104 is established as "empty." The resolution reduction step 251 creates the operating mask 253 by reducing the resolution of the initial mask 104 by a factor n equal to the reduction factor 252 of the operating mask resolution. a pixel in the operating mask 253 corresponds to a first window of η xn pixels in the initial mask 104 and therefore in the full-size image 11, with n = 1, 2, ... In alternative embodiments, the first window used to generate the operating mask 253 from the initial mask 104 has a rectangular shape, a polygonal shape, a circular or elliptical shape, ... The determination step 300 of a transition image introduces a downscaling such that the image transition 203 resulting from step 300 has the same scale as the operating mask 253, which means that the transition image 203 is scaled down by a reduction factor of the resolution n with respect to the image of the elements foreground 202 and thus in the full-size image 11. The step of determining 300 of a transition image is described in more detail later in this document. The transition image 203 resulting from the step 300 has the same scale as the operating mask 253, which means that the transition image 203 is scaled down by a reduction factor of the resolution n relative to the image of the foreground elements 202. The reduction factor of the foreground resolution is therefore equal to the reduction factor 252 of the mask resolution operating in the foreground layer construction. 200A. Pixels that are white in the operating mask 253 are empty in the transition image 203.

Dans un mode de réalisation de l'invention, l'étape de sélection 201 des éléments d'avant-plan et l'étape de détermination 300 d'une image de transition sont combinées en une seule étape. L'image de transition 203 est directement calculée à partir de l'image pleine taille, du masque initial 104 et du masque opérant 253 sans calculer l'image des éléments d'avant-plan 202 en tant que telle. Le fait de sauter le calcul et le stockage de cette image des éléments d'avant-plan 202 réduit la mémoire requise pour le calcul informatisé. L'étape de remplissage 204 remplit les pixels vides en utilisant les pixels non vides voisins, par exemple par un algorithme séquentiel en deux étapes. Un tel algorithme est décrit dans le brevet US8331706. L’étape de remplissage 204 génère la couche d'avant-plan 12 comme sortie.In one embodiment of the invention, the selection step 201 of the foreground elements and the step of determining 300 of a transition image are combined in a single step. The transition image 203 is directly calculated from the full size image, the initial mask 104 and the operating mask 253 without calculating the image of the foreground elements 202 as such. Skipping the calculation and storage of this foreground image 202 reduces the memory required for the computer calculation. The filling step 204 fills the empty pixels using neighboring non-empty pixels, for example by a two-step sequential algorithm. Such an algorithm is described in US patent 8331706. The filling step 204 generates the foreground layer 12 as an output.

La construction de la couche d'avant-plan 200 selon un mode de réalisation de la présente invention est illustrée sur la figure 4. Pour faire la différence entre plusieurs procédés de construction de la couche d'avant-plan, la construction de la couche d'avant-plan 200 illustrée sur la figure 4 est désignée par 200B. L'image pleine taille 11 et le masque initial 104 sont utilisés comme entrées dans l'étape de sélection 201 des pixels des éléments d'avant-plan dans l’image pleine taille 11, ce qui génère une image d’éléments d'avant-plan 202, qui est une image numérique, comme sortie. Le masque initial 104 et un facteur de réduction 252 de la résolution du masque opérant sont utilisés comme entrée dans une étape de réduction de la résolution 251 qui génère un masque opérant 253, qui est une image numérique binaire. L'image des éléments d'avant-plan 202 et le masque opérant 253 sont alors utilisés comme entrée dans une étape de détermination 300 d'une image de transition, ce qui détermine une image de transition 203, qui est une image numérique. Une étape de remplissage 204 est effectuée sur l’image de transition 203 pour générer la couche d'avant-plan 12. L'étape de sélection 201 des pixels des éléments d’avant-plan dans l'image pleine taille 11 construit une image numérique, l'image des éléments d'avant-plan 202, où un pixel qui est noir dans le masque initial 104 prend la même valeur que dans l'image pleine taille 11, et un pixel qui est blanc dans le masque initial 104 est établi comme étant "vide". L'étape de réduction de la résolution 251 crée le masque opérant 253 par une réduction de la résolution du masque initial 104 par un facteur n égal au facteur de réduction 252 de la résolution du masque opérant. Par conséquent, un pixel dans le masque opérant 253 correspond à une première fenêtre de η x n pixels dans le masque initial 104, avec n=1, 2, ... Dans des variantes de réalisation, la première fenêtre utilisée pour générer le masque opérant 253 à partir du masque initial 104 a une forme rectangulaire, une forme polygonale, une forme circulaire ou elliptique,.,. L'étape de détermination 300 d'une image de transition introduit une réduction d'échelle de telle manière que l'image de transition 203 résultant de l'étape 300 ait la même échelle que le masque opérant 253, ce qui signifie que l'image de transition 203 est à échelle réduite par un facteur de réduction de la résolution n par rapport à l'image des éléments d'avant-plan 202. L'étape de détermination 300 d'une image de transition est décrite de manière plus détaillée plus loin dans le présent document. L'image de transition 203 résultant de l'étape 300 a la même échelle que le masque opérant 253, ce qui signifie que l'image de transition 203 est à échelle réduite par un facteur de réduction de la résolution n par rapport à l'image des éléments d'avant-plan 202. Des pixels qui sont blancs dans .le masque opérant 253 sont vides dans l'image de transition 203.The construction of the foreground layer 200 according to an embodiment of the present invention is illustrated in FIG. 4. To differentiate between several methods of constructing the foreground layer, the construction of the layer foreground 200 shown in Figure 4 is designated 200B. The full-size image 11 and the initial mask 104 are used as inputs in the selection step 201 of the pixels of the foreground elements in the full-size image 11, which generates an image of before elements plan 202, which is a digital image, as an output. The initial mask 104 and a reduction factor 252 of the operating mask resolution are used as input to a resolution reduction step 251 which generates an operating mask 253, which is a binary digital image. The image of the foreground elements 202 and the operating mask 253 are then used as input to a determination step 300 of a transition image, which determines a transition image 203, which is a digital image. A fill step 204 is performed on the transition image 203 to generate the foreground layer 12. The step 201 of selecting pixels of the foreground elements in the full-size image 11 builds an image digital, the image of the foreground elements 202, where a pixel that is black in the initial mask 104 takes the same value as in the full-size image 11, and a pixel that is white in the initial mask 104 is established as "empty". The resolution reduction step 251 creates the operating mask 253 by reducing the resolution of the initial mask 104 by a factor n equal to the reduction factor 252 of the operating mask resolution. Consequently, a pixel in the operating mask 253 corresponds to a first window of η xn pixels in the initial mask 104, with n = 1, 2, ... In variant embodiments, the first window used to generate the operating mask 253 from the initial mask 104 has a rectangular shape, a polygonal shape, a circular or elliptical shape,. The step 300 of determining a transition image introduces a downscaling such that the transition image 203 resulting from step 300 has the same scale as the operating mask 253, which means that the transition image 203 is scaled down by a reduction factor of the resolution n with respect to the image of the foreground elements 202. The step of determining 300 of a transition image is described in more detail later in this document. The transition image 203 resulting from the step 300 has the same scale as the operating mask 253, which means that the transition image 203 is scaled down by a reduction factor of the resolution n relative to the image of the foreground elements 202. Pixels which are white in the operating mask 253 are empty in the transition image 203.

Dans un mode de réalisation de l'invention, l'étape de sélection 201 des éléments d'avant-plan et l'étape de détermination 300 d'une image de transition sont combinées en une seule étape. L'image de transition 203 est directement calculée à partir de l'imagé pleine taille, du masque initial 104 et du masque opérant 253 sans calculer l'image des éléments d'avant-plan 202 en tant que telle. Le fait de sauter le calcul et le stockage de cette image des éléments d'avant-plan 202 réduit la mémoire requise pour le calcul informatisé.In one embodiment of the invention, the selection step 201 of the foreground elements and the step of determining 300 of a transition image are combined in a single step. The transition image 203 is directly calculated from the full-size image, the initial mask 104 and the operating mask 253 without calculating the image of the foreground elements 202 as such. Skipping the calculation and storage of this foreground image 202 reduces the memory required for the computer calculation.

La réduction de la résolution 205 réduit la résolution de l’image de transition 203. Étant donné que la couche d'avant-plan 12 est au total à échelle réduite par rapport à l'image pleine taille 11 par le facteur de réduction de la résolution de l'avant-plan 15 rfg, la réduction de la résolution 205 a un facteur de réduction 206 de la résolution égale au facteur de réduction 15 de la résolution de Pavant-plan divisé par le facteur de réduction 252 de la résolution du masque opérant dans la construction de la couche d'avant-plan 200B, En d'autres termes, la réduction de la résolution 205 réduit l'échelle de l'image de transition 203 par un facteur 206 égal à rfg/n, rfg étant supérieur à n. Le facteur de réduction 15 de la résolution de l'avant-plan est par conséquent plus grand que le facteur de réduction 252 de la résolution du masque opérant dans fa construction de la couche d'avant-plan 200B. L'étape de remplissage 204 remplît les pixels vides en utilisant les pixels non vides voisins, par exemple par un algorithme séquentiel en deux étapes. L'étape de remplissage 204 génère la couche d’avanî-plan 12 comme sortie. L'étape de détermination 300 d'une image de transition selon un mode de réalisation de la présente invention est illustrée sur la figure 5. Pour faire la différence entre plusieurs modes de réalisation de la présente invention, l'étape de détermination 300 d'une image de transition de la figure 5 est désignée par 3Q0A. L'étape de détermination 3Q0A d'une image de transition commence avec la création 350 d'une image 351 de pixels vides de même taille que le masque opérant 253. Un pixel dans l'image 351 de pixels vides correspond à un seul pixel dans le masque opérant 253. L'étape de détermination 300A d'une image de transition comprend alors une boucle 310 sur les pixels noirs 301 du masque opérant 253. La boucle 310 remplace, dans l'image 351 de pixels vides, chaque pixel qui correspond à un pixel noir dans le masque opérant 253 par un pixel de couleur 304.The reduction of the resolution 205 reduces the resolution of the transition image 203. Since the foreground layer 12 is in total reduced scale compared to the full-size image 11 by the reduction factor of the resolution of the foreground 15 rfg, the reduction of the resolution 205 has a reduction factor 206 of the resolution equal to the reduction factor 15 of the resolution of the foreground divided by the reduction factor 252 of the resolution of the mask operating in the construction of the foreground layer 200B, In other words, the reduction of the resolution 205 reduces the scale of the transition image 203 by a factor 206 equal to rfg / n, rfg being greater to n. The reduction factor of the foreground resolution is therefore greater than the reduction factor 252 of the mask resolution operating in the construction of the foreground layer 200B. The filling step 204 fills the empty pixels using neighboring non-empty pixels, for example by a two-step sequential algorithm. The filling step 204 generates the foreground layer 12 as an output. The step 300 of determining a transition image according to an embodiment of the present invention is illustrated in FIG. 5. To differentiate between several embodiments of the present invention, the determination step 300 of a transition image of Figure 5 is designated 3Q0A. The step 3Q0A determination of a transition image begins with the creation 350 of an image 351 of empty pixels of the same size as the operating mask 253. A pixel in the image 351 of empty pixels corresponds to a single pixel in the operating mask 253. The determining step 300A of a transition image then comprises a loop 310 on the black pixels 301 of the operating mask 253. The loop 310 replaces, in the image 351 of empty pixels, each pixel that corresponds to a black pixel in the operating mask 253 by a color pixel 304.

Chaque pixel noir 301 du masque opérant 253 est considéré à son tour. Une étape de moyennage de couleur 302 utilise comme entrées un pixel noir 301 du masque opérant 253, un facteur de moyennage m 303 et l'image des éléments d'avant-plan 202, et génère un pixel de couleur 304 à l'emplacement dudit pixel. Le pixel de couleur 304 remplace un pixel vide de l'image 351 de pixels vides. Puis, un autre pixel noir 301 du masque opérant 253 est pris en considération et ainsi de suite pour tous les pixels noirs du masque opérant 253. Au lieu d’une boucle 310 sur les pixels noirs 301 du masque opérant 253, iesdits pixels noirs 301 pourraient être pris en considération en parallèle. À la fin de la boucle, l'image de transition 203 est formée par les pixels de couleur 304 qui sont situés aux emplacements des pixels noirs 301 du masque opérant 253 et par des pixels vides qui sont situés aux emplacements des pixels blancs du masque opérant 253 et qui viennent de l'image 351 de pixels vides. Par conséquent, l'image de transition 203 a la même échelle que le masque opérant 253. Le moyennage de couleur 302 pour un pixel noir 301 donné du masque opérant 253 est un moyennage de couleur portant sur les couleurs d'un groupe de pixels dans l'image des éléments d'avant-plan 202, lesdits pixels dudit groupe ont deux caractéristiques. Premièrement, ils n'ont pas la valeur "vide" dans l'image des éléments d'avant-plan 202, ce qui signifie qu'ils correspondent aux pixels noirs dans le masque initial 104. Deuxièmement, ils sont dans une fenêtre de m x m pixels dans l'image des éléments d'avant-plan 202 qui est centrée sur le pixel noir 301 donné, où m, le facteur de moyennage de couleur 303, est plus élevé que rfg, le facteur de réduction 15 de la résolution de l'avant-plan.Each black pixel 301 of the operating mask 253 is considered in turn. A color averaging step 302 uses as inputs a black pixel 301 of the operating mask 253, an averaging factor m 303 and the image of the foreground elements 202, and generates a color pixel 304 at the location of said pixel. The color pixel 304 replaces an empty pixel of the image 351 of empty pixels. Then, another black pixel 301 of the operating mask 253 is taken into consideration and so on for all the black pixels of the operating mask 253. Instead of a loop 310 on the black pixels 301 of the operating mask 253, said black pixels 301 could be considered in parallel. At the end of the loop, the transition image 203 is formed by the color pixels 304 which are located at the locations of the black pixels 301 of the operating mask 253 and by empty pixels which are located at the locations of the white pixels of the operating mask. 253 and which come from the 351 image of empty pixels. Therefore, the transition image 203 has the same scale as the operating mask 253. The color averaging 302 for a given black pixel 301 of the operating mask 253 is a color averaging of the colors of a pixel group in the image of the foreground elements 202, said pixels of said group have two characteristics. First, they do not have the value "empty" in the image of the foreground elements 202, which means that they correspond to the black pixels in the initial mask 104. Second, they are in a window of mxm pixels in the image of the foreground elements 202 which is centered on the given black pixel 301, where m, the color averaging factor 303, is higher than rfg, the reduction factor 15 of the resolution of the pixel. 'foreground.

Par conséquent, ledit pixel noir 301 correspond pour ce qui est de son emplacement à une fenêtre de mise à l'échelle de rfg x rfg pixels dans l'image pleine taille 11 et est la moyenne de couleur sur une fenêtre de moyennage de m x m pixels dans l'image pleine taille 11 (où les pixels qui sont blancs dans le masque initial 104 ne sont pas pris en considération), avec rfg<m. Ce procédé où le moyennage de couleur est effectué sur une fenêtre plus grande que la fenêtre de mise à l'échelle crée des couleurs plus homogènes dans l'image de transition 203, et donc dans la couche d'avant-plan 12, qu'un procédé où le moyennage de couleur est effectué sur la fenêtre de mise à l'échelle.Therefore, said black pixel 301 corresponds in terms of its location to a scaling window of rfg x rfg pixels in the full-size image 11 and is the color mean over an averaging window of mxm pixels in the full-size image 11 (where the pixels that are white in the initial mask 104 are not taken into account), with rfg <m. This method where the color averaging is performed on a window larger than the scaling window creates more homogeneous colors in the transition image 203, and thus in the foreground layer 12, a method where color averaging is performed on the scaling window.

La fenêtre de moyennage peut être appelée "deuxième fenêtre" par opposition à la "première fenêtre" qui est la fenêtre de mise à l'échelle.The averaging window can be called "second window" as opposed to the "first window" which is the window of scaling.

Si le centrage de la fenêtre de moyennage sur l'emplacement dudit pixel noir 301 n'est pas possible, par exemple parce que rfg est égal à 2 et m est égal à 3, le centre de la fenêtre de moyennage peut être déplacé par rapport au centre de la fenêtre de mise à l'échelle.If the centering of the averaging window on the location of said black pixel 301 is not possible, for example because rfg is equal to 2 and m is equal to 3, the center of the averaging window can be moved relative to in the center of the scaling window.

La fenêtre de moyennage peut avoir une forme quelconque, une taille quelconque, tant qu'elle comprend plus de pixels que la fenêtre de mise à l'échelle. Si le masque opérant 253 a la même échelle que l'image en couleur 11 parce qu'aucune réduction de résolution 251 n'a été effectuée, le moyennage des couleurs 302 est effectué sur une fenêtre d'au moins deux pixels de l'image des éléments d’avant-plan 202. Dans un mode de réalisation de l'invention, la fenêtre de moyennage varie en taille et/ou en forme selon une règle prédéterminée. Par exemple, la fenêtre de moyennage peut être plus grande dans des régions où la variation de couleur des pixels est petite et étroite dans des régions où la couleur varie fortement de pixel à pixel.The averaging window can have any shape, any size, as long as it includes more pixels than the scaling window. If the operating mask 253 has the same scale as the color image 11 because no resolution reduction 251 has been performed, the color averaging 302 is performed on a window of at least two pixels of the image foreground elements 202. In one embodiment of the invention, the averaging window varies in size and / or shape according to a predetermined rule. For example, the averaging window may be larger in regions where pixel color variation is small and narrow in regions where the color varies greatly from pixel to pixel.

Dans un mode de réalisation de l'invention, le moyennage des couleurs 302 est effectué à partir des valeurs des pixels d'une fenêtre de moyennage dans l'image pleine taille 11, ne prenant en considération que des pixels qui sont noirs dans le masque initial 104. Cela fournit la même image de transition 203 que le procédé décrit jusqu'ici qui utilise l'image des éléments d'avant-plan 202 sans requérir cette image intermédiaire des éléments d'avant-plan 202.In one embodiment of the invention, the color averaging 302 is performed from the pixel values of an averaging window in the full-size image 11, taking into consideration only pixels that are black in the mask This provides the same transition image 203 as the method so far described which uses the foreground element image 202 without requiring this intermediate image of the foreground elements 202.

Le moyennage de couleur 302 pour le pixel noir 301 fournit la couleur 304 dudit pixel noir 301 dans l'image de transition 203. Puis, un pixel noir 301 suivant est pris en considération et sa couleur 304 dans l'image de transition 203 est fournie par le moyennage de couleur 302, jusqu'à ce que la couleur dans l'image de transition de tous les pixels noirs 301 du masque opérant 253 ait été calculée.The color averaging 302 for the black pixel 301 provides the color 304 of said black pixel 301 in the transition image 203. Then, a next black pixel 301 is taken into consideration and its color 304 in the transition image 203 is provided. by the color averaging 302, until the color in the transition image of all the black pixels 301 of the operating mask 253 has been calculated.

Dans un mode de réalisation de l'invention, la fenêtre de moyennage n'a pas la même taille pour tous les pixels de l'image de transition 203. Dans un mode de réalisation de l'invention, la fenêtre de moyennage n'est pas plus grande que la fenêtre de mise à l'échelle pour certains pixels de l'image de transition 203. Dans un mode de réalisation de l'invention, la fenêtre de moyennage a la même taille que la fenêtre de mise à l'échelle pour certains pixels de l'image de transition 203 et est plus grande que la fenêtre de mise à l'échelle pour d'autres pixels de l'image de transition 203,In one embodiment of the invention, the averaging window does not have the same size for all the pixels of the transition image 203. In one embodiment of the invention, the averaging window is not no larger than the scaling window for some pixels of the transition image 203. In one embodiment of the invention, the averaging window is the same size as the scaling window. for some pixels of the transition image 203 and is larger than the scaling window for other pixels of the transition image 203,

Dans un mode de réalisation de l'invention, le moyennage de couleur 302 est remplacé par une autre opération qui détermine une couleur à partir des couleurs des pixels dans la fenêtre de moyennage. Cette opération peut être une détermination d'une médiane, d'un mode statistique, d’une moyenne géométrique, d'une moyenne pondérée,,..In one embodiment of the invention, the color averaging 302 is replaced by another operation which determines a color from the colors of the pixels in the averaging window. This operation can be a determination of a median, a statistical mode, a geometric mean, a weighted average, ..

La figure 6 fournit une illustration de la détermination de l'image de transition 300A décrite en se référant à la figure 5. La figure 6 est à une dimension, prenant en considération une ligne de pixels, mais le procédé décrit peut être immédiatement généralisé au cas d'une matrice de pixels à deux dimensions. La ligne 601 fournit l'indice des pixels d'un trait horizontal. L'indice sera utilisé plus loin dans le présent document. La ligne 602 fournit la valeur des pixels dans une image originale en niveaux de gris 1, la valeur d'un pixel indiquant le niveau de gris dudit pixel. La ligne 603 fournit la valeur des pixels déterminée par une numérisation par balayage de l'image originale en niveaux de gris 1. La ligne 603 est l'image pleine taille 11 à laquelle il est fait référence dans la description de la présente invention. La ligne 604 est le masque initial 104 déterminé à partir de l'image pleine taille 11 (ligne 603) par les étapes de binarisation 101 et de détermination des éléments d’avant-plan 103. La ligne 605 est l'image des éléments d'avant-plan 202. La ligne 606 est le masque opérant 253, déterminé à partir du masque initiai 104 par la réduction de la résolution 251. La ligne 607 est l'image de transition 203 résultant de la détermination de l'image de transition 300A selon un mode de réalisation de la présente invention. La ligne 608 est l'image de transition 203 résultant d'un procédé connu de détermination de l'image de transition. La ligne 609 fournit l'indice des pixels à une échelle réduite sur le trait horizontal.FIG. 6 provides an illustration of the determination of the transition image 300A described with reference to FIG. 5. FIG. 6 is one-dimensional, taking into account a pixel line, but the described method can be immediately generalized to FIG. case of a matrix of two-dimensional pixels. Line 601 provides the pixel index of a horizontal line. The index will be used later in this document. Line 602 provides the value of the pixels in an original grayscale image 1, the value of a pixel indicating the gray level of said pixel. Line 603 provides the pixel value determined by scanning the original greyscale image 1. Line 603 is the full-size image 11 referred to in the description of the present invention. Line 604 is the initial mask 104 determined from the full-size image 11 (line 603) by the binarization steps 101 and the determination of the foreground elements 103. The line 605 is the image of the d-elements. 206. The line 606 is the operating mask 253, determined from the initial mask 104 by the reduction of the resolution 251. The line 607 is the transition image 203 resulting from the determination of the transition image. 300A according to an embodiment of the present invention. Line 608 is the transition image 203 resulting from a known method of determining the transition image. Line 609 provides the index of pixels at a reduced scale on the horizontal line.

Une valeur de pixel plus élevée dans les lignes 602, 603, 605, 607 et 608 indique un niveau de gris proche du blanc et une valeur plus basse indique un niveau de gris proche du noir. L'image originale comprend une première partie claire (pixels a et b), une partie foncée (pixels c à g), un pixel entre clair et foncé (pixel h) et une deuxième partie claire (pixels i et j). L'image pleine taille (ligne 603) n’est pas exactement égale à l'image originale (ligne 602) parce que la couleur au bord entre les parties claires et la partie foncée (pixels c et g) est un mélange entre les parties foncée et claires, cela peut être dû à l'impression, à la numérisation par balayage ou à un autre traitement d'image physique ou numérique. Le masque initial (ligne 604) est déterminé en considérant que tous les pixels avec une valeur inférieure à 100 sont noirs (valeur = 1) et les autres sont blancs (valeur = 0). L'image des éléments d'avant-plan 202 (ligne 605) est déterminée à partir de l'image pleine taille 11 (ligne 603) et du masque initial (ligne 604) en établissant comme étant vides les pixels blancs du masque initial et en assignant aux pixels noirs du masque initial leur valeur dans l'image pleine taille (ligne 603). Le masque opérant (ligne 606) est déterminé à partir du masque initial (ligne 604) par une mise à l'échelle par un facteur de réduction de résolution n égal à 2. L’image de transition résultant de la détermination de l'image de transition 300A selon un mode de réalisation de la présente invention (ligne 607) a la même échelle que le masque opérant (ligne 606). Les pixels ab et ij qui sont blancs (valeur = 0) dans le masque (ligne 606) sont établis comme étant vides dans l'image de transition (ligne 607). La valeur des pixels cd, ef et gh qui sont noirs (valeur = 1) dans le masque opérant (ligne 606) est déterminée par une moyenne des valeurs des pixels non vides de l'image des éléments d'avant-plan (ligne 605) qui ne sont pas vides et sont dans une fenêtre de quatre (m=4) pixels centrée sur les pixels noirs du masque opérant. De manière plus spécifique, la valeur du pixel cd dans la ligne 607 est la moyenne de c, d et e de la ligne 605; la valeur du pixel ef dans la ligne 607 est la moyenne de d, e, f et g de la ligne 605; et la valeur du pixel gh dans la ligne 607 est la moyenne de f et g de la ligne 605. L'image de transition résultant d'un procédé connu de détermination de l'image de transition (ligne 608) a la même échelle que le masque opérant (ligne 606). Les pixels ab et ij qui sont blancs (valeur = 0) dans le masque (ligne 606) sont établis comme étant vides dans l’image de transition (ligne 608). La valeur des pixels cd, ef et gh qui sont noirs (valeur = 1) dans le masque opérant (ligne 606) est déterminée par une moyenne des valeurs des pixels non vides de l’image des éléments d'avant-plan (ligne 605) en utilisant la même fenêtre pour le moyennage que pour la mise à l'échelle. De manière plus spécifique, la valeur des pixels cd dans la ligne 608 est la moyenne de c et d de la ligne 605; la valeur du pixel ef dans la ligne 608 est la moyenne de e et f de la ligne 605; et la valeur du pixel gh dans la ligne 608 est égale à la valeur du pixel g de la ligne 605. Il apparaît que les valeurs dans la ligne 607 sont plus homogènes que les valeurs dans la ligne 608.A higher pixel value in lines 602, 603, 605, 607, and 608 indicates a gray level close to white, and a lower value indicates a gray level close to black. The original image includes a first clear part (pixels a and b), a dark part (pixels c to g), a pixel between light and dark (pixel h) and a second clear part (pixels i and j). The full size image (line 603) is not exactly equal to the original image (line 602) because the color at the edge between the light and dark portions (pixels c and g) is a mixture between the parts dark and light, this may be due to printing, scanning, or other physical or digital image processing. The initial mask (line 604) is determined by considering that all the pixels with a value lower than 100 are black (value = 1) and the others are white (value = 0). The image of the foreground elements 202 (line 605) is determined from the full-size image 11 (line 603) and the initial mask (line 604) by setting the white pixels of the initial mask as empty. assigning the black pixels of the initial mask their value in the full size image (line 603). The operating mask (line 606) is determined from the initial mask (line 604) by scaling by a reduction factor of resolution n equal to 2. The transition image resulting from the image determination 300A transition device according to one embodiment of the present invention (line 607) has the same scale as the operating mask (line 606). The pixels ab and ij which are white (value = 0) in the mask (line 606) are set as empty in the transition image (line 607). The value of the pixels cd, ef and gh which are black (value = 1) in the operating mask (line 606) is determined by an average of the values of the non-empty pixels of the image of the foreground elements (line 605). ) that are not empty and are in a window of four (m = 4) pixels centered on the black pixels of the operating mask. More specifically, the value of pixel cd in line 607 is the average of c, d and e of line 605; the value of the pixel ef in the line 607 is the average of d, e, f and g of the line 605; and the value of the pixel gh in the line 607 is the average of f and g of the line 605. The transition image resulting from a known method of determining the transition image (line 608) has the same scale as the operating mask (line 606). The pixels ab and ij which are white (value = 0) in the mask (line 606) are set as empty in the transition image (line 608). The value of the pixels cd, ef and gh which are black (value = 1) in the operating mask (line 606) is determined by an average of the values of the non-empty pixels of the image of the foreground elements (line 605). ) using the same window for averaging as for scaling. More specifically, the value of pixels cd in line 608 is the average of c and d of line 605; the value of the pixel ef in line 608 is the average of e and f of line 605; and the value of the pixel gh in the line 608 is equal to the value of the pixel g of the line 605. It appears that the values in the line 607 are more homogeneous than the values in the line 608.

La figure 7 fournit une deuxième illustration de la détermination de l'image de transition 300A décrite en se référant à la figure 5. Une matrice 701 fournit la valeur des pixels dans une image originale en niveaux de gris 1, la valeur d'un pixel indiquant le niveau de gris dudit pixel. L'image originale représente un premier caractère 702.et un deuxième caractère 703 qui sont plus foncés (nombre moindre dans l'échelle des gris) que le reste de ladite image originale. Une matrice 704 fournît la valeur des pixels déterminée par une numérisation par balayage de l'image originale en niveaux de gris 1. La matrice 704 est l'image pleine taille 11 à laquelle il est fait référence dans la description de la présente invention. Les deux caractères sont dénommés 705 et 706 dans 704. Une matrice 707 est le masque initial 104 déterminé à partir de l'image pleine taille 11 (matrice 704) par les étapes de binarisation 101 et de détermination des éléments d'avant-plan 103. Les deux caractères sont dénommés 708 et 709 dans 707. Une matrice 710 est l'image des éléments d'avant-plan 202. Les deux caractères sont dénommés 711 et 712 dans 710. Une matrice 713 est le masque opérant 253, déterminé à partir du masque initial 104 par la réduction de la résolution 251. Les deux caractères sont dénommés 714 et 715 dans 713. Une matrice 716 est l'image de transition 203 résultant de la détermination de l'image de transition 300A selon un mode de réalisation de la présente invention. Les deux caractères 717 et 718 sont présents dans la matrice 716. Un des pixels de la matrice 716 a reçu un numéro de référence 719. Une matrice 722 est l'image des éléments d'avant-plan 202 où sont indiquées la fenêtre de mise à l'échelle 723 et la fenêtre de moyennage 724 correspondant au pixel 719 dans l'image de transition 203 (matrice 716). L'image pleine taille (matrice 704) n'est pas exactement égale à l'image originale (matrice 701), principalement parce que la couleur au bord entre les parties claires et la partie foncée est un mélange entre les parties foncée et claires. Le masque initial (matrice 707) est déterminé en considérant que tous les pixels avec une valeur inférieure à 100 sont noirs et que les autres sont blancs. L'image des éléments d'avant-plan 202 (matrice 710) est déterminée à partir de l'image pleine taille (matrice 704) et du masque initial (matrice 707) en établissant comme étant vides les pixels blancs du masque initial et en assignant aux pixels noirs du masque initial leur valeur dans l'image pleine taille (matrice 704). Le masque opérant (matrice 713) est déterminé à partir du masque initial (matrice 707) par une mise à l’échelle par un facteur der réduction de résolution n égal à 2. Différentes formules de mise à l'échelle sont possibles. Le procédé de mise à l’échelle préféré consiste à considérer un pixel résultant d'une mise à l'échelle égale à 1 si au moins un pixel dans la fenêtre de mise à l'échelle est égal à 1. L'image de transition (matrice 716) résultant de la détermination de l’image de transition 300A selon un mode de réalisation de la présente invention a la même échelle que le masque opérant (matrice 713). Les pixels blancs du masque opérant (matrice 713) sont des pixels vides dans l'image de transition (matrice 716). Les pixels noirs du masque opérant (matrice 713) sont calculés à partir d'une moyenne sur une fenêtre de 16 (quatre x quatre) pixels non vides (m=4) de l'image des éléments d'avant-plan centrée sur les pixels noirs du masque, La position du pixel 719 correspond à la fenêtre 723 dans l'image des éléments d’avant-plan (matrice 722) et la valeur (ou couleur) du pixel 719 est calculée comme la moyenne portant sur les valeurs des pixels non vides de la fenêtre 724. L’étape de détermination 300 d'une image de transition selon un autre mode de réalisation de la présente invention est illustrée sur la figure 8, Pour faire la différence entre plusieurs modes de réalisation de la présente invention, l'étape de détermination 300 d’une image de transition de la figure 8 est désignée par 3Q0B. L'étape de détermination 300B d'une image de transition commence à partir de l'image des éléments d'avant-plan 202. Des images 402 de composants connectés sont calculées à partir de l'image des éléments d'avant-plan 202 à l'étape 401. Des images correspondantes 404 de composants connectés dans le masque opérant sont calculées à partir du masque opérant 253 ä l'étape 403. L'étape de détermination 300B d'une image de transition comprend une boucle 450 sur les images 404 de composants connectés dans le masque opérant qui comprend une série 400 d'étapes accomplies pour tout composant connecté 404 dans le masque opérant. La série 400 d'étapes commence avec la création 490 d'une image 491 de pixels vides pour le composant connecté considéré. L'image 491 a la même taille que l'image 404 considérée de composant connecté dans le masque opérant 253. Un pixel dans l'image 491 de pixels vides correspond à un seul pixel dans l'image 404 considérée de composant connecté dans le masque opérant 253.FIG. 7 provides a second illustration of the determination of the transition image 300A described with reference to FIG. 5. A matrix 701 provides the value of the pixels in an original grayscale image 1, the value of one pixel indicating the gray level of said pixel. The original image represents a first character 702.and a second character 703 which are darker (less number in the gray scale) than the remainder of said original image. Matrix 704 provides the pixel value determined by scanning the original greyscale image 1. Matrix 704 is the full-size image 11 to which reference is made in the description of the present invention. The two characters are called 705 and 706 in 704. A matrix 707 is the initial mask 104 determined from the full-size image 11 (matrix 704) by the binarization steps 101 and the determination of the foreground elements 103 The two characters are called 708 and 709 in 707. A matrix 710 is the image of the foreground elements 202. The two characters are called 711 and 712 in 710. A matrix 713 is the operating mask 253, determined at from the initial mask 104 by the reduction of the resolution 251. The two characters are called 714 and 715 in 713. A matrix 716 is the transition image 203 resulting from the determination of the transition image 300A according to one embodiment. of the present invention. The two characters 717 and 718 are present in the matrix 716. One of the pixels of the matrix 716 has received a reference number 719. A matrix 722 is the image of the foreground elements 202 where the setting window is indicated. at the 723 scale and the averaging window 724 corresponding to the pixel 719 in the transition image 203 (matrix 716). The full size image (matrix 704) is not exactly equal to the original image (matrix 701), mainly because the color at the edge between the light and dark parts is a mixture between the dark and light parts. The initial mask (matrix 707) is determined by considering that all the pixels with a value lower than 100 are black and the others are white. The image of the foreground elements 202 (matrix 710) is determined from the full size image (matrix 704) and the initial mask (matrix 707) by setting the white pixels of the initial mask as empty and assigning to the black pixels of the initial mask their value in the full-size image (array 704). The operating mask (matrix 713) is determined from the initial mask (matrix 707) by scaling by a reduction factor of resolution n equal to 2. Different scaling formulas are possible. The preferred scaling method is to consider a pixel resulting from scaling equal to 1 if at least one pixel in the scaling window equals 1. The transition image (Matrix 716) resulting from the determination of the transition image 300A according to one embodiment of the present invention on the same scale as the operating mask (array 713). The white pixels of the operating mask (array 713) are empty pixels in the transition image (array 716). The black pixels of the operating mask (matrix 713) are calculated from an average of a window of 16 (four x four) non-empty pixels (m = 4) of the image of the foreground elements centered on the black pixels of the mask, the position of the pixel 719 corresponds to the window 723 in the image of the foreground elements (matrix 722) and the value (or color) of the pixel 719 is calculated as the average relating to the values of the pixels. non-empty pixels of window 724. The step 300 of determining a transition image according to another embodiment of the present invention is illustrated in FIG. 8, to differentiate between several embodiments of the present invention. the step of determining 300 of a transition image of FIG. 8 is designated 3Q0B. The determination step 300B of a transition image starts from the image of the foreground elements 202. Images 402 of connected components are calculated from the image of the foreground elements 202 in step 401. Corresponding images 404 of components connected in the operating mask are calculated from the operating mask 253 at step 403. The determining step 300B of a transition image comprises a loop 450 on the images 404 of connected components in the operating mask that includes a series of 400 completed steps for any connected component 404 in the operating mask. The series 400 of steps begins with the creation 490 of an image 491 of empty pixels for the connected component considered. The image 491 is the same size as the associated component image 404 connected in the operating mask 253. A pixel in the empty pixel image 491 corresponds to a single pixel in the associated component image 404 connected in the mask operating 253.

La série 400 d'étapes comprend une boucle 420 sur les pixels noirs de l'image 404 considérée de composant connecté dans le masque opérant 253. La boucle 420 remplace, dans l'image 491 de pixels vides pour le composant connecté considéré, tout pixel qui est noir dans l'image 404 du composant connecté dans le masque opérant 253 par un pixel de couleur 408. Chaque pixel noir 405 de l'image 404 considérée est considéré à son tour. Une étape de moyennage de couleur 406 utilise comme entrées ledit pixel noir 405, un facteur de moyennage de couleur m 407 et l'image du composant connecté 402 correspondant dans l’image des éléments d'avant-plan, et génère le pixel de couleur 408 dans le composant connecté considéré dans l'image de transition à l'emplacement correspondant au pixel noir 404. Le pixel de couleur 408 remplace un pixel vide de l'image 491 de pixels vides. Puis, un autre pixel noir 405 de l’image 404 considérée du composant connecté est pris en considération et ainsi de suite pour tous les pixels noirs de l'image 404 considérée du composant connecté. À la fin de la boucle 420, un composant connecté 412 dans l'image de transition 203 est formé par les pixels de couleur 408 qui sont situés aux emplacements des pixels noirs 405 du composant connecté 404 correspondant dans le masque opérant 253 et par des pixels vides qui sont situés aux emplacements des pixels blancs du composant connecté 404 correspondant dans le masque opérant 253 et qui proviennent de l'image vide 491. Par conséquent, le composant connecté 412 dans l'image de transition 203 a la même échelle que le composant connecté 404 correspondant dans le masque opérant 253.The series 400 of steps comprises a loop 420 on the black pixels of the image 404 considered component connected in the operating mask 253. The loop 420 replaces, in the image 491 of empty pixels for the connected component considered, any pixel which is black in the image 404 of the component connected in the operating mask 253 by a color pixel 408. Each black pixel 405 of the considered image 404 is considered in turn. A color averaging step 406 uses as inputs said black pixel 405, a color averaging factor m 407 and the corresponding connected component image 402 in the foreground image, and generates the color pixel. 408 in the connected component considered in the transition image at the location corresponding to the black pixel 404. The color pixel 408 replaces an empty pixel of the image 491 of empty pixels. Then, another black pixel 405 of the considered image 404 of the connected component is taken into consideration and so on for all the black pixels of the considered image 404 of the connected component. At the end of the loop 420, a connected component 412 in the transition image 203 is formed by the color pixels 408 which are located at the locations of the black pixels 405 of the corresponding connected component 404 in the operating mask 253 and by pixels blanks which are located at the white pixel locations of the corresponding connected component 404 in the operating mask 253 and come from the empty image 491. Therefore, the connected component 412 in the transition image 203 has the same scale as the component connected 404 corresponding in the operating mask 253.

Puis, un autre composant connecté 404 dans le masque opérant est considéré dans la boucle 450 avec la création 490 d'une image 491 de pixels vides pour le composant connecté considéré et une boucle 420 sur ses pixels noirs. À la fin de l'étape de détermination 300B d'une image de transition, tous les composants connectés 412 de l'image de transition forment l'image de transition 203.Then, another connected component 404 in the operating mask is considered in the loop 450 with the creation 490 of an image 491 of empty pixels for the connected component considered and a loop 420 on its black pixels. At the end of the determination step 300B of a transition image, all the connected components 412 of the transition image form the transition image 203.

En raison de la façon dont elle a été construite à l'étape de sélection 201 des pixels des éléments d'avant-plan dans l'image pleine taille, l’image des éléments d'avant-plan 202 est faite de pixels de couleur et de pixels vides. À l'étape 401 de création d'images de composant connecté à partir de l'image d'élément d’avant-plan 202, les composants connectés de ladite image 202 sont découpés en images numériques 402 individuelles qui sont des images plus petites que ladite image 202. Toute image 402 d'un composant connecté contient un seul composant connecté. Par exemple, un composant connecté 402 dans l'image des éléments d'avant-plan peut comprendre un élément textuel, un caractère, un élément lineart, une lettre, un symbole ou un signe de ponctuation.Due to the way in which it was constructed at the selection step 201 of the pixels of the foreground elements in the full size image, the image of the foreground elements 202 is made of color pixels and empty pixels. In step 401 of creating component images connected from the foreground element image 202, the connected components of said image 202 are cut into individual digital images 402 which are smaller images than said image 202. Any image 402 of a connected component contains a single connected component. For example, a connected component 402 in the foreground image may comprise a textual element, a character, a lineart element, a letter, a symbol, or a punctuation mark.

Dans un mode de réalisation de l'invention, une image 402 d'un composant connecté correspond à un rectangle englobant du composant connecté, c'est-à-dire le plus petit rectangle qui comprend le composant connecté. Dans un mode de réalisation de l'invention, la coordonnée supérieure gauche du rectangle englobant est conservée afin de faire la correspondance avec l'image des éléments d'avant-plan 202. Les rectangles englobants de deux composants connectés peuvent se chevaucher. Par exemple, si l'image représente les lettres "VA", le rectangle englobant de 'V' peut chevaucher le rectangle englobant de 'A'. À l'étape 403 de création d'images 404 de composants connectés dans le masque opérant 253, chaque image de composant connecté 404 du masque opérant est sélectionnée pour correspondre à une image de composant connecté 402 dans l'image des éléments d'avant-plan. Une image de composant connecté 402 dans l'image des éléments d'avant-plan et l'image correspondante du composant connecté 404 dans le masque correspond au même ensemble de pixels dans l'image pleine taille 11.In one embodiment of the invention, an image 402 of a connected component corresponds to a bounding rectangle of the connected component, i.e., the smallest rectangle that includes the connected component. In one embodiment of the invention, the upper-left coordinate of the bounding rectangle is retained to match the image of the foreground elements 202. The enclosing rectangles of two connected components may overlap. For example, if the image represents the letters "VA", the bounding box of 'V' can overlap the bounding box of 'A'. In step 403 of creating images 404 of connected components in the operating mask 253, each connected component image 404 of the operating mask is selected to correspond to a connected component image 402 in the image of the precursor elements. plan. A connected component image 402 in the image of the foreground elements and the corresponding image of the connected component 404 in the mask corresponds to the same set of pixels in the full-size image 11.

Le moyennage de couleur 406 pour un pixel noir 405 donne de l'image de composant connecté 404 du masque est un moyennage de couleur portant sur les couleurs d'un groupe de pixels de l'image de composant connecté 402 dans l'image des éléments d'avant-plan qui correspond à l'image de composant connecté 404 dans le masque opérant, lesdits pixels dudit groupe ayant deux caractéristiques. Premièrement, ils n'ont pas la valeur "vide" dans l'image de composant connecté 402 dans l’image des éléments d'avant-plan, ce qui signifie qu'ils correspondent aux pixels noirs dans le masque initial 104. Deuxièmement, ils sont dans une fenêtre de m x m pixels dans l'image de composant connecté 402 dans l'image des éléments d'avant-plan qui est centrée sur le pixel noir 405 donné, où m, le facteur de moyennage de couleur, est supérieur à n, le facteur de réduction de la résolution du masque opérant. Si la fenêtre va au-delà des pixels de l'image de composant connecté 402, cette partie au-delà des pixels de l'image de composant connecté n'est pas prise en compte dans le moyennage 406.The color averaging 406 for a black pixel 405 of the connected component image 404 of the mask is a color averaging of the colors of a group of pixels of the connected component image 402 in the image of the elements. foreground which corresponds to the connected component image 404 in the operating mask, said pixels of said group having two characteristics. First, they do not have the value "empty" in the connected component image 402 in the foreground image, which means that they correspond to the black pixels in the initial mask 104. Second, they are in a window of mxm pixels in the connected component image 402 in the image of the foreground elements which is centered on the given black pixel 405, where m, the color averaging factor, is greater than n, the reduction factor of the resolution of the operating mask. If the window goes beyond the pixels of the connected component image 402, that portion beyond the pixels of the connected component image is not taken into account in the averaging 406.

Par conséquent, ledit pixel noir 405 correspond pour ce qui est de son emplacement à une fenêtre de mise à l'échelle de m x m pixels dans l'image pleine taille 11, mais est la moyenne de couleur sur une fenêtre de m x m pixels dans une seule image de composant connecté de l'image pleine taille 11 (où les pixels qui sont blancs dans le masque initial 104 ne sont pas pris en considération). Ce procédé où le moyennage de couleur est effectué sur une fenêtre plus grande que la fenêtre dé mise à l'échelle crée des couleurs plus homogènes dans l'image de transition 203, et donc dans la couche d'avant-plan 12, qu'un procédé où le moyennage de couleur est effectué sur la fenêtre de mise à l'échelle. À cause de la séparation en image de composant connecté, les couleurs des pixels de différents composants connectés ne peuvent pas se mélanger pendant le moyennage des couleurs 406. Si un caractère bleu est suivi par un caractère rouge, le bleu et le rouge ne se mélangent pas.Therefore, said black pixel 405 corresponds as to its location to a scaling window of mxm pixels in the full-size image 11, but is the color average over a window of mxm pixels in a single connected component image of the full-size image 11 (where the pixels that are white in the initial mask 104 are not considered). This method where the color averaging is performed on a window larger than the scaling window creates more homogeneous colors in the transition image 203, and thus in the foreground layer 12, a method where color averaging is performed on the scaling window. Due to the connected component image separation, pixel colors of different connected components can not mix during averaging of colors 406. If a blue character is followed by a red character, blue and red do not mix not.

Si le centrage de la fenêtre de moyennage sur l'emplacement dudit pixel noir 405 n'est pas possible, par exemple parce que n est égal à 2 et m est égal à 3, le centre de la fenêtre de moyennage peut être déplacé par rapport au centre de la fenêtre de mise à l'échelle.If the centering of the averaging window on the location of said black pixel 405 is not possible, for example because n is equal to 2 and m is equal to 3, the center of the averaging window can be moved relative to in the center of the scaling window.

La fenêtre de moyennage peut avoir une forme quelconque, une taille quelconque, tant qu'elle comprend plus de pixels que la fenêtre de mise à l'échelle et de pixels d'un seul composant connecté. Si le masque opérant 253 a la même échelle que l'image pleine taille 11, le moyennage des couleurs 406 est effectué sur une fenêtre d'au moins deux pixels dans l'image de composant connecté 402 de l'image des éléments d'avant-plan, dans un mode de réalisation de l'invention, la fenêtre de moyennage varie en taille et/ en forme selon une règle prédéterminée. Par exemple, la fenêtre de moyennage peut être grande pour un composant connecté correspondant à un grand trait et étroite pour un composant connecté correspondant à un trait étroit.The averaging window can have any shape, any size, as long as it includes more pixels than the scaling window and pixels of a single connected component. If the operating mask 253 has the same scale as the full-size image 11, the color averaging 406 is performed on a window of at least two pixels in the connected component image 402 of the image of the before elements In one embodiment of the invention, the averaging window varies in size and shape according to a predetermined rule. For example, the averaging window may be large for a connected component corresponding to a large and narrow line for a connected component corresponding to a narrow line.

Le moyennage de couleur 406 pour le pixel noir 405 fournit un pixel de couleur 408 à l'emplacement dudit pixel noir 405 dans l'image de composant connecté 412 dans l'image de transition. Puis un pixel noir 405 suivant est considéré et le pixel de couleur 408 correspondant dans l'image de composant connecté 412 dans l'image de transition est fourni par le moyennage 406 jusqu'à ce que la couleur de tous les pixels noirs 301 de l’image de composant connecté 404 du masque ait été calculée.Color averaging 406 for black pixel 405 provides a color pixel 408 at the location of said black pixel 405 in the connected component image 412 in the transition image. Then a next black pixel 405 is considered and the corresponding color pixel 408 in the connected component image 412 in the transition image is provided by the averaging 406 until the color of all the black pixels 301 of the connected component image 404 of the mask has been calculated.

Les pixels de couleur 408 et les pixels vides établis à l'étape 490 forment l’image de composant connecté 412 dans l'image de transition. Puis le composant connecté 404 suivant du masque opérant est considéré dans la boucle 450. Par conséquent, l'image de composant connecté 412 dans l'image de transition a la même échelle que l'image de composant connecté 404 dans le masque et l'image de transition 203 a la même échelle que le masque opérant 253.The color pixels 408 and the empty pixels set in step 490 form the connected component image 412 in the transition image. Then the next connected component 404 of the operating mask is considered in the loop 450. Therefore, the connected component image 412 in the transition image has the same scale as the connected component image 404 in the mask and the transition image 203 has the same scale as the operating mask 253.

Dans un mode de réalisation de l'invention, le moyennage de couleurs 406 est effectué à partir des valeurs des pixels d'une fenêtre de moyennage dans l'image pleine taille 11, en ne prenant en considération que des pixels qui sont noirs dans le masque initial 104. Cela fournit la même image de transition 203 que le procédé décrit jusqu'ici qui utilise l’image des éléments d'avant-plan 202 sans requérir cette image intermédiaire des éléments d'avant-plan 202.In one embodiment of the invention, the color averaging 406 is performed from the pixel values of an averaging window in the full-size image 11, taking into consideration only pixels that are black in the image. initial mask 104. This provides the same transition image 203 as the method heretofore described which uses the foreground element image 202 without requiring this intermediate image of the foreground elements 202.

La a figure 9 fournit une illustration de la détermination de l'image de transition 300B décrite en référence à la figure 8.Fig. 9 provides an illustration of the determination of the transition image 300B described with reference to Fig. 8.

Une matrice 901 fournît la valeur des pixels dans une image originale en niveaux de gris 1, la valeur d'un pixel indiquant le niveau de gris dudit pixel. L'image originale représente un premier caractère 902 et un deuxième caractère 903 qui sont plus foncés (nombre moindre dans l'échelle des gris) que l'arrière-plan de ladite image originale. Une matrice 904 fournit la valeur des pixels déterminée par une numérisation par balayage de l'image originale en niveaux de gris 1. La matrice 904 est l'image pleine taille 11 à laquelle il est fait référence dans la description de la présente invention. Les deux caractères sont dénommés 905 et 906 dans 904. L'ensemble de pixels des colonnes 1 à 6 a reçu le numéro de référence 960 et l'ensemble de pixels des colonnes 7 à 10 a reçu le numéro de référence 970. Une matrice 907 est le masque initial 104 déterminé à partir de l'image pleine taille 11 (matrice 904) par les étapes de binarisation 101 et de détermination des éléments d’avant-plan 103. Les deux caractères sont dénommés 908 et 909 dans 907. Une matrice 910 est l'image des éléments d'avant-plan 202. Les deux caractères sont dénommés 911 et 912 dans 910. Une matrice 913 est le masque opérant 253, déterminé à partir du masque initial 104 par la réduction de la résolution 105. Les deux caractères sont dénommés 914 et 915 dans 913,A matrix 901 supplies the value of the pixels in an original grayscale image 1, the value of a pixel indicating the gray level of said pixel. The original image represents a first character 902 and a second character 903 which are darker (less in the gray scale) than the background of said original image. A matrix 904 provides the pixel value determined by scanning the original grayscale image 1. Matrix 904 is the full-size image 11 referred to in the description of the present invention. The two characters are called 905 and 906 in 904. The set of pixels in columns 1 to 6 has been assigned reference number 960 and the set of pixels in columns 7 to 10 has been assigned reference number 970. A matrix 907 is the initial mask 104 determined from the full size image 11 (matrix 904) by the binarization steps 101 and the determination of the foreground elements 103. The two characters are referred to as 908 and 909 in 907. A matrix 910 is the image of the foreground elements 202. The two characters are called 911 and 912 in 910. A matrix 913 is the operating mask 253, determined from the initial mask 104 by the reduction of the resolution 105. two characters are called 914 and 915 in 913,

Deux matrices, 917 et 919, illustrent les images de composants connectés 402 dans l'image des éléments d'avant-plan. La matrice 917 comprend un caractère 918. La matrice 919 comprend un caractère 920. Deux matrices, 922 et 924, illustrent les images de composants connectés 404 dans le masque. La matrice 922 comprend un caractère 923. La matrice 924 comprend un caractère 925. Deux matrices, 927 et 929, illustrent les images de composants connectés 412 dans l'image de transition. La matrice 927 comprend un caractère 928. La matrice 929 comprend un caractère 930. Un des pixels de la matrice 927 a reçu un numéro de référence 931. Une matrice 932 est l'image de transition 203 résultant de la détermination de l'image de transition 300B selon un mode de réalisation de la présente invention. Les deux caractères 933 et 934 sont présents dans la matrice 932. Deux matrices, 936 et 937, montrent les images de composants connectés 402 dans l’image des éléments d'avant-plan qui sont indiqués dans la fenêtre de mise à l'échelle 938 et la fenêtre de moyennage 939 correspondant au pixel 931 de l’image de composant connecté 412 correspondante de l'image de transition (matrice 927). L'image pleine taille (matrice 904) n'est pas exactement égale à l'image originale (matrice 901), principalement parce que la couleur au bord entre les parties claires et la partie foncée est un mélange entre les parties foncée et claires. Le masque initial (matrice 907) est déterminé en considérant que tous les pixels avec une valeur inférieure à 100 sont noirs et que les autres sont blancs. L'image des éléments d'avant-plan 202 (matrice 910) est déterminée à partir de l'image pleine taille (matrice 904) et du masque initial (matrice 907) en établissant comme étant vides les pixels blancs du masque initial et en assignant aux pixels noirs du masque initial leur valeur dans l'image pleine taille (matrice 904). Le masque (matrice 913) est déterminé à partir du masque initial (matrice 907) par une mise à l’échelle par un facteur de réduction de résolution n égal à 2.Two matrices, 917 and 919, illustrate the connected component images 402 in the foreground image. The matrix 917 comprises a character 918. The matrix 919 comprises a character 920. Two matrices, 922 and 924, illustrate the images of connected components 404 in the mask. The matrix 922 comprises a character 923. The matrix 924 comprises a character 925. Two matrices, 927 and 929, illustrate the connected component images 412 in the transition image. The matrix 927 comprises a character 928. The matrix 929 comprises a character 930. One of the pixels of the matrix 927 has received a reference number 931. A matrix 932 is the transition image 203 resulting from the determination of the image of transition 300B according to an embodiment of the present invention. The two characters 933 and 934 are present in the matrix 932. Two matrices, 936 and 937, show the connected component images 402 in the foreground image that are indicated in the scaling window. 938 and the averaging window 939 corresponding to the pixel 931 of the corresponding connected component image 412 of the transition image (matrix 927). The full size image (matrix 904) is not exactly equal to the original image (matrix 901), mainly because the color at the edge between the light parts and the dark part is a mixture between the dark and light parts. The initial mask (matrix 907) is determined by considering that all the pixels with a value lower than 100 are black and the others are white. The image of the foreground elements 202 (matrix 910) is determined from the full size image (matrix 904) and the initial mask (matrix 907) by setting the white pixels of the initial mask as empty and assigning to the black pixels of the initial mask their value in the full size image (matrix 904). The mask (matrix 913) is determined from the initial mask (matrix 907) by scaling by a reduction factor of resolution n equal to 2.

Les images de composants connectés 402 dans l'image des éléments d'avant-plan (matrices 917 et 919) sont des matrices de pixels déterminées de telle manière que tout composant connecté corresponde à une image et que chaque image corresponde à chaque composant connecté. 'The connected component images 402 in the foreground element image (matrices 917 and 919) are pixel arrays determined such that any connected component corresponds to an image and each image corresponds to each connected component. '

Le caractère 918 est le composant connecté de l’image 917 et correspond au trait 905 dans l’image pleine taille (matrice 904) et le caractère 920 est le composant connecté de l'image 919 et correspond au trait 906 de l'image pleine taille (matrice 904). Les images de composants connectés 404 du masque (matrices 922 et 924) correspondent aux images de composants connectés 402 dans l'image des éléments d'avant-plan (matrices 917 et 919). 917 et 922 correspondent au même ensemble 960 de pixels dans l'image pleine taille 11 (matrice 904) et 918 et 923 ont par conséquent une base dans le même trait 905 dans l'image pleine taille 11. 919 et 924 correspondent au même ensemble 970 de pixels dans l’image pleine taille 11 (matrice 904) et 920 et 925 ont par conséquent une base dans le même trait 906 dans l'image pleine taille 11,The character 918 is the connected component of the image 917 and corresponds to the line 905 in the full size image (matrix 904) and the character 920 is the connected component of the image 919 and corresponds to the line 906 of the full image size (matrix 904). The connected component images 404 of the mask (matrices 922 and 924) correspond to the connected component images 402 in the foreground element image (matrices 917 and 919). 917 and 922 correspond to the same set 960 pixels in the full size image 11 (matrix 904) and 918 and 923 therefore have a base in the same line 905 in the full size image 11. 919 and 924 correspond to the same set 970 pixels in the full-size image 11 (matrix 904) and 920 and 925 therefore have a base in the same line 906 in the full-size image 11,

Les images de composants connectés 412 dans l'image de transition (matrices 927 et 929) ont la même échelle que les images de composants connectés dans le masque (matrices 922 et 924). Les pixels blancs des images de composants connectés dans le masque (matrices 922 et 924) sont des pixels vides dans les images de composants connectés 412 dans l'image de transition (matrices 927 et 929). Chaque pixel noir d’une image de composant connecté du masque (matrices 922 et 924) est calculé à partir d'une moyenne faite sur les pixels non-vides d'une fenêtre de 16 (quatre sur quatre) pixels (m=4) de l'image de composant connecté correspondante dans l'image des éléments d'avant-plan (matrices 917 et 919) centrée sur lesdîts pixels noirs, la partie de la fenêtre en dehors de la matrice n'étant pas prise en compte dans l’établissement de la moyenne. Par exemple, la position du pixel 931 correspond à la fenêtre 938 dans les images de composants connectés dans l'image des éléments d'avant-plan (matrice 936) et la valeur (ou couleur) du pixel 931 est calculée comme la moyenne des valeurs des pixels non vides de la fenêtre de moyennage 939. Les pixels de l'autre image de composant connecté (matrice 937) ne sont pas pris en compte dans le calcul de la valeur du pixel 931. L'étape de détermination 300 d'une image de transition selon un autre mode de réalisation de la présente invention est illustrée sur la figure 10. Pour faire la différence entre plusieurs modes de réalisation de la présente invention, l'étape de détermination 300 d'une image de transition de la figure 10 est désignée par 3Q0C, L'étape de détermination 300C d'une image de transition commence à partir de l'image des éléments d'avant-plan 202. Des images 402 de composants connectés sont calculées à partir de l'image des éléments d'avant-plan 202 à l'étape 401. Des images correspondantes 404 de composants connectés dans le masque opérant sont calculées à partir du masque opérant 253 à l'étape 403. L'étape de détermination 300C d'une image de transition comprend une boucle 550 sur les images de composants connectés 402. La boucle 550 comprend une étape de vérification 501 qui contrôle si les couleurs dans l'image de composant connecté 402 prise en considération sont nettement différentes. Si oui, la même série 400 d'étapes que dans l'étape de détermination 300B d'une image de transition selon un mode de réalisation de l'invention précédemment décrit est .effectuée sur les pixels de l'image de composant connecté 404 du masque qui correspond à l'image de composant connecté 402 considérée pour déterminer la couleur des pixels d'une image du composant connecté 412 considéré dans l'image de transition. Si non, une série 500 d'étapes est effectuée.The connected component images 412 in the transition image (matrices 927 and 929) have the same scale as the component images connected in the mask (matrices 922 and 924). The white pixels of the component images connected in the mask (matrices 922 and 924) are empty pixels in the connected component images 412 in the transition image (matrices 927 and 929). Each black pixel of a connected component image of the mask (matrices 922 and 924) is computed from an average of the non-empty pixels of a window of 16 (four out of four) pixels (m = 4) of the corresponding connected component image in the image of the foreground elements (matrices 917 and 919) centered on the black pixels, the part of the window outside the matrix not being taken into account in the establishment of the average. For example, the position of the pixel 931 corresponds to the window 938 in the component images connected in the foreground element image (matrix 936) and the value (or color) of the pixel 931 is calculated as the average of the pixels. values of the non-empty pixels of the averaging window 939. The pixels of the other connected component image (matrix 937) are not taken into account in the calculation of the value of the pixel 931. The determination step 300 of a transition image according to another embodiment of the present invention is illustrated in FIG. 10. In order to distinguish between several embodiments of the present invention, the step 300 of determining a transition image of FIG. 10 is designated 30Q, The step 300C of determining a transition image starts from the image of the foreground elements 202. Images 402 of connected components are calculated from the image of the elements. foreground 202 at step 401. Corresponding images 404 of components connected in the operating mask are calculated from the operating mask 253 at step 403. The determining step 300C of a transition image comprises a loop 550 on the Connected component images 402. Loop 550 includes a verification step 501 that checks whether the colors in the connected component image 402 taken into consideration are significantly different. If so, the same series 400 of steps as in the step 300B determination of a transition image according to an embodiment of the invention described above is performed on the pixels of the connected component image 404 of the mask which corresponds to the connected component image 402 considered for determining the color of the pixels of an image of the connected component 412 considered in the transition image. If not, a series of 500 steps is performed.

La série 500 d’étapes comprend un moyennage de couleur 502 qui utilise comme entrée l'image de composant connecté 402 considérée dans l'image des éléments d'avant-plan et fournit une couleur moyenne 503.The 500 series of steps includes a color averaging 502 which uses as input the connected component image 402 considered in the foreground image and provides an average color 503.

La série 500 d'étapes commence avec la création 590 d'une image 591 de pixels vides pour le composant connecté considéré. L'image 591 a la même taille que l'image 404 de composant connecté considérée dans le masque opérant 253. Un pixel dans l'image 591 de pixels vides correspond à un seul pixel dans l'image 404 de composant connecté considérée dans le masque opérant 253.The 500 series of steps begins with the creation 590 of an image 591 of empty pixels for the connected component under consideration. The image 591 is the same size as the connected component image 404 considered in the operating mask 253. A pixel in the empty pixel image 591 corresponds to a single pixel in the connected component image 404 considered in the mask operating 253.

La série 500 d'étapes comprend une boucle 560 sur les pixels noirs de l'image de composant connecté 404 considérée dans le masque qui correspond à l’image de composant connecté 402 considérée dans l'image des éléments d'avant-plan. La boucle 560 remplace, dans l'image 591 de pixels vides pour le composant connecté considéré, tout pixel qui est noir dans l'image 404 du composant connecté dans le masque opérant 253 par un pixel de couleur 506.The 500 series of steps comprises a loop 560 on the black pixels of the connected component image 404 considered in the mask that corresponds to the connected component image 402 considered in the foreground image. The loop 560 replaces, in the image 591 of empty pixels for the connected component considered, any pixel that is black in the image 404 of the component connected in the operating mask 253 by a color pixel 506.

Chaque pixel noir 504 de l'image de composant connecté 404 dans le masque est pris en considération à son tour. Une étape d'établissement de la valeur du pixel égale à la couleur moyenne 505 utilise comme entrées le pixel noir 504 de l'image de composant connecté 404 dans le masque qui correspond à l'image de composant connecté 402 considérée dans l’image des éléments d'avant-plan et la couleur moyenne 503, et génère un pixel de couleur 506 à l'emplacement du pixel 504 dans l'image de composant connecté 507 dans l'image de transition. Le pixel de couleur 506 remplace un pixel vide de l'image 591 de pixels vides. Puis, un autre pixel noir 504 de l'image de composant connecté 404 dans le masque qui correspond à l'image de composant connecté 402 considérée dans l'image des éléments d'avant-plan est pris en considération et ainsi de suite pour tous les pixels noirs de l'image de composant connecté 404 dans le masque qui correspond à l'image de composant connecté 402 considérée dans l'image des éléments d'avant-plan. À la fin de la boucle 560, un composant connecté 507 dans l’image de transition 203 est formé par les pixels de couleur 506 qui sont situés aux emplacements des pixels noirs 504 du composant connecté 404 correspondant dans le masque opérant 253 et par des pixels vides qui sont situés aux emplacements des pixels blancs du composant connecté 404 correspondant dans le masque opérant 253 et qui proviennent de l'image vide 591. Par conséquent, le composant connecté 412 dans l'image de transition 203 a la même échelle que le composant connecté 404 correspondant dans le masque opérant 253.Each black pixel 504 of the connected component image 404 in the mask is considered in turn. A step of setting the value of the pixel equal to the average color 505 uses as inputs the black pixel 504 of the connected component image 404 in the mask that corresponds to the connected component image 402 considered in the image of the foreground elements and the middle color 503, and generates a color pixel 506 at the pixel location 504 in the connected component image 507 in the transition image. The color pixel 506 replaces an empty pixel of the image 591 of empty pixels. Then, another black pixel 504 of the connected component image 404 in the mask that corresponds to the connected component image 402 considered in the foreground image is taken into consideration and so on for all the black pixels of the connected component image 404 in the mask corresponding to the connected component image 402 considered in the foreground image. At the end of the loop 560, a connected component 507 in the transition image 203 is formed by the color pixels 506 which are located at the locations of the black pixels 504 of the corresponding connected component 404 in the operating mask 253 and by pixels blanks which are located at the white pixel locations of the corresponding connected component 404 in the operating mask 253 and come from the empty image 591. Therefore, the connected component 412 in the transition image 203 has the same scale as the component connected 404 corresponding in the operating mask 253.

Après soit la série 400 d'étapes soit la série 500 d'étapes, une autre image de composant connecté 402 dans l'image des éléments d'avant-plan est prise en considération dans la boucle 550 et l'étape de vérification 501 est effectuée. A la fin de l'étape de détermination 300C d'une image de transition, toutes les images de composants connectés 412 (générées dans la série 400 d'étapes) et 507 dans l'image de transition forment l'image de transition 203.After either the 400 series of steps or the 500 series of steps, another connected component image 402 in the image of the foreground elements is considered in the loop 550 and the verification step 501 is performed. At the end of the determination step 300C of a transition image, all connected component images 412 (generated in the 400 series of steps) and 507 in the transition image form the transition image 203.

Pour chaque image de composant connecté 402 dans l'image des éléments d’avant-plan, l'étape de vérification 501 contrôle si ladite image de composant connecté 402 dans l'image des éléments d'avant-plan comprend des pixels de couleur nettement différents. Un procédé pour effectuer une telle vérification consiste à déterminer l'écart standard de la couleur des pixels non vides de l’image de composant connecté 402 et de considérer que les couleurs sont nettement différentes si ledit écart standard est plus grand qu'un seuil. Si les couleurs d'une image de composant connecté 402 ne sont pas nettement différentes, une moyenne globale des couleurs sur la totalité du composant connecté (ne prenant pas en considération des pixels vides) fournit une estimation satisfaisante de l'ensemble des couleurs de l'image de composant connecté tout en conduisant à la possibilité d'un taux de compression plus élevé que les moyennes locales parce qu'une région avec les mêmes valeurs de couleur a besoin de moins de bits pour la compression que quand les valeurs sont différentes. Cela correspond à la série 500 d'étapes qui a pour résultat des composants connectés 507 unicolores dans l'image de transition. Si les couleurs d'une image de composant connecté 402 sont nettement différentes, l'établissement d'une moyenne sur la totalité de l'image de composant connecté ne fournirait pas une estimation satisfaisante des couleurs du composant connecté et ne fournirait pas en fin de compte une bonne couche d'avant-plan 12. Il est par conséquent préférable d'effectuer une moyenne locale des couleurs. Cela correspond à la série 400 d'étapes.For each connected component image 402 in the foreground element image, the verification step 501 checks whether said connected component image 402 in the foreground image comprises color pixels clearly. different. One method for performing such verification is to determine the standard deviation of the color of the non-empty pixels of the connected component image 402 and to consider that the colors are significantly different if said standard deviation is larger than a threshold. If the colors of a connected component image 402 are not significantly different, an overall color average over the entire connected component (not taking into account empty pixels) provides a satisfactory estimate of all the colors of the component. connected component image while leading to the possibility of a higher compression ratio than local averages because a region with the same color values requires fewer bits for compression than when the values are different. This corresponds to the 500 series of steps that results in 507 connected single-color components in the transition image. If the colors of a connected component image 402 are significantly different, averaging over the entire connected component image would not provide a satisfactory estimate of the colors of the connected component and would not provide at the end of has a good foreground layer 12. It is therefore preferable to perform a local average of the colors. This corresponds to the 400 series of steps.

Le moyennage de couleur 502 pour une image de composant connecté 402 donnée dans l'image des éléments d'avant-plan est un moyennage de couleur portant sur les couleurs de tous les pixels non vides de l'image de composant connecté 402 dans l'image des éléments d'avant-plan qui correspond à l'image de composant connecté 404 dans le masque. Lesdits pixels correspondent aux pixels noirs dans le masque initial 104 à l'emplacement de ladite image de composant connecté. Le moyennage 502 de couleur et l'étape 505 d'établissement des couleurs des pixels comme étant égales à la moyenne 503 sont équivalentes à considérer que la fenêtre de moyennage de tous les pixels 504 est l'image de composant connecté 402 complète dans l'image des éléments d'avant-plan. Le moyennage 502 de couleur portant sur l'image de composant connecté 402 complète fournit ta couleur moyenne 503 qui est assignée à l'étape 505 à tout pixel 504 de l'image de composant connecté qui est noir dans le masque opérant 253. Tout pixel 409 de l'image de composant connecté qui est blanc dans le masque opérant 253 est établi comme étant vide à l'étape 410. La collection de pixels de couleur 506 et de pixels vides 411 forment l’image de composant connecté 507 dans l'image de transition si la série 500 d'étapes est utilisée. L'image de composants connectés 412 fournie par la série 400 d'étapes, qui peut comprendre plusieurs couleurs, et l'image de composants connectés 507 avec des composants connectés unicolores fournie par la série 500 d'étapes forment l'image de transition 203 fournie par la détermination 300C de l'image de transition.The color averaging 502 for a connected component image 402 given in the foreground image is a color averaging of the colors of all the non-empty pixels of the connected component image 402 in the image. image of the foreground elements that corresponds to the connected component image 404 in the mask. Said pixels correspond to the black pixels in the initial mask 104 at the location of said connected component image. The color averaging 502 and the color setting step 505 of the pixels being equal to the mean 503 are equivalent to assuming that the averaging window of all the pixels 504 is the connected component image 402 complete in the image of the foreground elements. The color averaging 502 on the connected component image 402 complete provides the average color 503 that is assigned in step 505 to any pixel 504 of the connected component image that is black in the operating mask 253. Any pixel 409 of the connected component image that is white in the operating mask 253 is set as empty in step 410. The collection of color pixels 506 and empty pixels 411 form the connected component image 507 in the transition image if the 500 series of steps is used. The connected component image 412 provided by the 400 series of steps, which may include multiple colors, and the image of connected components 507 with connected single-color components provided by the 500 series of steps form the transition image 203 provided by the 300C determination of the transition image.

Le présent document comprend la description de deux algorithmes ou procédés 200A et 200B de construction de la couche d'avant-plan, chacun d'eux comprenant une étape de détermination 300 d'une image de transition. Le présent document comprend également la description de trois algorithmes ou procédé 300A, 300B et 300C de détermination de l'image de transition. Des modes de réalisation de la présente invention comprennent la combinaison de l'un quelconque des procédés 200A et 200B avec l'un quelconque des procédés 300A, 300B et 300C,The present document comprises the description of two algorithms or methods 200A and 200B for constructing the foreground layer, each of them including a step of determining 300 of a transition image. This document also includes the description of three transition image determination algorithms or method 300A, 300B and 300C. Embodiments of the present invention include the combination of any of methods 200A and 200B with any of methods 300A, 300B and 300C,

Claims (15)

Revendicationsclaims 1. Procédé permettant de créer, à partir d'une image numérique initiale (11), une image d'avant-plan (12) à utiliser dans la compression d'images, comprenant les étapes de a/ création d’une image de masque binaire (253) à partir de l’image numérique initiale (11), chaque pixel de l'image de masque binaire (253) étant créé à partir d'une première fenêtre de pixels correspondante dans l’image numérique initiale (11), et ladite image de masque binaire (253) comprenant un premier ensemble de pixels qui sont d'une première valeur et un deuxième ensemble de pixels qui sont d'une deuxième valeur; bf génération d'une image de transition (203) qui a une quantité de pixels égale à la quantité de pixels de l'image de masque binaire (253) en déterminant pour chaque pixel de l'image de transition (203) correspondant à un pixel du premier ensemble de pixels dans l'image de masque binaire (253) une deuxième fenêtre de pixels correspondante dans l'image numérique initiale (11), la deuxième fenêtre de pixels comprenant plus de pixels que la première fenêtre de pixels, déterminant une couleur pour chaque pixel de l'image de transition (203) correspondant à un pixel du premier ensemble de pixels dans l'image de masque binaire (253) par un calcul basé sur les couleurs des pixels dans la deuxième fenêtre correspondante, et établissant chaque pixel de l'image de transition (203) correspondant à un pixel du deuxième ensemble de pixels dans l’image de masque binaire (253) comme étant vide; et cl création de l'image d'avant-plan (12) à partir de l'image de transition (203) en gardant la couleur des pixels non vides et détermination d'une couleur pour les pixels vides en utilisant les pixels non vides voisins.A method for creating, from an initial digital image (11), a foreground image (12) to be used in image compression, comprising the steps of a / creating an image of binary mask (253) from the initial digital image (11), each pixel of the binary mask image (253) being created from a corresponding first pixel window in the initial digital image (11) , and said bitmap image (253) comprising a first set of pixels which are of a first value and a second set of pixels which are of a second value; bf generating a transition image (203) that has an amount of pixels equal to the amount of pixels of the bitmask image (253) by determining for each pixel of the transition image (203) corresponding to a pixel of the first set of pixels in the bit mask image (253) a corresponding second pixel window in the initial digital image (11), the second pixel window comprising more pixels than the first pixel window, determining a color for each pixel of the transition image (203) corresponding to a pixel of the first set of pixels in the bitmask image (253) by a calculation based on the colors of the pixels in the corresponding second window, and establishing each a pixel of the transition image (203) corresponding to a pixel of the second set of pixels in the binary mask image (253) being empty; and cl creating the foreground image (12) from the transition image (203) by keeping the non-empty pixels color and determining a color for the empty pixels using the non-empty pixels neighbors. 2. Procédé selon la revendication 1, dans lequel la première fenêtre de pixels comprend un pixel.The method of claim 1, wherein the first pixel window comprises a pixel. 3. Procédé selon la revendication 1, dans lequel la première fenêtre de pixels comprend une fenêtre η x n de pixels, n étant au moins 2.3. Method according to claim 1, wherein the first pixel window comprises a window η x n of pixels, n being at least 2. 4. Procédé selon l'une quelconque des revendications précédentes, dans lequel le calcul basé sur les couleurs des pixels dans la deuxième fenêtre correspondante est un moyennage.The method of any of the preceding claims, wherein the color-based calculation of the pixels in the corresponding second window is averaging. 5. Procédé selon l'une quelconque des revendications précédentes, dans lequel l'emplacement du centre d'un pixel dans l'image de transition correspond à l'emplacement du centre de la deuxième fenêtre de pixels correspondante dans l'image numérique initiale,A method according to any one of the preceding claims, wherein the location of the center of a pixel in the transition image corresponds to the location of the center of the corresponding second pixel window in the initial digital image, 6. Procédé selon l'une quelconque des revendications précédentes, comprenant en outre une étape (205) de réduction de la résolution de l'image de transition (203) par l'étape b) et l'étape c).The method of any of the preceding claims, further comprising a step (205) of reducing the resolution of the transition image (203) by step b) and step c). 7. Procédé selon l'une quelconque des revendications précédentes, dans lequel à l'étape c) la couleur des pixels vides est déterminée à partir des pixels non vides en utilisant un algorithme séquentiel à deux étapes.A method according to any one of the preceding claims, wherein in step c) the color of the empty pixels is determined from the non-empty pixels using a two-step sequential algorithm. 8. Procédé selon l'une quelconque des revendications précédentes, comprenant en outre l’étape de création à partir de l'image numérique initiale (11) de groupes (402) de pixels, dans lequel la couleur de chaque pixel dans l'image de transition (203) est déterminée indépendamment pour chaque groupe (402) de pixels.The method of any of the preceding claims, further comprising the step of creating from the initial digital image (11) groups (402) of pixels, wherein the color of each pixel in the image. transition (203) is determined independently for each group (402) of pixels. 9. Procédé selon la revendication 8, comprenant en outre l'étape de découpage de l'image de masque binaire (253) en groupes (404) de pixels correspondant aux groupes (402) de pixels dans l'image numérique initiale (11).The method of claim 8, further comprising the step of clipping the bitmap image (253) into groups (404) of pixels corresponding to the groups (402) of pixels in the initial digital image (11). . 10. Procédé selon la revendication 8 ou 9, dans lequel chaque groupe (402) de pixels dans l'image initiale (11) contient au moins un de: un seul composant connecté, un seul élément textuel, un seul élément lineart ou un seul caractère.The method of claim 8 or 9, wherein each group (402) of pixels in the initial image (11) contains at least one of: a single connected component, a single textual element, a single lineart element or a single element character. 11. Procédé selon l'une quelconque des revendications 8 à 10, comprenant en outre les étapes consistant à détecter si, dans un groupe (402) de pixels dans l'image numérique initiale (11), les pixels correspondant aux pixels du premier ensemble de pixels de l'image de masque binaire ont des couleurs qui sont nettement différentes, et, à déterminer, si les pixels dans l'image numérique initiale (11) n’ont pas des couleurs nettement différentes, la couleur moyenne (503) des pixels dans l'image numérique initiale (11) et à appliquer la couleur moyenne (503) sur chaque pixel dans l'image de transition (203) correspondant au groupe de pixels dans l'image numérique initiale (11) et correspondant aux pixels dans le premier ensemble de pixels de l'image de masque binaire (253).The method according to any one of claims 8 to 10, further comprising the steps of detecting whether, in a group (402) of pixels in the initial digital image (11), the pixels corresponding to the pixels of the first set of pixels of the binary mask image have colors that are distinctly different, and, to be determined, if the pixels in the initial digital image (11) do not have significantly different colors, the average color (503) of pixels in the initial digital image (11) and to apply the average color (503) on each pixel in the transition image (203) corresponding to the group of pixels in the initial digital image (11) and corresponding to the pixels in the first set of pixels of the bitmap image (253). 12. Procédé de compression (10) pour compresser une image numérique initiale (11) d'un document numérisé par balayage, ledit procédé de compression (10) comprend l'étape de segmentation de l'image numérique initiale (11) en multiples couches d'image comprenant une image d'avant-plan (12) contenant des informations de couleur pour les éléments d'avant-plan dudit document, une image d'arrière-plan (14) contenant des informations de couleur pour des éléments d’arrière-plan dudit document et une image binaire (13) pour sélectionner entre pixels dans ladite image d’avant-plan (12) et ladite image d’arrière-plan (14), dans lequel ladite image d'avant-plan (12) est créée selon un quelconque des procédés des revendications 1 à 11.A compression method (10) for compressing an initial digital image (11) of a scanned document, said compression method (10) comprises the step of segmenting the initial digital image (11) into multiple layers image comprising a foreground image (12) containing color information for the foreground elements of said document, a background image (14) containing color information for elements of the foreground background of said document and a binary image (13) for selecting between pixels in said foreground image (12) and said background image (14), wherein said foreground image (12) ) is created according to any of the methods of claims 1 to 11. 13. Support non temporaire lisible par ordinateur stockant un programme amenant un ordinateur à exécuter un procédé selon l'un quelconque des procédés des revendications 1 à 12.A computer-readable non-temporary medium storing a program causing a computer to execute a method according to any one of the methods of claims 1 to 12. 14. Système comprenant un processeur et un support non temporaire lisible par ordinateur stockant un programme amenant le processeur à exécuter un quelconque des procédés des revendications 1 à 12.A system comprising a processor and a non-temporary computer readable medium storing a program causing the processor to execute any of the methods of claims 1 to 12. 15. Système selon la revendication 14 comprenant en outre un dispositif d'imagerie pour capturer l'image numérique initiale.The system of claim 14 further comprising an imaging device for capturing the initial digital image.
BE2014/5148A 2014-12-23 2014-12-23 IMAGE COMPRESSION METHOD BE1022166B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
BE2014/5148A BE1022166B1 (en) 2014-12-23 2014-12-23 IMAGE COMPRESSION METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
BE2014/5148A BE1022166B1 (en) 2014-12-23 2014-12-23 IMAGE COMPRESSION METHOD

Publications (1)

Publication Number Publication Date
BE1022166B1 true BE1022166B1 (en) 2016-02-23

Family

ID=53016422

Family Applications (1)

Application Number Title Priority Date Filing Date
BE2014/5148A BE1022166B1 (en) 2014-12-23 2014-12-23 IMAGE COMPRESSION METHOD

Country Status (1)

Country Link
BE (1) BE1022166B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5778092A (en) * 1996-12-20 1998-07-07 Xerox Corporation Method and apparatus for compressing color or gray scale documents
US6731800B1 (en) * 1999-12-04 2004-05-04 Algo Vision Lura Tech Gmbh Method for compressing scanned, colored and gray-scaled documents
US20120093412A1 (en) * 2007-05-04 2012-04-19 I.R.I.S. Compression of digital images of scanned documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5778092A (en) * 1996-12-20 1998-07-07 Xerox Corporation Method and apparatus for compressing color or gray scale documents
US6731800B1 (en) * 1999-12-04 2004-05-04 Algo Vision Lura Tech Gmbh Method for compressing scanned, colored and gray-scaled documents
US20120093412A1 (en) * 2007-05-04 2012-04-19 I.R.I.S. Compression of digital images of scanned documents

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DE QUEIROZ R L ET AL: "Mixed raster content (MRC) model for compound image compression", PROCEEDINGS OF SPIE, S P I E - INTERNATIONAL SOCIETY FOR OPTICAL ENGINEERING, US, vol. 3653, 1 December 1998 (1998-12-01), pages 1106 - 1117, XP002370332, ISSN: 0277-786X, DOI: 10.1117/12.334618 *
RICARDO L DE QUEIROZ ET AL: "Optimizing Block-Thresholding Segmentation for Multilayer Compression of Compound Images", IEEE TRANSACTIONS ON IMAGE PROCESSING, IEEE SERVICE CENTER, PISCATAWAY, NJ, US, vol. 9, no. 9, 1 September 2000 (2000-09-01), XP011025650, ISSN: 1057-7149 *

Similar Documents

Publication Publication Date Title
US11302109B2 (en) Range and/or polarity-based thresholding for improved data extraction
US7953268B2 (en) Methods for mobile image capture and processing of documents
US8995012B2 (en) System for mobile image capture and processing of financial documents
JP6139396B2 (en) Method and program for compressing binary image representing document
US9769354B2 (en) Systems and methods of processing scanned data
BE1017547A6 (en) COMPRESSION OF DIGITAL IMAGES OF SCANNED DOCUMENTS.
US9930218B2 (en) Content aware improvement of captured document images
BE1025504A1 (en) Pattern recognition system
US8705134B2 (en) Method of processing an image to clarify text in the image
BE1022166B1 (en) IMAGE COMPRESSION METHOD
US20080310715A1 (en) Applying a segmentation engine to different mappings of a digital image
BE1023388B1 (en) Method and system for correcting an image from a hand scanner
US9648208B2 (en) Method and apparatus and using an enlargement operation to reduce visually detected defects in an image
JP2022095565A (en) Method and system for removing scene text from image
US8908986B1 (en) Systems and methods for selecting ink colors
BE1021013B1 (en) METHOD AND SYSTEM FOR IMPROVING THE QUALITY OF COLOR IMAGES
BE1023380B1 (en) Method of processing information from a hand scanner
EP1768049B1 (en) Process and system for reproduction of documents by segmentation and selective enhancement of images and texts
CN108596874B (en) Image definition judging method and device, computer equipment and product
BE1020588A5 (en) METHOD OF RECOGNIZING FORMS, COMPUTER PROGRAM PRODUCT, AND MOBILE TERMINAL.
BE1017576A6 (en) Digital color image enlarging method for optical character recognition of e.g. business card, involves enlarging selected image layer using enlarging operation with preset quality, where quality and selection are selected to process image
EP1553754A1 (en) Method and device for establishing frame error diffusion and ink limiting by threshold value matrix
EP4074041A1 (en) Method for compressing a sequence of images displaying synthetic graphical elements of non-photographic origin
CN117253242A (en) Note processing method and device
Cao EMOJIFY OBJECTS http://cyanting416. wix. com/cs534project Computational Photography Computer Science 354 Vanessa Cao, Aida Farrokh Ebrahimi, William Hu, and Yeji Im