EP3314573A1 - Method of image segmentation - Google Patents

Method of image segmentation

Info

Publication number
EP3314573A1
EP3314573A1 EP16742345.8A EP16742345A EP3314573A1 EP 3314573 A1 EP3314573 A1 EP 3314573A1 EP 16742345 A EP16742345 A EP 16742345A EP 3314573 A1 EP3314573 A1 EP 3314573A1
Authority
EP
European Patent Office
Prior art keywords
image
patterns
pixels
line
lines
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
EP16742345.8A
Other languages
German (de)
French (fr)
Inventor
Vincent ARVIS
Michael CHAUSSARD
Michel Bilodeau
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Compagnie Generale des Etablissements Michelin SCA
Original Assignee
Compagnie Generale des Etablissements Michelin SCA
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 Compagnie Generale des Etablissements Michelin SCA filed Critical Compagnie Generale des Etablissements Michelin SCA
Publication of EP3314573A1 publication Critical patent/EP3314573A1/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/155Segmentation; Edge detection involving morphological operators
    • 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/30248Vehicle exterior or interior

Definitions

  • the invention relates to the field of visual control of manufactured products whose outer surface has elements in relief.
  • This invention can be applied in particular, but not exclusively to products having periodic patterns, for example tires.
  • different means of illumination and digital imaging are used to acquire images, for subsequent digital processing to detect imperfections previously detected visually by operators.
  • These imaging means make it possible to take different images, whether in two dimensions or in three dimensions, of the inner and / or outer surface of the tire to be inspected.
  • the present invention is therefore to provide a segmentation solution to overcome the aforementioned drawbacks.
  • the present invention is therefore to provide a method for segmenting an image of the outer surface of a manufactured product so as to distinguish the areas of the image having patterns in relief, other areas.
  • the present invention relates to a method of segmenting an image, representative of a manufactured product whose outer surface has patterns in relief, in a first zone having patterns and a second zone not comprising the method comprising the following steps:
  • the method comprises an initial step in which it performs a flattening of the image.
  • this step of flattening the image comprises a step of detecting a carrier signal on which the patterns are based. To do this, we realize a simple moving average along the lines: at each pixel of the cleaned image we calculates the average of the neighboring pixels (located within a certain distance) and located on the same line; we then subtract this value from the pixel.
  • the operation consists in calculating, in a horizontal window of size 2r +1 centered on the pixel (x; y), (considering the specificity of recollement of the right and left edges, expressed by the minimum), the average pixels, and to subtract the latter from the value of the pixel (and this repeated for all the pixels of the image).
  • the segmentation method of the present invention could also be used on images representing all types of objects, and not necessarily tires.
  • the flattening step would not necessarily prove useful, since it is made necessary in the case of a tire due to the rounded shape of the object.
  • the next step of the method consists in performing a thresholding operation, in order to transform the flat image, which is in gray levels, into a binary threshold image. This makes it possible to create an output mask comprising a first set of pixels containing the patterns, and a second set of pixels comprising the other elements.
  • the first two consist in calculating on the one hand the average of the gray levels of all the pixels of the row (respectively of the column) on which is a pixel, on the other hand the standard deviation, and of add up these two values.
  • the third criterion consists in verifying that the pixel belongs to a valid line, that is to say a line that is not too close to the top or the bottom of the image; or a line which does not contain too many outliers, or a line that is not too close to a line containing a large number of outliers.
  • This detection step is performed as follows:
  • the variance of the gray levels of the pixels not belonging to the binary threshold image is calculated, which amounts to excluding the possible patterns
  • the calculation is carried out a second time by horizontally expanding the threshold image, which amounts to excluding more pixels from the calculation.
  • the ratio between the two variance values calculated in this way is then carried out. If this ratio becomes greater than a predetermined threshold, it will be considered that the line has a streak.
  • this pattern detection step is only useful for certain types of manufactured objects. Indeed, in the case where the patterns are present only on a portion of the product, it is necessary to detect, on an image representing the product, the lines that actually contain patterns.
  • the next step in a method according to the invention is to evaluate the number of patterns on each line.
  • the input image will be chosen as the flat image or the thresholded image.
  • a maximum of the decomposed image does not correspond to a desired period of the patterns, but to a harmonic, that is to say a value due to a group of patterns. which is repeated regularly in the image. Therefore it is useful in a particular embodiment to look at the fractions of the determined maximum to detect possible candidates for the pattern period.
  • the best components that can be patterns are detected in the thresholded image and they are retained in a result set. To do this, we go through the related components of the thresholded image by decreasing size, and we retain them if two conditions are met:
  • the related component if it was added to the result set, must not result in a row of the thresholded image having a number of elements in the result set. greater than the number of patterns detected in the previous step, and
  • a method according to the invention also comprises the following steps:
  • a step of reassessing the number of patterns in the image and a step of filtering the determined set of pixels, as a function of the number of reevaluated patterns, to obtain a second set of pixels of the image.
  • a method according to the invention further comprises a step during which one completes empty spaces of the image to obtain a third set of pixels of the image.
  • a method according to the invention comprises a step in which is eliminated, the third set of pixels, supernumerary components to obtain a fourth set of pixels of the image representing patterns.
  • the objective of this step is to remove these peaks value.
  • a morphological opening is used, which consists of removing all the narrow mountains, whatever their altitude, followed by a morphological closure which consists of removing all the narrow canyons, whatever their depth.
  • the opening operation consists firstly in replacing the value of each pixel of the image by the minimum value of the pixels located in a certain neighborhood, then in starting the operation again, this time taking the value Max.
  • the closing operation consists in performing the same two operations, but in the opposite direction (first the maximum value, then the minimum value).
  • the chosen neighborhood consists of the set of pixels located on the same line, that the pixel studied (it is called opening and closing by a linear structuring element) and at a distance less than a certain threshold.
  • a threshold value is chosen to eliminate, on each line, mountains and canyons of small size.
  • this choice of radius must represent a compromise between a value too low that would not allow a proper cleaning, and too high a value that could lead to the removal of some elements of interest reasons.
  • the cleaned image will be:
  • the flattening step is performed using an AvgSub operation.
  • the calculation of the thresholded image is performed as follows:
  • a function is built that allows to assign a label to each line y of the input image. If we consider an input mask PNM, representing the outliers of the input image (the outlier pixels are at A, and the others are at 0, and we proceed in two steps: first, defining a first temporary unidimensional image, of the same size as the height of the input images, and such that:
  • the first condition makes it possible to mark as invalid the first ten and the last lines of the image
  • the second condition makes it possible to mark as invalid all the lines having more than 5% of pixels marked as aberrant in the PNM image.
  • This formula outputs a mask of size equal to the size of the input images, and where a pixel will be present if it is on a valid line (first condition), if its value is greater than the average plus the standard deviation pixels in the same line as him
  • the step of detecting lines with streaks is performed as follows:
  • the variance ratio threshold which acts as a limit is 1.5: if the min value Ratio is greater than this threshold, then we consider that the streaks are present on all the lines of the image, if the max ratio is less than this ratio, so the image has no streaks.
  • the final Line2 image which assigns the final label of each line of the input image, is a mix between Line and a cleaned version of Ligne2_tmp.
  • the Line2 image that assigns a label to each line of the input image is composed by mixing the line and
  • Ligne2_tmp If all lines have a satisfactory variance ratio (greater than 1.5), then the streaks are present over the entire height of the image and Line2 will be a copy of Line. Otherwise, if only certain lines have a satisfactory variance ratio, then Line2 is equal to a cleaned version of Ligne2_tmp except for lines with too many outliers, where the NOTOK PNM Line label is copied (this operation is carried out thanks to the use of the minimum);
  • Ligne2_tmp to widen the labels of the strapless lines and to include, as a precaution, these "fuzzy" areas as strapless lines.
  • the step of evaluating the number of streaks on each line is preferably carried out as follows:
  • the variance of each of the columns of an input input image which is, according to the embodiment, the flat flat image or the threshold threshold image, is calculated. This calculation is performed excluding, thanks to Ligne2, the elements located on lines of no streaks. In addition, erosion of the Line2 elements is carried out in advance to remove valid line tags from these areas:
  • the image Var_col thus obtained is a one-dimensional image of the same size as the width of the input images. We see that this image has a repeating pattern as many times as there are streaks in the image. We will then perform a Fourier analysis of this image Var_col to find the number of striations present on each line of the image. This calculation is as follows:
  • the size of the image F is equal to the largest power of two strictly less than L (Input) plus 1. Thus, for images 40,000 pixels wide, F is 32769 pixels.
  • the image F is such that a peak on F (1000) means that there is, in the image, a pattern locating every 1000 pixels. Therefore, it is useful to look for the peaks of F.
  • a geodesic reconstruction of an image D in F3 is then carried out in order to recover the carrier signal which can then be suppressed.
  • the image D is an image of the same size as the image F3, having the value in all points except the abscissa 0 where it is F3 (0).
  • the step of detecting the best candidates of the binary image is performed as follows:
  • the candidate set is then constructed by adding the elements of S if they do not conflict with the elements already added in Candidate. For this, we build a sequence of sets R: Finally, the present invention provides a method implementing a number of original features compared to known solutions of the state of the art.
  • the means for detecting the lines of the image where patterns are present are different from the known solutions, since the principle of taking a mask of candidate pixels to belong to patterns, and to observe how the variance (calculated excluding the elements of this mask) evolves according to the expansion of this mask, is original. Indeed, in the present invention, looking for relief elements that cause a shadow projected on the image, and detecting the lines of the image having patterns by trying to detect the lines having a drop shadow.
  • the present invention aims to propose a method for dividing the lines of the image into two categories: those where patterns are present, and those that do not. It has been found that the known solutions, namely the conventional approach of minimizing intra class variance or maximizing inter-class variance, do not work (especially since classes can have strong variances). In the present invention, means are used to equalize the class variances using a linear time algorithm, which overcomes the disadvantage of known solutions.
  • the first lies in the fact of making a Fourier transform not on each line of the image, as presented in the known solutions, but on a signal in one dimension, representative of the lines of the image.
  • This signal is obtained by calculating the variance of each column of the image: thanks to the relief of the patterns and their drop shadow, we obtain a signal with the same period as the patterns of the image. This solution makes it possible to reduce the calculation times implemented.
  • the second element comes from the fact of carrying out morphological operations on the results of the Fourier transform in order to clean it of parasitic elements which could distort the result obtained.
  • a method according to the invention implements, for the selection of the best candidate components that may belong to a streak, a series of placement operations then removal of the candidates by decreasing as and when constraints on their position. This pattern of decreasing constraints as it goes is the opposite of all the solutions of the state of the art which generally consist in increasing the constraints over time.

Abstract

The invention relates to a method of segmenting an image, representative of an object whose external surface exhibits relief patterns, into a first zone comprising patterns and a second zone not comprising any, the method comprising the following steps: a step of thresholding in the course of which the grey level image is transformed into a binary image, a step of evaluating the number of patterns on each line of the image, and a step in the course of which, as a function of the results of the previous steps which make it possible to obtain a number of patterns in the image, a first set of pixels of the image representing patterns is determined.

Description

Procédé de segmentation d'image  Image segmentation method
DOMAINE DE L'INVENTION FIELD OF THE INVENTION
[0001] L'invention concerne le domaine du contrôle visuel de produits manufacturés dont la surface externe présente des éléments en relief. Cette invention peut s'appliquer notamment, mais non exclusivement aux produits présentant des motifs périodiques, par exemple des pneumatiques. The invention relates to the field of visual control of manufactured products whose outer surface has elements in relief. This invention can be applied in particular, but not exclusively to products having periodic patterns, for example tires.
[0002] Ce contrôle visuel permet, par exemple, de détecter d'éventuels défauts de surface résultant de la fabrication. A l'heure actuelle, l'inspection visuelle et fait encore le plus souvent appel à la dextérité des opérateurs chargés de détecter ces éventuelles imperfections visibles à la surface des objets. Or, avec l'avancée de la puissance de traitement des moyens informatiques, les manufacturiers entrevoient dès à présent la possibilité de rendre ces taches de contrôle automatique  This visual check allows, for example, to detect any surface defects resulting from manufacture. At present, the visual inspection and is still most often called upon the dexterity of the operators responsible for detecting any visible imperfections on the surface of the objects. However, with the advancement of processing power of computer resources, manufacturers now see the possibility of making these automatic control tasks
[0003] A cet effet, différents moyens d'éclairage et d'imagerie numérique sont donc utilisés pour acquérir des images, en vue d'un traitement numérique ultérieur permettant des détecter les imperfections auparavant détectées visuellement par les opérateurs. Ces moyens d'imagerie permettent d'effectuer différentes prises d'images, que ce soit en deux dimensions ou en trois dimensions, de la surface intérieure et/ou extérieure du pneumatique à inspecter. For this purpose, different means of illumination and digital imaging are used to acquire images, for subsequent digital processing to detect imperfections previously detected visually by operators. These imaging means make it possible to take different images, whether in two dimensions or in three dimensions, of the inner and / or outer surface of the tire to be inspected.
[0004] Dans le cas d'objets présentant certaines zones sur lesquelles des motifs en relief sont présents, il est utile de pouvoir appliquer des traitements différents aux zones à motifs, et aux zones sans motifs. A cet effet, il est utile de pouvoir différencier, sur une image d'un pneumatique, les différentes zones en présence. In the case of objects having certain areas on which relief patterns are present, it is useful to apply different treatments to the patterned areas, and areas without patterns. For this purpose, it is useful to be able to differentiate, on an image of a tire, the different zones in the presence.
[0005] On connaît différentes techniques qui visent à effectuer une telle différenciation, mais aucun ne présente une robustesse suffisante pour pouvoir être appliquée à une large gamme de produits manufacturés. En outre, les solutions connues présentent des temps de traitement trop longs pour être acceptables en environnement industriel.  [0005] Various techniques are known which aim at making such a differentiation, but none of them has sufficient robustness to be applied to a wide range of manufactured products. In addition, the known solutions have treatment times too long to be acceptable in an industrial environment.
[0006] La présente invention vise donc à proposer une solution de segmentation permettant de remédier aux inconvénients susmentionnés. DESCRIPTION GENERALE DE L'INVENTION The present invention is therefore to provide a segmentation solution to overcome the aforementioned drawbacks. GENERAL DESCRIPTION OF THE INVENTION
[0007] La présente invention vise donc à proposer un procédé permettant de segmenter une image de la surface externe d'un produit manufacturé de manière à distinguer les zones de l'image présentant des motifs en relief, des autres zones. The present invention is therefore to provide a method for segmenting an image of the outer surface of a manufactured product so as to distinguish the areas of the image having patterns in relief, other areas.
[0008] Ainsi, la présente invention concerne un procédé de segmentation d'une image, représentative d'un produit manufacturé dont la surface externe présente des motifs en relief, en une première zone comportant des motifs et une seconde zone n'en comportant pas, le procédé comportant les étapes suivantes :  Thus, the present invention relates to a method of segmenting an image, representative of a manufactured product whose outer surface has patterns in relief, in a first zone having patterns and a second zone not comprising the method comprising the following steps:
· Une étape de seuillage au cours de laquelle on transforme l'image en niveau de gris en une image binaire,  A thresholding step during which the image in gray level is converted into a binary image,
• Une étape d'évaluation du nombre de motifs sur chaque ligne de l'image, et A step of evaluating the number of patterns on each line of the image, and
• Une étape au cours de laquelle, en fonction des résultats des étapes précédentes qui permettent d'obtenir un nombre de motifs dans l'image, on détermine un premier ensemble de pixels de l'image représentant des motifs. A step in which, according to the results of the preceding steps which make it possible to obtain a number of patterns in the image, a first set of pixels of the image representing patterns is determined.
[0009] Dans la suite de la demande, on désignera parfois une image sur laquelle on applique un procédé conforme à l'invention par l'expression « image d'entrée ».  In the rest of the application, we will sometimes designate an image to which a method according to the invention is applied by the expression "input image".
[0010] Par convention, dans l'ensemble de la demande, on utilisera les notations montrées en figure 1. Ainsi, on utilisera les notations L et H respectivement pour la largeur et la hauteur d'une image d'entrée, et le point I(x,y) sera repéré dans le repère (x,y) montré sur cette figure.  By convention, throughout the application, we will use the notations shown in Figure 1. Thus, we use the notation L and H respectively for the width and height of an input image, and the point I (x, y) will be marked in the (x, y) mark shown in this figure.
[0011] On a constaté que certaines images d'entrée possédaient une courbure le long des lignes et des colonnes. Cette courbure apparaît en mesurant la moyenne des lignes et des colonnes de l'image : chaque ligne, et chaque colonne de l'image, possède une moyenne différente, corrélée avec sa position dans l'image. Cet effet, dû à la courbure naturelle du pneu, (qui diffère selon le type des pneus) ainsi qu'aux contraintes mécaniques subies par le pneu lors de son acquisition, doit être corrigé avant tout autre traitement, afin que tous les éléments du pneu aient une hauteur comparable quelle que soit leur position dans le pneu.  It has been found that some input images have a curvature along the rows and columns. This curvature appears by measuring the average of the rows and columns of the image: each line, and each column of the image, has a different mean, correlated with its position in the image. This effect, due to the natural curvature of the tire (which differs depending on the type of tire) and the mechanical stress experienced by the tire during its acquisition, must be corrected before any other treatment, so that all the elements of the tire have a comparable height regardless of their position in the tire.
[0012] A cet effet, dans un mode de réalisation particulier, le procédé comprend une étape initiale au cours de laquelle on effectue une mise à plat de l'image.  For this purpose, in a particular embodiment, the method comprises an initial step in which it performs a flattening of the image.
[0013] Dans un exemple de réalisation, cette étape de mise à plat de l'image comprend une étape de détection d'un signal porteur sur lequel reposent les motifs. Pour ce faire, on réalise une simple moyenne mobile le long des lignes : à chaque pixel de l'image nettoyée on calcule la moyenne des pixels voisins (situés à moins d'une certaine distance) et situés sur la même ligne ; on retranche ensuite cette valeur au pixel. In an exemplary embodiment, this step of flattening the image comprises a step of detecting a carrier signal on which the patterns are based. To do this, we realize a simple moving average along the lines: at each pixel of the cleaned image we calculates the average of the neighboring pixels (located within a certain distance) and located on the same line; we then subtract this value from the pixel.
[0014] Ces opérations peuvent être définies de la manière suivante : Soit une image I bidimensionnelle, et un entier positif r, on définit l'opération AvgSub comme une fonction prenant en entrée une image bidimensionnelle I et produisant en sortie une image de même taille  These operations can be defined in the following way: Let a two-dimensional image I, and a positive integer r, define the operation AvgSub as a function taking as input a two-dimensional image I and outputting an image of the same size
[0015] L'opération consiste à calculer, dans une fenêtre horizontale de taille 2r +1 centrée sur le pixel (x; y), (en considérant la spécificité de recollement des bords droit et gauche, exprimée par le minimum), la moyenne des pixels, et de retrancher cette dernière a la valeur du pixel (et ceci répété pour tous les pixels de l'image). The operation consists in calculating, in a horizontal window of size 2r +1 centered on the pixel (x; y), (considering the specificity of recollement of the right and left edges, expressed by the minimum), the average pixels, and to subtract the latter from the value of the pixel (and this repeated for all the pixels of the image).
[0016] Le procédé de segmentation de la présente invention pourrait également être utilisé sur des images représentant tous types d'objet, et pas nécessairement des pneumatiques. Dans ce cas, l'étape de mise à plat ne s'avérerait pas forcément utile, puisqu'elle est rendue nécessaire dans le cas d'un pneumatique du fait de la forme arrondie de l'objet.  The segmentation method of the present invention could also be used on images representing all types of objects, and not necessarily tires. In this case, the flattening step would not necessarily prove useful, since it is made necessary in the case of a tire due to the rounded shape of the object.
[0017] De manière préférentielle, on obtient l'image mise à plat, que nous appellerons désormais « image plate », en soustrayant le minimum de l'image à cette valeur moyenne afin d'obtenir uniquement des valeurs positives. Pour cette dernière opération, on choisit avantageusement un rayon permettant de conserver les motifs tout en supprimant la porteuse. En outre, il s'avère que, bien que réalisée uniquement sur les lignes de l'image, cette opération permet aussi de s'affranchir de la courbure le long des colonnes de l'image. Preferably, we obtain the flat image, which we will now call "flat image", subtracting the minimum of the image to this average value to obtain only positive values. For this last operation, it is advantageous to choose a radius to retain the patterns while removing the carrier. In addition, it turns out that, although performed only on the lines of the image, this operation also makes it possible to overcome the curvature along the columns of the image.
[0018] Une fois l'image d'entrée mis à plat, l'étape suivante du procédé consiste à effectuer une opération de seuillage, afin de transformer l'image plate, qui est en niveaux de gris, en une image seuillée binaire. Ceci permet de créer un masque de sortie comprenant en un premier ensemble de pixels contenant les motifs, et un second ensemble de pixels comprenant les autres éléments.  Once the input image is flat, the next step of the method consists in performing a thresholding operation, in order to transform the flat image, which is in gray levels, into a binary threshold image. This makes it possible to create an output mask comprising a first set of pixels containing the patterns, and a second set of pixels comprising the other elements.
[0019] Pour décider si un pixel appartient au masque de sortie, on vérifie trois critères :  To decide whether a pixel belongs to the output mask, three criteria are verified:
Les deux premiers consistent à calculer d'une part la moyenne des niveaux de gris de l'ensemble des pixels de la ligne (respectivement de la colonne) sur laquelle est située un pixel, d'autre part l'écart-type, et d'additionner ces deux valeurs.  The first two consist in calculating on the one hand the average of the gray levels of all the pixels of the row (respectively of the column) on which is a pixel, on the other hand the standard deviation, and of add up these two values.
- Le troisième critère consiste à vérifier que le pixel appartient à une ligne valide, c'est-à- dire une ligne qui n'est pas trop proche ni du haut, ni du bas de l'image ; ou une ligne qui ne contient pas un trop grand nombre de valeurs aberrantes, ou bien encore une ligne qui n'est pas trop proche d'une ligne contenant un grand nombre de valeurs aberrantes. - The third criterion consists in verifying that the pixel belongs to a valid line, that is to say a line that is not too close to the top or the bottom of the image; or a line which does not contain too many outliers, or a line that is not too close to a line containing a large number of outliers.
[0020] En fonction du masque de sortie ainsi défini, il est alors possible de détecter, dans l'image mise à plat, les lignes dans lesquelles des motifs sont présents. A l'issue de cette détection, on obtient une image unidimensionnelle, de même taille que la hauteur de l'image plate.  Depending on the output mask thus defined, it is then possible to detect, in the flat image, lines in which patterns are present. At the end of this detection, a one-dimensional image is obtained, of the same size as the height of the flat image.
[0021] Cette étape de détection est effectuée de la façon suivante :  This detection step is performed as follows:
- on calcule, pour chaque ligne de l'image mise à plat, la variance des niveaux de gris des pixels n'appartenant pas à l'image seuillée binaire, ce qui revient à exclure les motifs éventuelle,  for each line of the flat image, the variance of the gray levels of the pixels not belonging to the binary threshold image is calculated, which amounts to excluding the possible patterns,
- on effectue une seconde fois le calcul en dilatant horizontalement l'image seuillée ce qui revient à exclure plus de pixels du calcul.  the calculation is carried out a second time by horizontally expanding the threshold image, which amounts to excluding more pixels from the calculation.
[0022] Les lignes sur lesquelles des motifs sont présents dans l'image plate vont présenter un résultat fortement différent des autres lignes. En effet, le calcul de variance effectué exclu le phénomène d'ombre portée provoqué par les motifs, ce qui conduit à des valeurs basses par rapport à la moyenne. Ainsi, les lignes comportant des motifs présenteront une grande différence entre les deux valeurs de variance, alors que ce n'est pas le cas des lignes sans strie.  The lines on which patterns are present in the flat image will present a result significantly different from other lines. Indeed, the variance calculation performed excludes the cast shadow phenomenon caused by the patterns, which leads to low values compared to the average. Thus lines with patterns will have a big difference between the two variance values, whereas streaked lines do not.
[0023] On effectue alors, pour chaque ligne, le rapport entre les deux valeurs variance ainsi calculées. Si ce rapport devient supérieur à un seuil prédéterminé, on considérera que la ligne comporte une strie.  For each line, the ratio between the two variance values calculated in this way is then carried out. If this ratio becomes greater than a predetermined threshold, it will be considered that the line has a streak.
[0024] On remarque ici que l'on utilise une spécificité des motifs en relief, à savoir le phénomène d'ombre portée, pour les détecter. D'autres méthodes pourraient être envisagées pour réaliser cette étape de détection, toutefois on a constaté que la méthode ici décrite fournissait les meilleurs résultats.  It is noted here that we use a specificity of the patterns in relief, namely the shadow phenomenon, to detect them. Other methods could be considered to achieve this detection step, however it was found that the method described here provided the best results.
[0025] Il est à noter une fois de plus que cette étape de détection des motifs n'est utile que pour certains types d'objets manufacturés. En effet, dans le cas où les motifs ne sont présents que sur une partie du produit, il est nécessaire de détecter, sur une image représentant le produit, les lignes qui contiennent effectivement des motifs.  It should be noted once again that this pattern detection step is only useful for certain types of manufactured objects. Indeed, in the case where the patterns are present only on a portion of the product, it is necessary to detect, on an image representing the product, the lines that actually contain patterns.
[0026] L'étape suivante, dans un procédé conforme à l'invention, consiste à évaluer le nombre de motifs sur chaque ligne. Pour ce faire, on met en œuvre les étapes suivantes : tout d'abord, on calcule la variance le long de chacune des colonnes d'une image d'entrée, pour constituer une image unidimensionnelle possédant une régularité similaire aux motifs. Selon les exemples, on choisira comme image d'entrée l'image plate ou l'image seuillée. The next step in a method according to the invention is to evaluate the number of patterns on each line. To do this, we implement the following steps: first, we calculate the variance along each of the columns of an input image, to form a one-dimensional image with a pattern-like regularity. According to the examples, the input image will be chosen as the flat image or the thresholded image.
- on applique deux transformées de Fourier successives sur cette image unidimensionnelle pour obtenir une décomposition de l'image dans l'espace des fréquences,  two successive Fourier transforms are applied to this one-dimensional image to obtain a decomposition of the image in the frequency space,
on cherche alors un ou plusieurs maximums de l'image décomposée. En effet, si une valeur d'abscisse x est élevée, cela signifie qu'il y a dans l'image un motif qui se répète tous les x pixels. Par conséquent un maximum de l'image peut correspondre à une période de motifs.  we then look for one or more maximums of the decomposed image. Indeed, if a value of abscissa x is high, it means that there is in the image a pattern that repeats every x pixels. Therefore a maximum of the image can correspond to a period of patterns.
[0027] Toutefois, on a constaté que dans certains cas, un maximum de l'image décomposée de correspond pas à une période des motifs recherchée, mais à une harmonique, c'est-à-dire une valeur due à une groupe de motifs qui se répète régulièrement dans l'image. Par conséquent il est utile, dans une réalisation particulière, de regarder les fractions du maximum déterminé pour détecter d'éventuels candidats à la période des motifs.  However, it has been found that in some cases, a maximum of the decomposed image does not correspond to a desired period of the patterns, but to a harmonic, that is to say a value due to a group of patterns. which is repeated regularly in the image. Therefore it is useful in a particular embodiment to look at the fractions of the determined maximum to detect possible candidates for the pattern period.
[0028] Dans une dernière étape d'un procédé selon l'invention, on détecte, dans l'image seuillée, les meilleures composantes pouvant être des motifs, et on les retient dans un ensemble Résultat. Pour ce faire, on parcourt les composantes connexes de l'image seuillée par taille décroissante, et on les retient si deux conditions sont respectées :  In a final step of a method according to the invention, the best components that can be patterns are detected in the thresholded image and they are retained in a result set. To do this, we go through the related components of the thresholded image by decreasing size, and we retain them if two conditions are met:
Tout d'abord, il ne faut pas que la composante connexe, si elle était ajoutée à l'ensemble Résultat, conduise à ce qu'il y ait sur une ligne de l'image seuillée un nombre d'éléments de l'ensemble Résultat supérieur au nombre de motifs détecté à l'étape précédente, et  First, the related component, if it was added to the result set, must not result in a row of the thresholded image having a number of elements in the result set. greater than the number of patterns detected in the previous step, and
- Il faut en outre que la composante connexe appartienne à une ligne valide telle que définie au paragraphe [0019]  - The related component must also belong to a valid line as defined in paragraph [0019]
[0029] A l'issue de cette dernière étape, on obtient alors un premier ensemble de pixel, correspondant à l'ensemble Résultat, comportant l'ensemble des motifs de l'image.  At the end of this last step, we then obtain a first set of pixels, corresponding to the result set, comprising all the patterns of the image.
[0030] Toutefois, on a constaté que l'ensemble Résultat pouvait, dans certains cas, comprendre des éléments surnuméraires, qu'il serait utile de supprimer. A cet effet, dans un mode de réalisation, un procédé selon l'invention comporte en outre les étapes suivantes :  However, it was found that the result set could, in some cases, include supernumerary items that it would be useful to delete. For this purpose, in one embodiment, a method according to the invention also comprises the following steps:
- une étape de réévaluation du nombre de motifs dans l'image, et - une étape de filtrage de l'ensemble de pixels déterminé, en fonction du nombre de motifs réévalué, pour obtenir un deuxième ensemble de pixels de l'image. a step of reassessing the number of patterns in the image, and a step of filtering the determined set of pixels, as a function of the number of reevaluated patterns, to obtain a second set of pixels of the image.
[0031] Dans un autre mode de réalisation, un procédé selon l'invention comporte en outre une étape au cours de laquelle on complète des espaces vides de l'image pour obtenir un troisième ensemble de pixels de l'image.  In another embodiment, a method according to the invention further comprises a step during which one completes empty spaces of the image to obtain a third set of pixels of the image.
[0032] Dans un mode de réalisation, un procédé selon l'invention comporte une étape au cours laquelle on élimine, du troisième ensemble de pixels, des composantes surnuméraires, pour obtenir un quatrième ensemble de pixels de l'image représentant des motifs.  In one embodiment, a method according to the invention comprises a step in which is eliminated, the third set of pixels, supernumerary components to obtain a fourth set of pixels of the image representing patterns.
[0033] On a constaté qu'un léger bruit présent dans l'image sur laquelle est appliqué le procédé pouvait perturber la détection des motifs, et ainsi conduire à une mauvaise segmentation. Pour remédier à cela, dans un mode de réalisation, il est utile de prévoir une étape préalable de nettoyage de l'image avec des filtres morphologiques. Considérons, dans un exemple particulier, une image où est représentée la topographie d'un pneumatique, c'est-à-dire que la valeur de chaque pixel de l'image représente la hauteur du voisinage du point correspondant dans le pneumatique. Sur une telle image, les valeurs de niveau de gris élevées indiquent des pixels d'altitude élevée, tandis que les valeurs de niveau de gris basses indiquent des pixels de faible altitude. Ainsi, les motifs présents sur un pneumatique ressemblent, sur une image topographique, à des chaînes de montagne étendues, sans nécessairement être très hautes, tandis que le bruit présent dans l'image apparaît sous la forme de pic de très (montagnes) ou très basse (canyons) altitude mais de petite taille.  It has been found that a slight noise present in the image on which the method is applied could disturb the detection of the patterns, and thus lead to a bad segmentation. To remedy this, in one embodiment, it is useful to provide a preliminary step of cleaning the image with morphological filters. Consider, in a particular example, an image where the topography of a tire is represented, that is to say that the value of each pixel of the image represents the height of the vicinity of the corresponding point in the tire. On such an image, the high gray level values indicate high altitude pixels, while the low gray level values indicate low altitude pixels. Thus, the patterns present on a tire resemble, in a topographic image, extensive mountain ranges, without necessarily being very high, while the noise present in the image appears in the form of peak of very (mountains) or very low (canyons) altitude but small.
[0034] L'objectif de la présente étape est donc de supprimer ces pics de valeur. A cet effet, on utilise une ouverture morphologique, qui consiste à supprimer toutes les montagnes étroites, quelle que soit leur altitude, suivie d'une fermeture morphologique qui consiste à supprimer tous les canyons étroits, quelle que soit leur profondeur.  The objective of this step is to remove these peaks value. For this purpose, a morphological opening is used, which consists of removing all the narrow mountains, whatever their altitude, followed by a morphological closure which consists of removing all the narrow canyons, whatever their depth.
[0035] L'opération d'ouverture consiste d'abord à remplacer la valeur de chaque pixel de l'image par la valeur minimale des pixels situés dans un certain voisinage, puis à recommencer l'opération en prenant cette fois-ci la valeur maximale. L'opération de fermeture consiste à réaliser les mêmes deux opérations, mais dans le sens inverse (d'abord la valeur maximale, puis la valeur minimale). Le voisinage choisi consiste en l'ensemble des pixels situés sur la même ligne, que le pixel étudié (on parle alors d'ouverture et de fermeture par un élément structurant linéaire) et à une distance inférieure à un certain seuil. [0036] On choisit préférentiellement une valeur de seuil permettant d'éliminer, sur chaque ligne, des montagnes et des canyons de petite taille. Toutefois, ce choix de rayon doit représenter un compromis entre une valeur trop faible qui ne permettrait pas un nettoyage correct, et une valeur trop élevée qui pourrait conduire à la suppression de certains éléments d'intérêt des motifs. The opening operation consists firstly in replacing the value of each pixel of the image by the minimum value of the pixels located in a certain neighborhood, then in starting the operation again, this time taking the value Max. The closing operation consists in performing the same two operations, but in the opposite direction (first the maximum value, then the minimum value). The chosen neighborhood consists of the set of pixels located on the same line, that the pixel studied (it is called opening and closing by a linear structuring element) and at a distance less than a certain threshold. Preferably a threshold value is chosen to eliminate, on each line, mountains and canyons of small size. However, this choice of radius must represent a compromise between a value too low that would not allow a proper cleaning, and too high a value that could lead to the removal of some elements of interest reasons.
DESCRIPTION DU MEILLEUR MODE DE RÉALISATION DESCRIPTION OF THE BEST MODE OF PRODUCTION
[0037] On va décrire ci-après le détail de chacune des étapes de la méthode dans le cas d'un produit spécifique, à savoir un pneumatique. Dans la description de ce mode de réalisation, les motifs en relief seront appelés des stries. Dans cet exemple, l'étape nettoyage est effectuée au préalable. Ainsi, si on nomme CEA l'image de départ, l'image nettoyée sera : We will describe below the detail of each step of the method in the case of a specific product, namely a tire. In the description of this embodiment, the raised patterns will be called streaks. In this example, the cleaning step is performed beforehand. Thus, if we call CEA the starting image, the cleaned image will be:
[0038] Ainsi que décrit précédemment dans ce texte, l'étape de mise à plat est effectuée en utilisant une opération AvgSub As described previously in this text, the flattening step is performed using an AvgSub operation.
[0039] On effectue alors le calcul suivant : dans une fenêtre horizontale de taille 2r +1 centrée sur le pixel (x; y), on calcule la moyenne des pixels, et de retrancher cette dernière a la valeur du pixel (et ceci répété pour tous les pixels de l'image). De manière préférentielle, on obtient l'image mise à plat, que nous appellerons désormais « image plate », en soustrayant le minimum de l'image à cette valeur moyenne afin d'obtenir uniquement des valeurs positives : The following calculation is then carried out: in a horizontal window of size 2r +1 centered on the pixel (x; y), the average of the pixels is calculated, and the latter is subtracted from the value of the pixel (and this is repeated for all pixels in the image). Preferably, we obtain the flat image, which we will now call "flat image", subtracting the minimum of the image from this average value in order to obtain only positive values:
[0040] Le calcul de l'image seuillée est effectué de la manière suivante : The calculation of the thresholded image is performed as follows:
On construit une fonction qui permet d'attribuer une étiquette à chaque ligne y de l'image d'entrée. Si on considère un masque PNM d'entrée, représentant les valeurs aberrantes de l'image d'entrée (les pixels de valeur aberrante sont à A, et les autres sont à 0, et on procède en deux temps : tout d'abord, on définit une première image unidimensionnelle temporaire, de même taille que la hauteur des images d'entrée, et telle que : A function is built that allows to assign a label to each line y of the input image. If we consider an input mask PNM, representing the outliers of the input image (the outlier pixels are at A, and the others are at 0, and we proceed in two steps: first, defining a first temporary unidimensional image, of the same size as the height of the input images, and such that:
La première condition permet de marquer comme invalide les dix premières et les dis dernières lignes de l'image, et la seconde condition permet de marquer comme invalide toutes les lignes possédant plus de 5% de pixels marqués comme aberrants dans l'image PNM. The first condition makes it possible to mark as invalid the first ten and the last lines of the image, and the second condition makes it possible to mark as invalid all the lines having more than 5% of pixels marked as aberrant in the PNM image.
On pose Ligne_NOTOK_PNM=0 et Ligne_OK=2. L'image Ligne, qui nous donnera l'étiquette de chaque ligne, est obtenue en propageant les étiquettes de lignes invalides, grâce à une érosion, comme suit : One puts Line_NOTOK_PNM = 0 and Ligne_OK = 2. The Line image, which will give us the label of each line, is obtained by propagating the labels of invalid lines, thanks to an erosion, as follows:
- On peut alors définit le masque de sortie en réalisant un seuil basé sur nos critères précédemment définis et sur l'étiquetage des lignes, à partir de l'image précédemment mise à plat (voir équation 2) - We can then define the output mask by realizing a threshold based on our previously defined criteria and on the labeling of the lines, starting from the previously flattened image (see equation 2)
Cette formule produit en sortie un masque de taille égale à la taille des images en entrée, et où un pixel sera présent s'il est sur une ligne valide (première condition), si sa valeur est supérieur à la moyenne plus l'écart type des pixels de la même ligne que luiThis formula outputs a mask of size equal to the size of the input images, and where a pixel will be present if it is on a valid line (first condition), if its value is greater than the average plus the standard deviation pixels in the same line as him
(seconde condition), et si sa valeur est supérieure à la moyenne plus l'écart type des pixels de la même colonne que lui (troisième condition). (second condition), and if its value is greater than the average plus the standard deviation of the pixels of the same column as it (third condition).
[0041] L'étape de détection des lignes comportant des stries est effectuée de la façon suivante :  The step of detecting lines with streaks is performed as follows:
- On commence par calculer, pour chaque ligne y de l'image mise à plat (voir équation - We start by calculating, for each line y of the flat image (see equation
2), la variance des pixels n'appartenant pas à l'image seuillée, et la variance des pixels n'appartenant pas à l'image seuillée dilatée de 60 pixels : 2), the variance of the pixels not belonging to the thresholded image, and the variance of the pixels not belonging to the dilated thresholded image of 60 pixels:
Comme expliqué précédemment, on calcule, dans une nouvelle image unidimensionnelle Score, de taille égale à la hauteur des images d'entrée, le rapport entre ces deux valeurs. On calcule aussi, dans l'image unidimensionnelle Rapport, le rapport entre les deux valeurs mais en procédant à un nettoyage à l'aide d'ouvertures et de fermetures, de la façon suivantes : As previously explained, the ratio between these two values is calculated in a new unidimensional Image image of size equal to the height of the input images. We also calculate, in the unidimensional image Report, the relationship between the two values but by cleaning with openings and closures, as follows:
L'image Rapport nous servira dans la suite de cette section, tandis que l'image Score nous servira dans les sections suivantes. On cherche, pour chaque ligne valide de l'image (en se servant de l'image Ligne définie à l'équation 3), quels sont les deux extrema de valeurs de Rapport. The image Report will serve us later in this section, while the Score image will be used in the following sections. For each valid line of the image (using the Line image defined in Equation 3), we look for the two extrema of Report values.
Après plusieurs expérimentations, nous avons établi que le seuil de rapport de variance qui agit comme limite est 1.5 : si la valeur min Rapport est supérieure à ce seuil, alors on considère que les stries sont présentes sur toutes les lignes de l'image, si la valeur max Rapport est inférieur à ce rapport, alors l'image ne possède pas de stries. After several experiments, we have established that the variance ratio threshold which acts as a limit is 1.5: if the min value Ratio is greater than this threshold, then we consider that the streaks are present on all the lines of the image, if the max ratio is less than this ratio, so the image has no streaks.
Ce qui est plus compliqué à déterminer se passe quand ces deux extrema se situent de part et d'autre du seuil. Dans ce cas, la valeur de 1 ,5 ne joue plus le rôle de seuil satisfaisant, et il faut trouver un autre seuil différent selon les images. Notre technique consiste à choisir une valeur de seuil s de façon à diviser les lignes de l'image en deux classes (avec strie, on suppose, et sans strie, on suppose) de façon à ce que les variances des deux classes soient très proches (cette procédure est discutée dans la suite) :  What is more complicated to determine happens when these two extrema are located on both sides of the threshold. In this case, the value of 1, 5 no longer plays the role of a satisfactory threshold, and it is necessary to find another different threshold according to the images. Our technique consists in choosing a threshold value s so as to divide the lines of the image into two classes (with streak, we suppose, and without streaking, we suppose) so that the variances of the two classes are very close (this procedure is discussed in the following):
Si plusieurs seuils sont candidats pour être le minimum, on prendra le seuil le plus bas. On peut construire l'image Ligne2_tmp qui attribue une étiquette à chacune des lignes de l'image d'entrée en attribuant, pour tout If several thresholds are candidates to be the minimum, we will take the lowest threshold. You can build the Ligne2_tmp image which assigns a label to each line of the input image by assigning, for any
On pose Ligne_NOTOK_NOTSTRIE=l . We put Ligne_NOTOK_NOTSTRIE = l.
L'image Ligne2 finale, qui attribue l'étiquette définitive de chacune des lignes de l'image d'entrée, est un mélange entre Ligne et une version nettoyée de Ligne2_tmp. The final Line2 image, which assigns the final label of each line of the input image, is a mix between Line and a cleaned version of Ligne2_tmp.
Pour tout on pose For everything we ask
Comme expliqué précédemment, l'image Ligne2 qui attribue une étiquette à chaque ligne de l'image d'entrée est composée en mélangeant les informations de Ligne et deAs previously explained, the Line2 image that assigns a label to each line of the input image is composed by mixing the line and
Ligne2_tmp. Si toutes les lignes ont un rapport de variance satisfaisant (supérieur à 1.5), alors les stries sont présentes sur toute la hauteur de l'image et Ligne2 sera une copie de Ligne. Sinon, si seules certaines lignes ont un rapport de variance satisfaisant, alors Ligne2 est égale à une version nettoyée de Ligne2_tmp sauf pour les lignes comportant trop de valeurs aberrantes, où on recopie l'étiquette Ligne NOTOK PNM (cette opération est réalisée grâce à l'utilisation du minimum) ; Ligne2_tmp. If all lines have a satisfactory variance ratio (greater than 1.5), then the streaks are present over the entire height of the image and Line2 will be a copy of Line. Otherwise, if only certain lines have a satisfactory variance ratio, then Line2 is equal to a cleaned version of Ligne2_tmp except for lines with too many outliers, where the NOTOK PNM Line label is copied (this operation is carried out thanks to the use of the minimum);
Le nettoyage de Ligne2_tmp s'effectue grâce à une ouverture, suivie d'une fermeture. Cependant, on s'aperçoit dans les images comportant partiellement des stries que ces dernières ne s'interrompent pas toutes sur la même ligne : elles s'effacent peu à peu, et ne disparaissent pas aux mêmes lignes. Pour cette raison, on effectue une érosion deThe cleaning of Ligne2_tmp is done thanks to an opening, followed by a closing. However, we notice in images with streaks that they do not all stop on the same line: they disappear gradually, and do not disappear in the same lines. For this reason, erosion of
Ligne2_tmp afin d'élargir les étiquettes des lignes sans strie et inclure, par précautions, ces zones « floues » comme lignes sans strie. Ligne2_tmp to widen the labels of the strapless lines and to include, as a precaution, these "fuzzy" areas as strapless lines.
[0042] L'étape d'évaluation du nombre de stries sur chaque ligne est préférentiellement effectuée de la façon suivante :  The step of evaluating the number of streaks on each line is preferably carried out as follows:
- On calcule la variance de chacune des colonnes d'une image d'entrée Input qui est, selon le mode de réalisation, l'image mis à plat Plat ou l'image seuillée Seuil. Ce calcul est effectué en excluant, grâce à Ligne2, les éléments situés sur des lignes de possédant pas de stries. En outre, on effectue au préalable une érosion des éléments de Ligne2 pour éloigner les étiquettes de ligne valides de ces zones : The variance of each of the columns of an input input image which is, according to the embodiment, the flat flat image or the threshold threshold image, is calculated. This calculation is performed excluding, thanks to Ligne2, the elements located on lines of no streaks. In addition, erosion of the Line2 elements is carried out in advance to remove valid line tags from these areas:
L'image Var_col ainsi obtenue est une image unidimensionnelle de même taille que la largeur des images en entrée. On constate que cette image possède un motif se répétant autant de fois qu'il y a de stries dans l'image. On va alors effectuer une analyse par Fourier de cette image Var_col pour trouver le nombre de stries présentes sur chaque ligne de l'image. Ce calcul est le suivant : The image Var_col thus obtained is a one-dimensional image of the same size as the width of the input images. We see that this image has a repeating pattern as many times as there are streaks in the image. We will then perform a Fourier analysis of this image Var_col to find the number of striations present on each line of the image. This calculation is as follows:
La taille de l'image F est égale à la plus grande puissance de deux strictement inférieure à L(Input) plus 1. Ainsi, pour des images de 40 000 pixels de large, F fait 32769 pixels. L'image F est telle qu'un pic sur F (1000) signifie qu'il y a, dans l'image, un motif se repérant tous les 1000 pixels. Par conséquent, il est utile de rechercher les pics de F. Toutefois, au préalable, on nettoie l'image avec une ouverture et une fermeture comme suit : The size of the image F is equal to the largest power of two strictly less than L (Input) plus 1. Thus, for images 40,000 pixels wide, F is 32769 pixels. The image F is such that a peak on F (1000) means that there is, in the image, a pattern locating every 1000 pixels. Therefore, it is useful to look for the peaks of F. However, beforehand, we clean the image with an opening and closing as follows:
On constate que la structure de F2 est souvent la même quelle que soit l'image d'entrée : dans un premier tiers de l'image, on observe des oscillations intéressantes placées sur un signal porteur, puis, le signal reste plat, s'effondre vers la moitié de l'image, et remonte un peu pour rester plat dans la dernière moitié. On va donc chercher le minimum de l'image après le premier tiers, et placer des 0 après ce minimum, pour obtenir une image F3 comme suit : It can be seen that the structure of F2 is often the same regardless of the input image: in a first third of the image, interesting oscillations are observed placed on a carrier signal, then the signal remains flat, collapse to half of the picture, and go up a bit to stay flat in the last half. We will thus look for the minimum of the image after the first third, and place 0 after this minimum, to obtain an image F3 as follows:
On effectue ensuite une reconstruction géodésique d'une image D dans F3 afin de récupérer le signal porteur que l'on pourra alors supprimer. L'image D est une image de même taille que l'image F3, ayant pour valeur en tous les points sauf à l'abscisse 0 où elle vaut F3(0). On cherche alors la position du maximum de F 4 : " $■A geodesic reconstruction of an image D in F3 is then carried out in order to recover the carrier signal which can then be suppressed. The image D is an image of the same size as the image F3, having the value in all points except the abscissa 0 where it is F3 (0). We then look for the position of the maximum of F 4: " $ ■
On a constaté que ce maximum ne représentait pas toujours la période spatiale des stries dans l'image En effet, il faut tenir compte du phénomène d'harmoniques dans l'image. A cet effet, on va tester des fractions du maximum précédemment déterminé, et on recherche un maximum pn de F4 dans un certain voisinage Rn comme suit : It has been found that this maximum does not always represent the spatial period of the streaks in the image. Indeed, it is necessary to take into account the phenomenon of harmonics in the image. For this purpose, fractions of the previously determined maximum will be tested, and a maximum p n of F4 is sought in a certain neighborhood Rn as follows:
On construit alors l'ensemble Nb_strie qui contient tous les candidats au nombre de stries dans l'image : We then construct the set Nb_strie which contains all the candidates to the number of streaks in the image:
[0043] L'étape de détection des meilleurs candidats de l'image binaire est effectuée comme suit : The step of detecting the best candidates of the binary image is performed as follows:
Soit C l'ensemble des composantes connexes de Seuil ; C l'ensemble des éléments de C qui apparaissent sur au moins 20 lignes étiquetées comme valides, et soit S la séquence des éléments de C triés par taille décroissante. On a alors : Let C be the set of related components of Threshold; C the set of elements of C that appear on at least 20 lines labeled as valid, and let S be the sequence of elements of C sorted by decreasing size. We then have:
I !½«· kj i :' : ,i:€ { $, i < * ;ί¾ > ≠ ¾ I! ½ "· kj i: ' : , i : € {$, i <*;ί¾> ≠ ¾
On construit alors l'ensemble Candidat en ajoutant les éléments de S s'ils ne sont pas en conflit avec les éléments déjà ajoutés dans Candidat. Pour cela, on construit une suite d'ensemble R : Finalement, la présente invention propose un procédé mettant en œuvre un certain nombre de caractéristiques originales par rapport aux solutions connus de l'état de la technique. The candidate set is then constructed by adding the elements of S if they do not conflict with the elements already added in Candidate. For this, we build a sequence of sets R: Finally, the present invention provides a method implementing a number of original features compared to known solutions of the state of the art.
Ainsi, les moyens permettant d'effectuer une détection des lignes de l'image où des motifs sont présents sont différents des solutions connues, puisque le principe consistant à prendre un masque de pixels candidats à appartenir à des motifs, et à observer comment la variance (calculée en excluant les éléments de ce masque) évolue en fonction de la dilatation de ce masque, est original. En effet, dans la présente invention, on cherche des éléments de relief qui provoquent une ombre projetée sur l'image, et on détecte les lignes de l'image possédant des motifs en tentant de détecter les lignes possédant une ombre portée.  Thus, the means for detecting the lines of the image where patterns are present are different from the known solutions, since the principle of taking a mask of candidate pixels to belong to patterns, and to observe how the variance (calculated excluding the elements of this mask) evolves according to the expansion of this mask, is original. Indeed, in the present invention, looking for relief elements that cause a shadow projected on the image, and detecting the lines of the image having patterns by trying to detect the lines having a drop shadow.
Par ailleurs, la présente invention vise à proposer un procédé permettant de diviser les lignes de l'image en deux catégories : celles où des motifs sont présents, et celles n'en possédant pas. On a constaté que les solutions connues, à savoir l'approche classique consistant à minimiser la variance intra classe ou à maximiser la variance inter classes ne fonctionnaient pas (notamment car les classes peuvent avoir des variances fortes). Dans la présente invention, on utilise des moyens consistant à égaliser les variances des classes à l'aide d'un algorithme en temps linéaire, ce qui permet de remédier à l'inconvénient des solutions connues.  Moreover, the present invention aims to propose a method for dividing the lines of the image into two categories: those where patterns are present, and those that do not. It has been found that the known solutions, namely the conventional approach of minimizing intra class variance or maximizing inter-class variance, do not work (especially since classes can have strong variances). In the present invention, means are used to equalize the class variances using a linear time algorithm, which overcomes the disadvantage of known solutions.
En outre, la méthode de comptage des motifs, permettant de savoir combien de motifs sont normalement présents sur l'image en l'absence de défaut comporte deux éléments inventifs :  In addition, the method of counting patterns, to know how many patterns are normally present on the image in the absence of defects has two inventive elements:
Le premier réside dans le fait de réaliser une transformée de Fourier non pas sur chaque ligne de l'image, comme présenté dans les solutions connues, mais sur un signal en une dimension, représentatif des lignes de l'image. Ce signal est obtenu en calculant la variance de chaque colonne de l'image : grâce au relief des motifs et à leur ombre portée, on obtient un signal avec la même période que les motifs de l'image. Cette solution permet de diminuer les temps de calcul mis en œuvre.  The first lies in the fact of making a Fourier transform not on each line of the image, as presented in the known solutions, but on a signal in one dimension, representative of the lines of the image. This signal is obtained by calculating the variance of each column of the image: thanks to the relief of the patterns and their drop shadow, we obtain a signal with the same period as the patterns of the image. This solution makes it possible to reduce the calculation times implemented.
Le second élément provient du fait de réaliser des opérations morphologiques sur les résultats de la transformée de Fourrier afin de la nettoyer d'éléments parasites qui pourraient fausser le résultat obtenu.  The second element comes from the fact of carrying out morphological operations on the results of the Fourier transform in order to clean it of parasitic elements which could distort the result obtained.
- Enfin, un procédé selon l'invention met en œuvre, pour la sélection des meilleurs composantes candidates pouvant appartenir à une strie, une série d'opérations de placement puis suppression des candidats en diminuant au fur et à mesure les contraintes sur leur position. Ce schéma de diminution des contraintes au fur et à mesure va à l'inverse de toutes les solutions de l'état de la technique qui consistent généralement à augmenter les contraintes avec le temps.  Finally, a method according to the invention implements, for the selection of the best candidate components that may belong to a streak, a series of placement operations then removal of the candidates by decreasing as and when constraints on their position. This pattern of decreasing constraints as it goes is the opposite of all the solutions of the state of the art which generally consist in increasing the constraints over time.

Claims

REVENDICATIONS
Procédé de segmentation d'une image, représentative d'un produit manufacturé dont la surface externe présente des motifs en relief, en une première zone comportant des motifs et une seconde zone n'en comportant pas, le procédé comportant les étapes suivantes : A method of segmenting an image, representative of a manufactured product whose outer surface has patterns in relief, in a first zone having patterns and a second zone not comprising them, the method comprising the following steps:
• Une étape de seuillage au cours de laquelle on transforme l'image en niveau de gris en une image binaire,  A thresholding step during which the image in gray level is converted into a binary image,
• Une étape d'évaluation du nombre de motifs sur chaque ligne de l'image, et A step of evaluating the number of patterns on each line of the image, and
• Une étape au cours de laquelle, en fonction des résultats des étapes précédentes qui permettent d'obtenir un nombre de motifs dans l'image, on détermine un premier ensemble de pixels de l'image représentant des motifs. A step in which, according to the results of the preceding steps which make it possible to obtain a number of patterns in the image, a first set of pixels of the image representing patterns is determined.
Procédé selon la revendication 1, comportant une étape initiale au cours de laquelle on effectue une mise à plat de l'image. The method of claim 1, including an initial step in which the image is flattened.
.Procédé selon la revendication 1 dans lequel l'étape de mise à plat de l'image comprend une étape de détection d'un signal porteur sur lequel reposent les motifs. The method of claim 1 wherein the step of flattening the image comprises a step of detecting a carrier signal on which the patterns are based.
Procédé selon l'une des revendications précédentes, comprenant une étape, avant l'étape d'évaluation du nombre de motifs, de détection des lignes de l'image comportant des motifs. Method according to one of the preceding claims, comprising a step, before the step of evaluating the number of patterns, of detecting the lines of the image comprising patterns.
Procédé selon la revendication 1 ou 2, comportant en outre les étapes suivantes : The method of claim 1 or 2, further comprising the steps of:
une étape de réévaluation du nombre de motifs dans l'image, et  a step of re-evaluating the number of patterns in the image, and
une étape de filtrage de l'ensemble de pixels déterminé, en fonction du nombre de motifs réévalué, pour obtenir un deuxième ensemble de pixels de l'image.  a step of filtering the determined set of pixels, as a function of the number of reevaluated patterns, to obtain a second set of pixels of the image.
Procédé la revendication 3, comprenant en outre une étape au cours de laquelle on complète des espaces vides de l'image pour obtenir un troisième ensemble de pixels de l'image. The method of claim 3, further comprising a step of completing blank spaces of the image to obtain a third set of pixels of the image.
Procédé selon la revendication 4, comprenant une étape au cours laquelle on élimine, du troisième ensemble de pixels, des composantes surnuméraires, pour obtenir un quatrième ensemble de pixels de l'image représentant des motifs. Procédé selon l'une des revendications précédentes comprenant l'étape préalable de nettoyer l'image avec des filtres morphologiques. A method as claimed in claim 4, including a step of eliminating from the third set of pixels supernumerary components to obtain a fourth set of pixels of the image representing patterns. Method according to one of the preceding claims comprising the prior step of cleaning the image with morphological filters.
EP16742345.8A 2015-06-29 2016-06-28 Method of image segmentation Withdrawn EP3314573A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
FR1556080A FR3038110B1 (en) 2015-06-29 2015-06-29 IMAGE SEGMENTATION METHOD
PCT/FR2016/051599 WO2017001765A1 (en) 2015-06-29 2016-06-28 Method of image segmentation

Publications (1)

Publication Number Publication Date
EP3314573A1 true EP3314573A1 (en) 2018-05-02

Family

ID=54329697

Family Applications (1)

Application Number Title Priority Date Filing Date
EP16742345.8A Withdrawn EP3314573A1 (en) 2015-06-29 2016-06-28 Method of image segmentation

Country Status (5)

Country Link
US (1) US20180197293A1 (en)
EP (1) EP3314573A1 (en)
CN (1) CN107851317A (en)
FR (1) FR3038110B1 (en)
WO (1) WO2017001765A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110148149B (en) * 2019-05-20 2024-01-30 哈尔滨工业大学(威海) Hot wake segmentation method of underwater vehicle based on local contrast accumulation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369956B2 (en) * 2005-10-25 2008-05-06 Commercial Time Sharing, Inc. System for testing tire sidewall irregularities and related methods
FR2959046B1 (en) * 2010-04-19 2012-06-15 Michelin Soc Tech METHOD FOR CONTROLLING THE APPEARANCE OF THE SURFACE OF A TIRE
FR2974219A1 (en) * 2011-04-18 2012-10-19 Michelin Soc Tech ANALYSIS OF THE DIGITAL IMAGE OF THE OUTER SURFACE OF A TIRE - TREATMENT OF MISCONCEPTION POINTS
FR2975524B1 (en) * 2011-05-19 2013-05-17 Michelin Soc Tech METHOD OF DETERMINING THE RELIEF MARKINGS PRESENT ON THE OUTER SURFACE OF THE FLANK OF A TIRE
FR2975523B1 (en) * 2011-05-19 2015-09-25 Michelin Soc Tech METHOD FOR DETERMINING RELIEF ELEMENTS ON THE SURFACE OF A TIRE
JP5956782B2 (en) * 2011-05-26 2016-07-27 キヤノン株式会社 Imaging device and imaging apparatus

Also Published As

Publication number Publication date
CN107851317A (en) 2018-03-27
US20180197293A1 (en) 2018-07-12
FR3038110B1 (en) 2017-08-11
FR3038110A1 (en) 2016-12-30
WO2017001765A1 (en) 2017-01-05

Similar Documents

Publication Publication Date Title
EP2710555B1 (en) Method for determining elements in relief on the surface of a tyre
BE1017547A6 (en) COMPRESSION OF DIGITAL IMAGES OF SCANNED DOCUMENTS.
EP1523731B1 (en) Method for processing an image acquired through a guide consisting of a plurality of optical fibers
EP2710552B1 (en) Method for determining markings in relief on the outer surface of the sidewall of a tyre
EP0054596A1 (en) Process for inspecting and automatically classifying objects presenting configurations with dimensional tolerances and variable rejecting criteria depending on placement, apparatus and circuits therefor
Ružić et al. Virtual restoration of the Ghent Altarpiece using crack detection and inpainting
WO2008145859A2 (en) Card-counting device
WO2017001766A1 (en) Method of image segmentation
EP3314573A1 (en) Method of image segmentation
EP0769760B1 (en) Method of automatically detecting evaluation zones in images of mechanical parts
FR2870969A1 (en) DEVICE, METHOD AND PROGRAM FOR REMOVING PORES
EP1129432B1 (en) Method for comparing recorded pixel images representing equipotential lines of at least an integrated circuit chip
WO2015091518A1 (en) Method, device and system for image correction processing
Barbu Novel variational technique for mixed Poisson-Gaussian noise filtering
EP3175428A1 (en) Method for extracting non-periodical patterns masked by periodical patterns, and device implementing the method
EP3400576B1 (en) Method for the graphics processing of images
Rajal An approach for image enhancement using fuzzy inference system for noisy image
Kupidura et al. The morphological filtering of the remote sensing images for the noise reduction comparing to traditional filters
FR3059128A1 (en) METHOD FOR CHARACTERIZING THE ANISOTROPY OF THE TEXTURE OF A DIGITAL IMAGE
Perfilieva et al. Classification of damages on jewelry stones: Preprocessing
Cho et al. Edge-preserving denoising method using variation approach and gradient distribution
WO2020025625A1 (en) Analysis of defects of at least one type from among a plurality of types of defects between at least two samples
FR2705005A1 (en) Device for segmenting images composed of textures from digital signals representing the said images
Thinning Best-Fit Segmentation Created Using
FR3082980A1 (en) METHOD FOR INCREASING THE RESOLUTION OF AN IMAGE

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20180129

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

AX Request for extension of the european patent

Extension state: BA ME

RIN1 Information on inventor provided before grant (corrected)

Inventor name: BILODEAU, MICHEL

Inventor name: CHAUSSARD, JOHN

Inventor name: ARVIS, VINCENT

DAV Request for validation of the european patent (deleted)
DAX Request for extension of the european patent (deleted)
RAP1 Party data changed (applicant data changed or rights of an application transferred)

Owner name: COMPAGNIE GENERALE DES ETABLISSEMENTS MICHELIN

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 20200103