Abstract:
The invention provides an apparatus, and related method, for providing a procedure to analyze images based on two-dimensional shape primitives. In the procedure, an object representation is created automatically from an image and then this representation is applied to another image for the purpose of object recognition. The features used for the representation are the two type of two-dimensional shape primitives: local line segments and vertices. Furthermore, the creation of object representations is extended to sequences of images, which is especially needed for complex scenes in which, for example, the object is presented in front of a structured background.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to automatic image analysis, and more particularly, to automatic object recognition in images and image sequences based on two-dimensional shape primatives. The invention is advantageous for image analysis and object recognition for complex scenes in which an object is presented in front of a structured background. 
     Typical automatic manufacturing controls and especially robot arm controls generally fail to provide adequate automatic adaptation to new materials introduced into an industrial process. Generally, any details and possible situations of the process must be regarded and implemented beforehand. To overcome such a precise constructions and to overcome the restriction to the number of materials for which the process has been constructed, materials—or more generally speaking, objects—must be treated in a sophisticated way. Accordingly, the representations of new objects must be created automatically so that they can be recognized at any place in the manufacturing process. Such an automation may also improve other kinds of applications, such as e.g. the automatic organization of a warehouse. 
     Existing algorithms (see, e.g., Martin Lades, Jan C. Vorbrüggen, Joachim Buhmann, Jörg Lange, Christoph v.d. Malsburg, Rolf P. Würtz, and Wolfgang Konen, “Distortion invariant object recognition in the dynamic link architecture”,  IEEE Trans. Comput.,  42(3):300 311, 1993, and Laurenz Wiskott, Jean-Marc Fellous, Norbert Krüiger, and Christoph von der Malsburg, “Face recognition by elastic bunch graph matching”,  IEEE - PA MI,  19(7):775-779, 1997) allow for automatic recognition of objects but have the following two drawbacks: first, such algorithms work most properly for objects containing much texture but less well for manmade objects, because these kind of objects mainly consist of edges and need a good description of their contour in most cases. Second, the representation is not created automatically, i.e., the locations within an image which shall be used for the representation have to be defined by hand. 
     Accordingly, there exists a definite need for automatic image analysis techniques that can automatically generate representations for new objects for recognition in a variety of industrial manufacturing processes and environments. The present invention satisfies these needs and provides further related advantages. 
     SUMMARY OF THE INVENTION 
     The invention provides an apparatus, and related method, for providing a procedure to analyze images based on two-dimensional shape primitives. In the procedure, an object representation is created automatically from an image and then this representation is applied to another image for the purpose of object recognition. The features used for the representation are the two types of two-dimensional shape primitives: local line segments and vertices. Furthermore, the creation of object representations is extended to sequences of images, which is especially needed for complex scenes in which, for example, the object is presented in front of a structured background. 
     Other features and advantages of the present invention should become apparent from the following description of the preferred embodiments, taken in conjunction with the accompanying drawings, which illustrate, by way of example, the principles of the invention. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a flow chart of a process for creation of an object representation by one-shot learning, according to the present invention. 
     FIG. 2 is a flow chart of a process for recognition of an object represented by two-dimensional shape primitives using elastic graph matching, according to the present invention. 
     FIG. 3 is a flow chart of a process for creation of an object representation by iterative learning, according to the present invention. 
     FIG. 4 is a flow chart of a process for extraction of local line segments from an image, according to the present invention. 
     FIG. 5 a  is an image of a banana wavelet. 
     FIG. 5 b  is an image showing a path corresponding to the wavelet of FIG. 5 a.    
     FIG. 5 c  is an image showing a visualization of a representation of an object class based on banana wavelets, according to the present invention. 
     FIG. 6 is an image of a person&#39;s face. 
     FIG. 7 shows eight images of the real part of kernels for filtering images with banana wavelets, according to the present invention. 
     FIG. 8 shows eight images of the magnitude of filter responses for the eight filters of FIG. 7, respectively, applied to the image of FIG. 6, according to the present invention. 
     FIG. 9 shows eight images of normalized transformations of the eight filter response images of FIG.  8 . 
     FIG. 10 is a flow chart of a process for extraction of vertices from an image, according to the present invention. 
     FIG. 11 is a flow chart of a process for identification of a vertex in an image, according to the present invention. 
     FIG. 12 a  is an image showing vertex detection and identification for a homogeneously illuminated wooden brick. 
     FIG. 12 b  is an image showing -vertex detection and identification for a wooden brick illuminated by a spot light. 
     FIG. 12 c  is an image showing vertex detection and identification for a piano. 
     FIG. 13 a  is an image showing creation of an object representation using a graph in the form of a rectangular grid restricted to a certain region of the image. 
     FIG. 13 b  is an image showing line segments for visualizing the line segments associated with the node of the graph of FIG. 13 a.   
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     The invention relates to the automatic creation of an object representation in accordance with the process shown in FIG. 1. A greylevel image (or the intensity image computed from a color image) is taken as input. From this image, a feature type two dimensional shape primitive is extracted. Two peculiarities of this feature type may include local line segments and vertices. Local line segments are straight or curved lines of small extent; vertices are junctions of line segments. Vertices can be corners (symbolized by the character L) or more complex ones which have a shape similar to the characters T, Y, X, or K, or consist of even more edges which ‘meet’ at a certain location. The feature extraction leads to a set of two-dimensional shape primitives, containing location and parameters of the feature (e.g., direction of the line) for every two-dimensional shape primitive. As only those features which appear saliently in the image are part of the set, the set as such is a representation of the object presented in the image. In a further step, the object is represented in a more sophisticated manner by the help of an undirected graph. The nodes of the graph are labeled with the detected features and the edges of the graph are labeled with the distance vectors between the features. Since the object representation is created from a single image, it is referred to as one-shot learning in the following. 
     After the object representation has been created automatically, it can be applied to be recognized in another image by the algorithm Elastic Graph Matching (EGM) described in Laurenz Wiskott, Jean-Marc Fellous, Norbert Krüiger, and Christoph von der Malsburg, “Face recognition by elastic bunch graph matching”,  IEEE - PA MI,  19(7):775-779, 1997; and Martin Lades, Jan C. Vorbrüggen, Joachim Buhmann, Jörg Lange, Christoph v.d. Malsburg, Rolf P. Wüirtz, and Wolfgang Konen, “Distortion invariant object recognition in the dynamic link architecture”,  IEEE Trans. Comput.,  42(3):300 311, 1993 (see FIG.  2 ). This algorithm is based on the computation of the similarity between a feature given at a node of a graph and a feature extracted at some location in the image. Therefore such similarity functions are defined for both local line segments and vertices in this invention. The result of EGM is the location of the object in the image and furthermore the locations of the nodes of the graph. If not only one but a set of object representations is given EGM computes which object fits best to the object given in the image. The process according to the invention also contains an improvement on one-shot learning. In the case that the object is presented in a complex scene (e.g., in front of a structured background or/and illuminated by a spotlight, etc.), the object representation created by one-shot learning will contain ‘unwanted’ features (e.g., features referring to the background or/and the shades of the illumination). In such a case the object representation can be learning from a sequence of images in which the object remains unchanged but the scene (e.g., background or/and illumination) changes (see FIG.  3 ). This so-called iterative learning detects reliable features of the object. 
     This section describes how the two peculiarities local line segment and vertex of the feature type two-dimensional shape primitive are extracted from a gray-level image (or the intensity image computed from a color image). 
     The extraction of local line segments consists of following three steps (see FIG.  4 ): First, the given image is convolved with a set of generalized Gabor filters called banana filters. The magnitudes of these complex-valued responses are taken as input for the next step. There exists a vector of resulting values at every pixel position, one coefficient for every filter of the set of filters. Second, the resulting values are normalized. Third, the normalized values are sparsified by, roughly speaking, computing local maxima. Since these local maxima are the output of this step, the output only contains values at some and not at all pixel locations. Thus, the output is a set of local line segments described by their confidence, their location and the attributes frequency, orientation, curvature, and elongation. After two definitions the algorithm is explained in detail in the following: 
     The basic features of the object recognition system are Gabor wavelets or a generalization of Gabor wavelets, called banana wavelets. A banana wavelet B {right arrow over (b)}  is a complex valued function defined on MR×IR. It is parameterized by a vector {right arrow over (b)} of four variables {right arrow over (b)}=(ƒ, α, c, s) expressing the attributes frequency (ƒ), orientation (α), curvature (c) and elongation (s) (see FIG. 5 a  for an example): 
     
       
           B   {right arrow over (b)} ( x,y )=γ {right arrow over (b)}   ·G{right arrow over (b)} ( x,y )·( F{right arrow over (b)} ( x, y)−   DC   {right arrow over (b)} )  (1) 
       
     
     with the constant DC {right arrow over (b)}  which ensures that the wavelet B {right arrow over (b)}  has a vanishing 0-th Fourier component and 
     
       
           G{right arrow over (b)} ( x,y )=exp(−ƒ 2 /2(σ x   −2 ( x  cos α+ y  sin α+ c (− x  sin α+ y  cos α) 2 ) 2 σ y   −2   s   −2 ((− x  sin α+ y  cos α) 2 )) 
       
     
     and 
     
       
           F   {right arrow over (b)} ( x,y )=exp( i ƒ( x  cos α+ y  sin α+ c (− x  sin α+ y  cos α) 2 ))  (2) 
       
     
     with i={square root over (−1)}. 
     To each banana wavelet B {right arrow over (b)}  there can be defined a curve or path {right arrow over (p)} {right arrow over (b)} , called the curve corresponding to B {right arrow over (b)}  (see FIG. 5 b ). This curve allows the visualization of the learned representation of an object (see FIG. 5 c ). 
     Formally {right arrow over (p)} {right arrow over (b)}  (t) is defined as:                    p   →       b   →            (   t   )       =                (             p   x     b   →            (   t   )                   p   y     b   →            (   t   )             )                   =                (               cos        (       2                 π     -   a     )            (       -     c   f              (     s                   σ   y        t     )     2       )       +       sin        (       2                 π     -   a     )            (       1   f        s                   σ   y        t     )                       -     sin        (       2                 π     -   a     )              (       -     c   f              (     s                   σ   y        t     )     2       )       +       cos        (       2                 π     -   a     )            (       1   f        s                   σ   y        t     )               )            
              with                   t     ∈     [       -   1     ,   1     ]                                    
     and its length L({right arrow over (p)} {right arrow over (b)} ) as                L        (       p   →       b   →       )       :=             ∫     -   1     1            (       ∂       p   x     b   →            (   t   )           ∂   t       )     2       +         (       ∂       p   y     b   →            (   t   )           ∂   t       )     2             t           .             (   3   )                                
     A non-linear transformations in feature space is now described. The magnitudes of the (complex-valued) filter responses for the chosen set of banana filters at every pixel position of the given image is computed by 
     
       
           r ( {right arrow over (c)} )=( AI )( {right arrow over (x)}   0   ,{right arrow over (b)} )=|∫ B   {right arrow over (b)} ( {right arrow over (x)}   0   −{right arrow over (x)} ) I ( {right arrow over (x)} ) d{right arrow over (x)} |=|( B   {right arrow over (b)}   *I )·( {right arrow over (x)}   0 )| 
       
     
     with the magnitude of the filter response B {right arrow over (b)}  at pixel position {right arrow over (x)} 0  in image I (or, in other words, the filter response corresponding to {right arrow over (c)}=({right arrow over (x)} 0 , {right arrow over (b)})). A filter B {right arrow over (b)}  causes a strong response at pixel position {right arrow over (x)} 0  when the local structure of the image at that pixel position is similar to B {right arrow over (b)} . FIG. 8 shows the magnitude of the responses of the banana filters in FIG. 7 applied to the image in FIG.  6 . 
     The magnitude of the filter responses depends significantly on the strength of edges in the image. However, here we are only interested in the presence and not in the strength of edges. Thus, in a second step a function ƒ norm ( . . . ) normalizes the real valued filter responses r({right arrow over (c)})into the interval [0, 1] (FIG. 9 shows the normalized transformation). The value ƒ norm  ({right arrow over (c)}) represents the likelihood of the presence or absence of a local line segment corresponding to {right arrow over (c)}=({right arrow over (x)} 0 , {right arrow over (b)}). This normalization is based on the “Above Average Criterion” AAC: a line segment corresponding to the banana wavelet c is present if the corresponding banana wavelet response is distinctly above the average response. 
     More formally, an average response is defined by considering the average response in the complete feature space and also in a local area of the feature space. Therefore, a global and a local normalization are performed. 
     A mean total response is defined as E local ({right arrow over (x)} 0 , ƒ 0 , I) for the ƒ 0 -th level at pixel position {right arrow over (x)} 0  and the mean total response for the ƒ 0 -th level E total  (ƒ 0 ) of the banana space by 
       E   local ( {right arrow over (x)}   0 , ƒ 0   I ):=&lt; r ( {right arrow over (x)},{right arrow over (b)} )&gt; {{right arrow over (x)}∈I,{right arrow over (b)}∈B,I=ƒ0}   
     and 
     
       
           E   total (ƒ 0 ):=&lt; r ( {right arrow over (x)},{right arrow over (b)} )&gt; {{right arrow over (x)}∈I,{right arrow over (b)}∈B,I=ƒ0}   
       
     
     where A({right arrow over (x)} 0 , r E ) represents the cuboid square with center {right arrow over (x)} 0  and edge length r E  in the (x, y) space. I represents a set of arbitrary natural images and B is the full set of discrete banana wavelets at one pixel position. The average response E(I, {right arrow over (x)} 0 ) is defined as          E        (         x   →     0     ,     f   o     ,   I     )       :=             E   total          (     f   0     )       +       E   local          (         x   →     0     ,     f   o     ,   I     )         2     .                            
     The function E({right arrow over (x)} 0 , ƒ 0 , I) has high values when there is structure in the local area around {right arrow over (x)} 0 . 
     The sigmoid function 
     
       
         
           
             
               
                 
                   
                     
                       f 
                       norm 
                     
                      
                     
                       ( 
                       
                         
                           t 
                           ; 
                           
                             
                               x 
                               → 
                             
                             0 
                           
                         
                         , 
                         
                           f 
                           o 
                         
                       
                       ) 
                     
                   
                   = 
                   
                     
                       
                         f 
                         norm 
                       
                        
                       
                         ( 
                         
                           
                             t 
                             ; 
                             
                               
                                 x 
                                 → 
                               
                               0 
                             
                           
                           , 
                           
                             f 
                             o 
                           
                           , 
                           I 
                         
                         ) 
                       
                     
                     = 
                     
                       
                         1 
                         2 
                       
                        
                       
                         ( 
                         
                           ( 
                           
                             
                               tan 
                                
                               
                                   
                               
                                
                               
                                 h 
                                  
                                 
                                   ( 
                                   
                                     
                                       
                                         1 
                                         
                                           
                                             θ 
                                             2 
                                           
                                            
                                           
                                             E 
                                              
                                             
                                               ( 
                                               
                                                 
                                                   
                                                     x 
                                                     → 
                                                   
                                                   0 
                                                 
                                                 , 
                                                 
                                                   f 
                                                   o 
                                                 
                                                 , 
                                                 I 
                                               
                                               ) 
                                             
                                           
                                         
                                       
                                        
                                       
                                         
                                           ( 
                                           
                                             1 
                                             - 
                                             
                                               
                                                 
                                                   θ 
                                                   1 
                                                 
                                                 + 
                                                 
                                                   θ 
                                                   2 
                                                 
                                               
                                               
                                                 
                                                   θ 
                                                   1 
                                                 
                                                 - 
                                                 
                                                   θ 
                                                   2 
                                                 
                                               
                                             
                                           
                                           ) 
                                         
                                         · 
                                         t 
                                       
                                     
                                     + 
                                     
                                       
                                         
                                           θ 
                                           1 
                                         
                                         + 
                                         
                                           θ 
                                           2 
                                         
                                       
                                       
                                         
                                           θ 
                                           1 
                                         
                                         - 
                                         
                                           θ 
                                           2 
                                         
                                       
                                     
                                   
                                   ) 
                                 
                               
                             
                             + 
                             1 
                           
                           ) 
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   4 
                   ) 
                 
               
             
           
         
                 
         
             
         
      
     
     is the final normalization function. The normalization function starts to increase for values larger than θ 1  E (I, ƒ 0 , {right arrow over (x)} 0 ) and becomes almost flat for values higher than θ 2  E(I,ƒ 0 , {right arrow over (x)} 0 ). 
     The value ƒ norm  (r({right arrow over (c)})) represents the system&#39;s confidence of the presence of the feature {right arrow over (b)} at position {right arrow over (x)} 0 . This confidence is high when the response exceeds the average activity significantly. The exact value of the response is not of interest. However, a range of indecision of the system when the response is only slightly above the average activity is still allowed to avoid a very strict decision at this stage. 
     In the sparsification step the transformation is reduced to a small set of filter responses with positive values, all other filter responses are set to zero. For each frequency level ƒ 0  the transformed image is divided in space-orientation bins β(x, y, ƒ 0 , α). The width w s  of a bin in the space-dimensions depends on the length of the path L ({right arrow over (p)} {right arrow over (b)} ) with {right arrow over (b)}=(ƒ 0 , c(0),0) and the width in the orientation domain is w 0 =2π/n 0 , where n 0  is the number of orientation bins for fixed (x, y). 
     For each bin β(x, y , ƒ 0 , α) let {right arrow over (c)} β(x, y, ƒ0, α)  be the index of the filter response which is maximum within the bin and let this maximum response be given by m β(x, y, ƒ0, α) . To avoid that similar features occur within the sparsified transformation for each {right arrow over (c)} β(x, y, ƒ0, α)  the distance to the index corresponding to the maxima of n neighboring bins is checked. If d({right arrow over (c)} β(x, y, ƒ0,α) , {right arrow over (c)} β(x, y, ƒ0,α) )&lt;δ(the metric d is defined in eq. (79)) for a neighboring bin one of the responses corresponding to the two indices is set to zero: in case of m β     (x, y, ƒ0, α)   &gt;m′ β     (x, y, ƒ0, α)    it is m′ β     (x, y, ƒ0, α)    set to zero, otherwise m β     (x, y, ƒ0, α)   :=0. All values of the sparsified transformation are set to zero except the values corresponding to the indices of found maxima. These are set to the corresponding maxima values. The sparsified values are referred to as S ({right arrow over (c)}). 
     The output of this final step of the extraction is a set U of those local line segments whose sparsified response S({right arrow over (c)}) is larger than the threshold Θ. S({right arrow over (c)}) can be interpreted as a confidence value of the feature in question. Every local line segment u μ  of this set is represented by the coefficients of {right arrow over (c)} (i.e., its location (x, y) and its attributes {right arrow over (b)}=(ƒ, α, c, s) (see (L0))) and by the response S({right arrow over (c)}). 
     
       
           u   μ =( {right arrow over (c)}; S ( {right arrow over (c)} )).  (5) 
       
     
     The set is 
     
       
           U={u   0   , u   1   , . . . , u   N−1 }  (6) 
       
     
     where N is the number of elements in the set. 
     A typical choice of all the parameters referring to the transformation and the banana space needed for the extraction of local line segments is given in table 1. 
     
       
         
               
             
               
               
             
               
               
               
               
             
           
               
                 TABLE 1 
               
             
             
               
                   
               
               
                 Standard Settings. 
               
             
          
           
               
                   
                 Banana 
               
               
                 Transformation 
                 space 
               
               
                   
               
             
          
           
               
                 number levels n l  = 3 
                 freq. f = f max f l   s   
                 f max  = 2π 
                 e x  = 4 
               
               
                 number orientations n 0  = 8 
                   
                 f s  = 0.8 
                 e y  = 4 
               
               
                 number bendings n b  = 5 
                 max. curvature 
                 c max  = 1.3 
                 e f  = 0.01 
               
               
                 number elongations n e  = 2 
                   
                   
                 e a  = 0.3 
               
               
                 σ x-direction σ x  = 1.0 
                   
                   
                 e c  = 0.4 
               
               
                 σ y-direction σ y  = 1.0 
                   
                   
                 e s  = 3.0 
               
               
                   
               
               
                 Columns 1, 2: Parameters of transformation.  
               
               
                 Column 3: Metric of the feature space.  
               
             
          
         
       
     
     Typical values for the other parameters are 
     
       
         Θ=0.7  (7) 
       
     
     
       
         θ 1 =1.3  (8) 
       
     
     
       
         θ 2 =2.7  (9) 
       
     
     
       
           n   0 =2.  (10) 
       
     
     The extraction of vertices from an image I is done in two steps, first detection and then identification. The detection is done by a standard algorithm, such as: Rolf P. Würtz and Tino Lourens. “Corner detection in color images by multiscale combination of end-stopped cortical cells”, In  Proceedings of the ICANN  1997, 1997. (this algorithm is based on end-stopped cells), and results in a set of vertex locations 
     
       
         {{right arrow over (x)} 0 , {right arrow over (x)} 1 , . . . , {right arrow over (x)} μ , . . . , {right arrow over (x)} N−1 }  (11) 
       
     
     where N is the number of detected locations. In a second step, the directions of the edges of every detected vertex are determined. In addition, a confidence value c is computed for every edge. Thus, a vertex is defined by its location {right arrow over (x)} and a set of N edges   (μ)  edges. Every edge j is given by its direction α j  and its confidence c j . Thus the μ-th vertex ν μ reads 
     
       
         ν μ =( {right arrow over (x)}   μ ;{(α j   (μ)   ,c   j   (μ) )})  (12) 
       
     
     with j=0,1, . . . ,(N edges   μ −1). The resulting set of vertices is 
     
       
           V={ν   0 , ν 1 , . . . , ν N−1 }.   (13) 
       
     
     For simplification the index μ is dropped in the following equations, because they only refer to one single vertex, and thus a vertex simply reads 
     
       
         ν=( {right arrow over (x)} ;{(α j   ,c   j )}).  (14) 
       
     
     FIGS. 12 a - 12   c  shows some examples of vertices detected and identified from images. The length of the lines indicates the confidence of the corresponding vertex edge. On a wooden brick illuminated by a spot light (FIG. 12 b ), the left vertical edge of the brick (see left arrow) has not been detected because the gray value of the background and that of the corresponding plane of the brick are equal. Also, an accidental vertex is detected (see right arrow). 
     The process of the invention is next directed to applying banana filters located on a surrounding circle: To determine the edges of a vertex, responses of uncurved banana filters (see eqn. (1)) or Gabor filters (which are a certain type of banana filters with c=0 and σ x =σ y  in eqn. (1)) in the region surrounding the detected location {right arrow over (x)} are considered. Only the filters referring to one frequence level ƒ are taken into consideration. The responses are taken from a set of n points {right arrow over (p)} i  located on the arc of a circle of radius r centered at {right arrow over (x)}                   p   →     i     =         x   →     +       r        (           cos                   φ   i                 sin                   φ   i             )                       with                     φ   i         =     2                 π        i   n           ,                i   ∈     {     0   ,   1   ,   …              ,     n   -   1       }               (   15   )                                
     The angle φ i  determines the banana filter taken at point {right arrow over (p)} i  in the following way: the orientation of the frequency of the filter is φ i π/2 or, if not available in the applied set of filters, that direction which is closest to it. The response of the filters corresponding to the points are computed and the magnitudes m′ i  of the complex-valued filter responses are compiled in a vector 
     
       
           {right arrow over (m)} =( m′   0   , m   1 , . . . , m′ n−1 ) T   (16) 
       
     
     The coefficients in the vector {right arrow over (m)}′ of the filter responses are smoothed by a Gaussian defined by                g   j     =       1     β   g            exp        (     -         (     j   -     n   /   2       )     2       2                   σ   smooth   2           )                 (   17   )                                
     where β g  is chosen such that Σ j=0   n−1 g i =1. The smoothed vector coefficients m i  are computed by 
     
       
         {right arrow over (C)}  (18) 
       
     
     where mod means modulo. 
     Since the vector {right arrow over (m)} refers to a circular arc the vector is treated under wrap around condition in the following computations (i.e., m n  equals m o , m n , equals m o , etc., and m −1  equals m n−1 , etc.). 
     The next step for estimating an edge direction is to find local maxima in {right arrow over (m)}. The resulting set of indices of local maxima is 
     
       
           L={i|m   i&gt; m i−q   Λm   i   &gt;m   i+q   Λm   i ≧Θ edge ∀   i∈{ 0 , . . . , n− 1}  (19) 
       
     
     with q ∈ {1,2, . . . , n/2}. Those local maxima which are lower than the threshold Θ edge  are dropped. The angle ø i  corresponding to a local maximum is interpreted as the direction α of an edge and the value m i  as the confidence c, thus the considered vertex is identified as 
     
       
         ν=( {right arrow over (x)} ;{(ø i   , m   i ) | i ∈L })  (20) 
       
     
     at this stage of processing. 
     The precision of the direction of every edge can be increased by considering the magnitudes of those directions which are near to the direction φ i  of the local maximum. Thereby that index i −  with i − &lt;i is determined which is closest to i and whose value m i−  fulfills m i− &lt;(1−λ)m i  with a small value λ&gt;0 (e.g., λ=0.1). The same procedure is done for i +  +with i + &gt;i. The resulting values i −  and i +  allow to compute a second estimate of the direction of the vertex edge: (ø i− .+ø i+ )/2. This procedure can be done for several values λ l (l ∈{0,1, . . . , n λ −1}), so that the resulting direction of the vertex edge is computable by:                α   k     =       1       n   λ     +   1              (       φ   i     +       ∑     l   =   0         n   λ     -   1                φ     l   ,     i   -         +     φ     l   ,     i   +           2         )     .               (   21   )                                
     Such an improved angle α i  is computed for every i ∈L So that the vertex is identified as 
     
       
         ν=( {right arrow over (x)} ;{(α i   ,m   i )| i∈L})   (22) 
       
     
     at this stage of processing. 
     The estimation of edges may be improved by considering the surrounding of a vertex. The identification of the edges of a vertex can be improved (a) by considering several circles with different radii r l  instead of only one, (b) by considering different frequency levels of banana filters at one circle, or (c) by a combination of both variations (a) and (b). One certain choice of radii r l  and frequency levels k l  is to adapt the radius to the size of the banana filters in a way which can be described as “the smaller the filter the smaller the radius”: 
     
       
         ƒ l=ƒ     myλ   ·ƒ s   l   (23) 
       
     
     
       
         r l =μ 1 /ƒ l , μ&gt;0.  (24) 
       
     
     For every combination l (l ∈{0,1, . . . , N l −1}) of the frequency ƒ l  and the radius r l , there exists a resulting vertex description 
     
       
         ν (l) =( {right arrow over (x)} ; {(α i   (l)   ,m   i   (l) )| i ∈L   (L) }).  (25) 
       
     
     To restrict to salient edges and to get rid of possible edges referring to noise, only those edges are considered which have at least N neighbour  neighbours at other combinations l. Two edges are considered as neighbours if they have similar angles. The estimation of the angle of an edge is improved by computing the mean angle of all neighbours. The confidence is also improved by computing the mean value. 
     The formal description is based on the distance ƒ |Δ| (α, β) between two angles. ƒ |Δ| (α, β) is defined such that it takes the one-dimensional circular space of angles into consideration (e.g., the distance of the angles 0.1·2π and 0.9·2π will be 0.2·2π and not 0.8·2π): 
     
       
         
           
             
               
                 
                   
                     f 
                      
                     
                         
                     
                      
                     
                       Δ 
                        
                       
                         ( 
                         
                           α 
                           , 
                           β 
                         
                         ) 
                       
                     
                   
                   = 
                   
                     { 
                     
                       
                         
                           
                             α 
                             - 
                             β 
                           
                         
                         
                           
                             
                               if 
                                
                               
                                   
                               
                               - 
                               π 
                             
                             &lt; 
                             
                               α 
                               - 
                               β 
                             
                             ≤ 
                             π 
                           
                         
                       
                       
                         
                           
                             α 
                             - 
                             β 
                             - 
                             
                               2 
                                
                               π 
                             
                           
                         
                         
                           
                             
                               if 
                                
                               
                                 
                                     
                                 
                                  
                                 
                                     
                                 
                               
                                
                               π 
                             
                             &lt; 
                             
                               α 
                               - 
                               β 
                             
                           
                         
                       
                       
                         
                           
                             α 
                             - 
                             β 
                             + 
                             
                               2 
                                
                               π 
                             
                           
                         
                         
                           
                             
                               
                                 if 
                                  
                                 
                                     
                                 
                                  
                                 α 
                               
                               - 
                               β 
                             
                             ≤ 
                             
                               - 
                               π 
                             
                           
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   26 
                   ) 
                 
               
             
             
               
                 
                   
                     
                       f 
                       
                          
                         Δ 
                          
                       
                     
                      
                     
                       ( 
                       
                         α 
                         , 
                         β 
                       
                       ) 
                     
                   
                   = 
                   
                     min 
                      
                     
                       
                         { 
                         
                           
                              
                             
                               
                                 f 
                                 Δ 
                               
                                
                               
                                 ( 
                                 
                                   α 
                                   , 
                                   β 
                                 
                                 ) 
                               
                             
                              
                           
                           , 
                           
                              
                             
                               
                                 f 
                                 Δ 
                               
                                
                               
                                 ( 
                                 
                                   β 
                                   , 
                                   α 
                                 
                                 ) 
                               
                             
                              
                           
                         
                         } 
                       
                       . 
                     
                   
                 
               
               
                 
                   ( 
                   27 
                   ) 
                 
               
             
           
         
                 
         
             
         
      
     
     The set of neighbours of ε i   (l)  of the edge (α i   (l) , m i   (l) ) is determined by 
     
       
         ε i   (l) ={(α i′   (l′)   , m   i′   (l′) )|ƒ |Δ| (α i′   (l) , α i   (l′) ) &lt;Θ Δα   ∀t′≠l ∀i′∈L   (l′)   (28) 
       
     
     with Θ Δα ∈ [0, π]. A corresponding mean edge ({overscore (α)} i   (l) , {overscore (m)} i   (l) ) is computed from the considered edge and its neighbours by                  α   _     i     (   l   )       =       α   i     (   l   )       +       1            ɛ   i     (   l   )            +   1       ·       ∑       (       α   ′     ,     m   ′       )     ∈     ɛ   i     (   l   )                           f                   Δ        (       a   i     (   l   )       ,     α   ′       )                       (   29   )                   m   _     i     (   l   )       +       1            ɛ   i     (   l   )            +   1            (       m   i     (   l   )       +       ∑       (       α   ′     ,     m   ′       )     ∈     ɛ   i     (   l   )                m   ′         )               (   30   )                                
     where |ε i   (l) | is the number of neighbours. 
     The set of improved edges ε′ only contains those edges, as already mentioned, which have at least N neighbour  neighbours at other combinations l 
     
       
         ε′={({overscore (α)} (l)   , {overscore (m)}   i   (l) )| |ε 1   (l)   |≧N   neighbour   ∀l∈{ 0 , . . . , N   1 −1 }∀i∈L   (l) .  (31) 
       
     
     This set is likely to contain edges which are quite similar or even identical to another edge of this set because every combination l contributes edges to the set. Thus, in a last step, the final set ε of improved edges is computed from ε′ by copying one edge after the other from ε′ to ε and dropping all those edges whose angle has a smaller distance than Θ Δα  to the angle of an edge which has already been copied. (The distance is, of course, measured by ƒ |Δ| )·) 
     Thus the resulting identification of a vertex reads 
     
       
         ν=( {right arrow over (x)} ;ε)  (32) 
       
     
     A typical choice of all the parameters needed for the extraction of vertices is the following one: The banana trafo is 
     
       
           n   l =4  (33) 
       
     
     
       
           n   o =16  (34) 
       
     
     
       
           n   b =1  (35) 
       
     
     
       
           n   e =1  (36) 
       
     
     
       
         ƒ max =π/2  (37) 
       
     
     
       
         ƒ s =π/4  (38) 
       
     
     
       
         σ x =2  (39) 
       
     
     
       
         σ y =2  (40) 
       
     
     
       
            (41) 
       
     
     and all the other parameters are 
     
       
           n= 100  (42) 
       
     
                     σ   smooth     =     n   ·     5   360               (   43   )                                q= 3  (44) 
     
       
         Θ edge =0.05  (45) 
       
     
     
       
           n   λ =3  (46) 
       
     
     
       
         λ 0 =0.1  (47) 
       
     
     
       
         λ 1 =0.2  (48) 
       
     
     
       
         λ 2 =0.3  (49) 
       
     
      μ=2.5  (50) 
     
       
         Θ Δα =0.35  (51) 
       
     
     
       
           N   neighbour =1  (52) 
       
     
     The advantage of this special feature type, the 2-dimensional shape primitives, is that its features do not appear at all pixels in the image but rather at insular and significant locations. This makes possible to learn a representation of an object in “one shot” without specifying the locations by hand as it is needed, for instance, in the approaches presented in Martin Lades, Jan C. Vorbrüggen, Joachim Buhmann, Jörg Lange, Christoph v.d. Malsburg, Rolf P. Würtz, and Wolfgang Konen, “Distortion invariant object recognition in the dynamic link architecture”,  IEEE Trans. Comput,  42(3):300 311, 1993., and Laurenz Wiskott, Jean-Marc Fellous, Norbert Krüger, and Christoph von der Malsburg, “Face recognition by elastic bunch graph matching”,  IEEE - PA MI,  19(7):775-779, 1997. To avoid unwanted features in the representation homogenous background and illumination is advisable. For the creation of a representation of an object in front of a structured background and under more extreme illuminations an iterative learning algorithm is given in the next section. 
     One-shot learning of an object representation is based on the set of extracted features; U for local line segments and V for vertices (see eqns. (6) and (13), respectively). To create an object representation, this set is represented by a graph. This allows to apply elastic graph matching for object recognition (described below). The nodes of the graph are labeled with the features and the edges of the graph are labeled with distance vectors to store the spatial distance between the nodes. 
     There exist two ways to create a graph from the set of features: First, a graph is created in the way that for every feature in the set a separate node is used, so that every node is labeled with only one feature. To create the edges of the graph, the nodes are located in a two dimensional space at the positions given by the features labeled at the nodes. Now, edges are created either as a minimum spanning tree or as a triangulation. Every resulting edge is labeled with a distance vector computed from the positions of the two nodes the edge in question connects. 
     Second, a rectangular grid is taken as graph. This grid is of same size as the considered image. It is located on the image whereby every node refers to a certain pixel position. A node of this graph is labeled with all those features the locations of which are closest to this node and not to another one. Thus a node can contain more than one feature, or also no feature. 
     In case there exists information about the position and size of the object within the image only those features are taken which refer to the given region, and if a grid graphs is used it is restricted to this region (see FIGS. 13 a  and  13   b ). 
     If local line segments and vertices are used simultaneously the resulting graph contains nodes labeled with local line segments, nodes labels with vertices, and also nodes labeled with both types of features. 
     A typical parameter choice of the distance of adjacent nodes in a grid graph is 11 pixels. 
     Iterative learning of an object representation may use a feature-independent description. A representation learned by one-shot learning may contain features belonging to the background or to shades caused by the illumination. To get rid of these features the reliability of the features can be determinated in a sequence of images. Furthermore, features which are missing in the representation, because of, for instance, abnormal lighting conditions, can be added during the processing of the sequence (see FIG. 12 b ). The following algorithm shows how a reliable object representation can be learned step-by-step on the condition that the object remains at the same location in the sequence and that the background and the illumination varies. 
     The representation consists of a set of features A i  and a confidence value c i  for every feature. Every feature-confidence unit (A i , c i ) is considered as a candidate for the resulting representation. 
     Conditions on the type of feature applied for learning are now defined. For the type of feature applied in this learning process two functions must be defined, 
     1. a distance function d(a,b)≧0, which measures the distance between the two features a and b (identical features lead to the value 0), and 
     2. an adaptation function a′=ƒ adapt (a; b, r). Its resulting feature a′ is the feature a adapted to the second feature b. The extent of the adaptation is given by the value r ∈[0; 1]. This function has to be defined in a way that r=0 leads to a′=a and r=1 leads to a′=b and the values in between allow for a steady transition from a to b. 
     Since only these functions are required, the following interactive learning process is described feature-independent and can be used for all types of features for which these two functions are defined. 
     A description of the iterative learning process is as follows. Assume that a set of candidates (A i (t),c i (t)) is given at the time step t in the sequence (at the beginning, i.e., for t=0, this set is empty). First, the features a j (t) of the current image are computed. Second, for every candidate A i  the closest input feature a j  is determined by the help of the distance function d. Every input feature can only belong to one candidate. (In the case of equal distance to more than one candidate, one of these candidates is chosen at random.) A closed input feature is considered as similar to the corresponding candidate if the distance is smaller than the threshold Θ d (t). Third, the following steps are applied to modify the candidates and their confidences according to the current input features: 
     1. Those candidates which are similar to an input feature are strengthened, i.e., their confidence is increased. Furthermore, the candidate is adapted towards the input feature to a certain extend. 
     
       
           r=ƒ   strengthen ( t,c   i ,( t ))  (53) 
       
     
     
       
           A   i ( t+ 1)=ƒ adapt ( A   i ( t ); a   j ( t ), r )  (54) 
       
     
       c   i ( t +1)=(1−∈ up ( t, c   i ( t )))· c   i ( t )+∈ up ( t, c   i ( t ))·c max   (55) 
     2. Candidates for which no similar input feature is present are weakened, i.e., their confidence is decreased. 
     
       
           c   i ( t+ 1)=(1−∈ down ( t, c   i ( t )))·c i ( t )  (56) 
       
     
     3. All candidates (A i , c i ) the confidence of which are too low are removed. 
     
       
           c   i ( t )&lt;c min ( t )  (57) 
       
     
     4. The set of candidates is enlarged by those input features which are not similar to a candidate. Their confidence is set to an initial value c init (t). This implies that at the beginning of the iterative learning procedure all input features become a candidate. 
     5. If two candidates A i  and A j  are similar, i.e., their confidences fulfill 
     
       
           d ( c   i   c   j )&lt;Θ d ( t );  (58) 
       
     
     these candidates are fused (A i  is modified and A j  is removed): 
     
       
           r=ƒ   fuse   (1) ( t,c   i ( t ), c   i ( t ))  (59) 
       
     
     
       
           A   i ( t+ 1)=ƒ adapt ( A   i ( t );  A   j ( t ), r )  (60) 
       
     
     
       
           c   i ( t +1)=ƒ fuse   (2) ( c   i ( t ), c   j ( t ))  (61) 
       
     
     All these steps are applied at every time step t. 
     An object representation R can be determined and extracted at any point of time in the sequence and, of course, also at the end of the sequence. It is the set of those candidates the confidences of which are higher than a given threshold C reliable (t) ∈[C min (t), C max ] 
     
       
           R ={( A   j   ,c   j )∈ A|c   j   &gt;c   reliable ( t )}  (62) 
       
     
     where A is the set of all candidates (A={(A i c i )}). 
     The following definition of function ƒ strengthen (t,c i (t)) lets a candidate be more and more inert with increasing confidence                  f   strengthen          (     t   ,       c   i          (   t   )         )       =           c   init          (   t   )             c   init          (   t   )       +       c   i          (   t   )           ·             (   63   )                                
     The following definition of function ƒ fuse   (1)   fuse (t, c i (t), c j (t)) leads to a fusion of the candidates i and j in which their confidences are considered as weights                  f   fuse     (   1   )            (     t   ,       c   i          (   t   )       ,       c   j          (   t   )         )       =         c   j          (   t   )             c   j          (   t   )       +       c   i          (   t   )                   (   64   )                                
     The following definition of function ƒ (2) (t,c i (t),c j (t)) chooses the maximum value of both confidences given 
     
       
         ƒ fuse   (2) ( c   i ( t ), c   j ( t ))=max { c   i ( t ) c   j ( t )}  (65) 
       
     
     The simplest reasonable definition of the other functions are constant values: 
     
       
           c   init ( t )= c   init   (66) 
       
     
     
       
           c   min ( t )= c   min   (67) 
       
     
     
       
           c   reliable ( t )= c   reliable   (68) 
       
     
     
       
         ε up ( t,c   i ( t ))=ε up   (69) 
       
     
     
       
         ε down ( t,c   i ( t ))=ε down   (70) 
       
     
     
       
         Θ d ( t )=Θ d   (71) 
       
     
     A typical choice of all the parameters needed for the iterative learning based on the functions given in equations (63)-(71) is the following one: 
     
       
           c   init =0.1  (72) 
       
     
     
       
           c   min =0.099  (73) 
       
     
     
       
           c   reliable =0.3  (74) 
       
     
     
       
         ∈ up =0.04  (75) 
       
     
     
       
         ∈ down =0.01  (76) 
       
     
      Θ d =0.3  (77) 
     Definition of the distance and adaptation function for local line segments is now defined. For the feature type local line segment the distance function is defined in two steps. First a distance measure is defined for the orientation-curvature subspace (α, c) expressing the Moebius topology thereof. Let (e x ,e y ,e ƒ ,e α ,e c ,e s ) define a cube of volume I in the feature space, i.e., the distance function is defined such that the vector (e x ,e y ,e ƒ ,e α ,e c ,e s ) has norm 1. The distance measure for this subspace reads                d        (       (       α   1     ,     c   1       )     ,     (       α   2     ,     c   2       )       )       =     min          {               (       α   1     -     α   2       )     2       e   α   2       +         (       c   1     -     c   2       )     2       e   c   2           ,                        (       (       α   1     -   π     )     -     α   2       )     2       e   α   2       +       (       c   1     +     c   2       )       e   c   2           ,             (       (       α   1     +   π     )     -     α   2       )     2       e   α   2       +         (       c   1     +     c   2       )     2       e   c   2             }     ·               (   78   )                                
     Secondly, a distance measure on the complete coordinate space is defined by                d        (         c   →     1     ,       c   →     2       )       =     (           (       x   1     -     x   2       )     2       e   x   2       +         (       y   1     -     y   2       )     2       e   y   2       +                    (       f   1     -     f   2       )     2       e   f   2       +       d        (       (       α   1     ,     c   1       )     ,     (       α   2     ,     c   2       )       )       2     +         (       s   1     -     s   2       )     2       e   s   2         )       1   /   2       ·                 (   79   )                                
     The parameter (e x ,e y ,e ƒ ,e α ,e c ,e s ) determines the distances in each one-dimensional subspace. A smaller value indicates a stretching of this space. 
     The adaptation function is defined by                  f   adopt          (       a   ;   b     ,   r     )       =       (           x   a               y   a               f   a               α   a               c   a               s   a           )     +     (             x   b     -     x   a                   y   b     -     y   a                   f   b     -     f   a                   (       α   b     -     α   a       )                   mod                                π                 c   b     -     c   a                   s   b     -     s   a             )               (   80   )                                
     where a and b are two features and r∈[0;1]. 
     A typical choice of all the parameters needed for the distance and adaptation function is given in the third column of table 1. 
     The distance and adaptation function for the vertices is now defined. The distance function first finds out which edge of the first vertex belongs to which edge of the second one (every edge can only be ‘used’ once). Based on these pairs of edges and, if there exist some, based on those edges which do not belong to edge-pairs the distance value is computed in the following way: the more similar the directions of the edge-pairs are and the more similar their confidences are the smaller the value of the distance function will be. Edges which do not belong to edge-pairs increase the resulting value. 
     The distance function of two vertices is based on the distance f |Δ| (α,β) between two angles which has been defined in eqn. (27). The first step is to find out which edges of the two considered vertices ν (1)  and ν (2)  belong to each other. Let these two vertices be given as 
     
       
         ν (1)   ={{right arrow over (x)}   (1) ;ε (1) } with ε (1) ={(α i   (1)   ,c   i   (1) )}  (81) 
       
     
     
       
         ν (2)   ={{right arrow over (x)}   (2) ;ε (2) } with ε (2) ={(α i   (2)   ,c   i   (2) )}  (82) 
       
     
     where ε (1)  is the set of edges, described by angle-confidence pairs, of the first vertex; |ε (1) | gives the number of edge-pairs in this set (analog for ε (2)  which refers to the second vertex). These sets may contain a different number of entries. To determine which edge of ν (1)  belongs to which edge in ν (2)  the following procedure is applied: The first edge-pair consists of those two edges which are closest to each other. The second edge-pair is determined in the same way, however, the edges which already belong to the first edge-pair are ignored now. Continue this way until either the first or the second vertex does not contain an ‘unused’ edge any more. The following algorithm shows this procedure more formally. (‘Ø’ means an empty set, ‘:=’ means assignment, ‘angle(e)’ gives the edge direction α of the edge e=(α,c), and ‘A\/B’ means set A without the elements of set B.) 
      {circumflex over (ε)} (1) :=ø 
     
       
         {circumflex over (ε)} (2) :=ø 
       
     
     
       
         
           {circumflex over (P)}:=ø 
         
       
     
     while (ε (1) \{circumflex over (ε)} (1) ≠øΛε (2) \{circumflex over (ε)} (2) ≠ø) 
     begin 
     
       
         ( e,e′ ):=arg min {ƒ |Δ| (angle( e ), angle( e ′)) 
       
     
     
       
           e∈ε   (1) \{circumflex over (ε)} (1)   ,e′∈ε   (2) \{circumflex over (ε)} (2)   
       
     
     
       
           P:=P∪{ ( e,e′ )} 
       
     
     
       
         {circumflex over (ε)} (1) :={circumflex over (ε)} (1)   ∪{e}   
       
     
     
       
         {circumflex over (ε)} (2) :={circumflex over (ε)} (2)   ∪{e′}   
       
     
     end 
     
       
           N   (1) :=(ε (1) \{circumflex over (ε)} (1) ) 
       
     
     
       
           N   (2) :=(ε (2) \{circumflex over (ε)} (2) ) 
       
     
     The results of the procedure are the three sets P, N (1)  and N (2) . P contains all the edge-pairs of the two vertices, N (1)  and N (2) , all those edges of the first and second vertex which have not been used for the edge-pairs, respectively. Of course, either N (1)  or N (2)  is empty. 
     Based on these two sets the distance function for two vertices is defined as 
     
       
           d (ν (1) ,ν (2) )=1 −S   edge (ν (1) ,ν (2) )· s   location (ν (1) ,ν (2) )  (83) 
       
     
     with the similarity s edge  between the edges and the similarity of s location  of the locations                  s   edge          (       v     (   1   )       ,     v     (   2   )         )       =       exp        (       -       &lt;   Δα        &gt;   2         2        λ   1   2           -       &lt;     Δ                 c          &gt;   2         2        λ   2   2           )       ·     exp        (     -       &lt;              c        &gt;   2         2        λ   3   2           )                 (   84   )                   s   location          (       v     (   1   )       ,     v     (   2   )         )       =     exp        (     -         (         χ   →       (   1   )       -       χ   →       (   2   )         )     2       2        λ   4   2           )               (   85   )                                
     applying the quantities                &lt;   Δα        &gt;   2       =       1        P                 ∑       (     e   ,     e   ′       )     ∈   P                         (       f     Δ               (       angle        (   e   )       ,     angle        (     e   ′     )         )       )     2                 (   86   )                 &lt;     Δ                 c          &gt;   2       =       1        P                 ∑       (     e   ,     e   ′       )     ∈   P                         (       conf        (   e   )       ,     conf        (     e   ′     )         )     2                 (   87   )                 &lt;   c        &gt;   2       =       1            N     (   1   )       ⋃     N     (   2   )                       ∑     e   ∈       N     (   1   )       ⋃     N     (   2   )                    (     conf        (   e   )       )     2                 (   88   )                                
     where ‘|A|’ means the number of elements in set A and ‘angle(e)’ and ‘conf(e)’ give the direction α and the confidence c of the edge e=(α,c), respectively. 
     The definition of the adaptation function is based on the two sets P and N (1)  introduced above. The adaptation consists of two different cases: (1) the edges of ν (1)  which belong to an edge-pair are adapted to the corresponding edge of ν (2) , (2) the other edges in ν (1)  (given in N (1) ) get their confidences reduced. The location {right arrow over (x)} (1)  of ν (1)  is adapted to the location of the other vertex in a linear way. 
     
       
         ƒ adapt (ν (1) ;ν (2)   ,r )=( {right arrow over (x)}′;E′ )  (89) 
       
     
     with 
     
       
           {right arrow over (x)}′={right arrow over (x)}   (1)   +r· ( {right arrow over (x)}   (2)   −{right arrow over (x)}   (1) )  (90) 
       
     
     
       
           A={ (α+ r·ƒ   Δ (α′,α), c+r· ( c′−c ))|  (91) 
       
     
     
       
         ∀((α,  c ), (α′,  c′ ))∈ P}   (92) 
       
     
     
       
           B={ (α,(1 −r )· c )|∀(α,  c )∈ N   (1) )}  (93) 
       
     
     
       
         (no equation)  (94) 
       
     
     
       
           E′=A∪B   (95) 
       
     
     A typical choice of all the parameters needed for the distance and adaptation function is the following one: 
     
       
         λ 1 =0.35  (96) 
       
     
      λ 2 =1  (97) 
     
       
         λ 3 =50  (98) 
       
     
     
       
         λ 4 =10000  (99) 
       
     
     The object representations extracted from one image by one shot learning or from an image sequence by iterative learning can be used for object recognition. The object coded by a graph G labeled with local line segments, vertices or both can be recognized in an unknown image I by using elastic graph matching (EGM) (see, Martin Lades, Jan C. Vorbrüggen, Joachim Buhmann, Jörg Lange, Christoph v.d. Malsburg, Rolf P. Würtz, and Wolfgang Konen. Distortion invariant object recognition in the dynamic link architecture.  IEEE Trans. Comput.,  42(3):300 311, 1993. The only formula which has to be defined to apply EGM to the two feature types local line segments or vertices is the similarity function S(G k ,a({right arrow over (x)})) which compares the data given at the k-th node G k  of the graph with the data a({right arrow over (x)}) extracted from the image I at the location {right arrow over (x)}=(x, y). Furthermore, it is specified for the two feature types how the needed data a({right arrow over (x)}) is extracted from the image. 
     Elastic graph matching may be accomplished using local line segments. Using local line segments as feature the similarity function S(G k ,a({right arrow over (x)})) is the average of the normalized filter responses corresponding to the node G k  (i.e., {right arrow over (c)} i =(x i , y i , ƒ i , α i , c i , s i )∈G k ) in the image at the pixel position (x, y): 
     
       
           a ( {right arrow over (x)} )={ r ( x′,y′,ƒ,α,c,s)| all x′,y′,ƒ,α,c,s in a local area with center (   x,y )}  (100) 
       
     
     
       
         
           
             
               
                 
                   
                     
                       S 
                        
                       
                         ( 
                         
                           
                             G 
                             k 
                           
                           , 
                           
                             α 
                              
                             
                               ( 
                               
                                 x 
                                 → 
                               
                               ) 
                             
                           
                         
                         ) 
                       
                     
                     = 
                     
                       
                         1 
                         
                            
                           
                             G 
                             k 
                           
                            
                         
                       
                        
                       
                         
                           ∑ 
                           
                             
                               
                                 c 
                                 -&gt; 
                               
                               i 
                             
                             ∈ 
                             Gk 
                           
                         
                          
                         
                             
                         
                          
                         
                           N 
                            
                           
                             ( 
                             
                               
                                 
                                   r 
                                    
                                   
                                     ( 
                                     
                                       
                                         x 
                                         - 
                                         
                                           x 
                                           i 
                                         
                                       
                                       , 
                                       
                                         y 
                                         - 
                                         
                                           y 
                                           i 
                                         
                                       
                                       , 
                                       
                                         f 
                                         i 
                                       
                                       , 
                                       
                                         α 
                                         i 
                                       
                                       , 
                                       
                                         c 
                                         i 
                                       
                                       , 
                                       
                                         s 
                                         i 
                                       
                                     
                                     ) 
                                   
                                 
                                 ; 
                                 
                                   x 
                                   → 
                                 
                               
                               , 
                               
                                 f 
                                 i 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   101 
                   ) 
                 
               
             
           
         
                 
         
             
         
      
     
     where |G k | is the number of local line segments the k-th node is labeled with. The local area applied in the computation of a({right arrow over (x)}) is a square with the edge length 2*max {|x i |, |y i |}+1. 
     Elastic graph matching may be accomplished using vertices. The preprocessed image data a ({right arrow over (x)}) is the vertex extracted as described in section 3.2. Thus a({right arrow over (x)}) is represented as in eqn. (14) 
     
       
           a ({right arrow over (x)})=({right arrow over (x)}; {(α j   ,c   j )}).  (102) 
       
     
     Since the node G k  as well as the data a({right arrow over (x)}) extracted from the image contain a vertex, two vertices have to be compared by the similarity function. The similarity function s edge (ν (1) , ν (2) ) defined in eqn. (84) is applied for this purpose 
     
       
           S ( G   k   , a ( {right arrow over (x)} ))= s   edge ( G   k   , a ( {right arrow over (x)} )).  (103) 
       
     
     A typical choice of all the parameters concerning vertices for the similarity function eqn. (103) is 
     
       
         λ 1 =0.35  (104) 
       
     
     
       
         λ 2 =1  (105) 
       
     
     
       
         λ 3 =50  (106) 
       
     
     Elastic Graph Matching may be accomplished using both local line segments and vertices. A graph may not only contain one type of feature but can rather contain local line segments as well as vertices. Both is possible within one graph, first, that a node contains both types of features or, second, that a node contains either type of feature. Depending on the type of feature attached to a node, the corresponding data a({right arrow over (x)}) has to be extracted from the image and the corresponding similarity function S(G k , a({right arrow over (x)})) has to be applied. 
     While the foregoing has been with reference to specific embodiments of the invention, it will be appreciated by those skilled in the art that these are illustrations only and that changes in these embodiments can be made without departing from the principles of the invention, the scope of which is defined by the appended claims.