Abstract:
The present invention relates to a clustering method for rosette scan images, comprising the steps of: (a) obtaining a subject image according to its rosette pattern; (b) converting the location information among the data of the subject image and arraying the converted information into a two-dimensional memory; (c) reading the image data arrayed in the two-dimensional memory from the first row and defining a portion of the data with continuous 1&#39;s as a partial cluster; (d) storing multiple partial clusters created upon the completion of the step (c) with respect to the said two-dimensional memory to the end; (e) examining the adjacency among the created multiple partial clusters; and (f) binding the adjacent partial clusters detected in the step (e) as an independent cluster.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to the clustering method for rosette scan images. In particular, the present invention relates to the method to array the image pixels obtained according to the rosette pattern in a two-dimensional memory, define partial clusters from the said memory with the array, and to generate clusters from the said defined partial clusters. 
     2. Description of the Related Art 
     The rosette scan image is an image formed by a single element detector&#39;s scanning of the total field of view by the rosette pattern. The rosette scan image is frequently used by the infrared guided missile&#39;s detector for distinguishing the real target from false targets such as flares. The rosette seeker, through the counter-rotation of the two optical elements, provides a two-dimension scan image of a target as if an infrared detector scanned the entire field of view according to the rosette pattern. 
     Because a rosette seeker may obtain information regarding the size or the spatial position of the target from the detected scan image, the reaction to the target, background, clutter or to flare may be differentiated. The scanning speed of the rosette pattern is higher at the center part of petals than at the outer ends of petals. Also, more scanning lines pass the center part of the pattern than the outer parts of the pattern. Due to the difference in the scanning speed and the non-linear characteristic of the rosette pattern, the detected image differs depending on the location of the subject matter within the field of view. 
     Furthermore, because a rosette seeker obtains the infrared image by a single element detector&#39;s scanning, the rosette scan image has only a narrow distribution of gray scale unlike the ordinary camera image. Thus, it has been necessary to develop a signal processing method to react properly to the detected image&#39;s changes depending on the target&#39;s position and to correctly recognize targets such as flares. 
     The conventional rosette seeker has used the K-means clustering as a clustering method to differentiate images existing in the total field of view. However, the K-means clustering generates a different clustering result depending on the seed point of an initial cluster. Furthermore, the number of clusters must be determined prior to the initiation of the relevant algorithm. Thus, if a target discharges a random number of flares as countermeasures, the missile using the said method may fail to track the target. The ISODATA (Iterative Self Organizing Data Analysis Technique) method resolves such problems. The ISODATA clustering method, instead of specifying the number of clusters prior to the initiation of the algorithm process, determines the number of clusters while the algorithm is processed. Accordingly, regardless of the number of flares, all the clusters may be identified. However, as the seeker approaches the target, the number of detected clusters increases accordingly. Thus, values of the merging and splitting parameters must be modified frequently. Therefore, the ISODATA method has a drawback in that the processing time is extended as the relevant algorithm is repeated and the parameters must be modified during the tracking. 
     SUMMARY OF THE INVENTION 
     In order to resolve the above-described problems in the conventional clustering methods, the present invention intends to provide a clustering method to array image pixels, which have been obtained by a rosette pattern, in a two-dimensional memory and to cluster the image using the continuity of the data in the said memory, dispensing with the need for a seed point or the merging and splitting parameters. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a rosette pattern created according to N 1 , N 2  and ΔN. 
     FIG. 2 is a flow chart illustrating a preferred embodiment of the clustering method for rosette scan images. 
     FIG. 3 is an illustration of a rosette pattern to explain the method to rearrange the rosette pattern as two-dimensional data. 
     FIG. 4 is an illustration of the array of image pixels into a two-dimensional memory. 
     FIG. 5 a  is an original input image; 
     FIG. 5 b  is an image in which clusters are created by the array in the two-dimensional memory; and 
     FIG. 5 c  is an illustration of the clusters in the two-dimensional memory of FIG. 5 b , arrayed according to their actual coordinates. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Reference will now be made in detail to the preferred implementation of the present invention&#39;s clustering method for rosette scan images as illustrated in the accompanying drawings. 
     First, the rosette scan pattern will be explained with the reference to FIG.  1 . 
     A rosette scan pattern is formed by having two optical elements rotate to the opposite directions according to certain rules with a constant rate. If rotational frequencies for two prisms are f 1  and f 2 , the rosette pattern created therefrom may be expressed with the following Equation 1.                  x        (   t   )       =       δ   2          (       cos                 2      π                   f   1        t     +     cos                 2      π                   f   2        t       )              
            y        (   t   )       =       δ   2          (       cos                 2      π                   f   1        t     -     cos                 2      π                   f   2        t       )                 [     Equation                 1     ]                                
     In the foregoing Equation 1 δ is the refractive index of the prism. 
     The ratio of f 1  to f 2  (f 1  and f 2 , being the said rotational frequencies) determines the scan speed, total number of petals, width of the petal and location of the intersection points of adjacent petals. The relationship of these frequencies is as set forth in the following Equation 2.                  N   2       N   1       =       f   2       f   1               [     Equation                 2     ]                                
     In the foregoing Equation 2, N 1  and N 2  are positive integers and f 1  is greater than f 2 . 
     Only when the ratio of Equation 2 is always a rational number and when f 1  and f 2  have a greatest common measure f(N 1 =f 1 /f; and N 2 =f 2 /f), a completely closed rosette pattern may be formed according to Equation 1. In such an event, the frame frequency of the rosette pattern may be expressed with the following Equation 3.              T   =       1   f     =         N   1       f   1       =       N   2       f   2                   [     Equation                 3     ]                                
     The total number of petals in a rosette pattern is determined by the following Equation 4. The parameter representing the width of a petal constituting the rosette pattern is as set forth in the following Equation 5. 
       N=N   1   +N   2   Equation 4 
     
       
         Δ N=N   1   −N   2   Equation 5 
       
     
     FIG. 1 a  illustrates a rosette pattern where N 1  is 13, N 2  is 11 and ΔN is 2. FIG. 1 b  illustrates a rosette pattern where N 1  is 13, N 2  is 9 and ΔN is 4. As illustrated in FIG. 1, as the value of ΔN increases, the width of a petal increases. As ΔN&#39;s value decreases, the width of a petal decreases accordingly. 
     FIG. 2 is a flow chart illustrating a preferred embodiment of the clustering method for rosette scan images. 
     As illustrated in FIG. 2, first, the subject image is obtained by a rosette pattern ( 21 ). The subject image that has been obtained by a rosette pattern is stored with different values for sample points corresponding to the gray level of such sample points. For instance, the data representing the obtained subject image may have values ranging from 0 to 255 corresponding to the gray level. According to a preferred embodiment of the present invention, the objective is not to exactly recognize the subject image but to detect the existence of a target within the subject image. A certain standard is set in order to achieve such objective. If the gray level in the subject image is higher than the standard, it is determined that a target exists and in contrast, if the gray level is lower than the standard, it is determined that a target does not exist. As a consequence, a subject image seeker level has the value 1 if an image exists or 0 if no image exists in the relevant location. In other words, the pixels corresponding to the positions where a target is detected have 1s as their values and the other pixels have 0s as their values. 
     FIG. 3 is an illustration of a rosette pattern to explain the method to rearrange the rosette pattern as two-dimensional data. 
     The image pixels obtained at the sampling times are arranged according to a non-linear pattern. Thus, such pixels have the form of one-dimensional array instead of a two-dimensional array. However, because petals in a rosette pattern are formed in the order represented by the thick solid line of FIG. 3, the continuity of pixels may not be examined with such one-dimensional array. Thus, after a pattern is completely created, the one-dimensional array for each petal is rearranged so that the relevant data may be stored in a two-dimensional memory on a two-dimensional space ( 22 ). In order to minimize the non-linear characteristic of the rosette pattern, it is recommended that a pattern, which does not have any petal over other petals in the pattern, be rearranged for such purpose. 
     The method to rearrange a rosette pattern will be explained in the following. First, as set forth in the following Equation 6, the number of sampling points required for forming a rosette pattern, N T , is defined to be the amount 2 to the power of k (2 k ), multiplied by 2N. The number of sampling points is made to be a multiple of 2 to the power of k in order to array the pattern into a memory space with 2 k  columns. 
     
       
           N   T =2 N ·2 k   Equation 6 
       
     
     In the foregoing Equation 6, k is 1, 2 . . . , and N is the total number of petals in a rosette pattern. In order for a rosette pattern to be rearranged as a two-dimensional array, the sample time Δt must be determined according to the following Equation 7.                Δ                 t     =     1     f   ·     N   T                 [     Equation                 7     ]                                
     In the foregoing Equation 7, f is the frame frequency required for forming a rosette pattern. 
     In order to convert a rosette pattern to a two-dimensional array, each petal is divided into halves along the central line of each petal including the central point of the rosette pattern and the outer end point of the petal. The value of i for the upper half of the petal in which the rosette pattern starts to be created is 1. Then, the value of i increases one by one counterclockwise. Each row of i rows is composed of j instantaneous sampling point (N j ). Thus, the values of i and j of the relevant array are determined from the sensor&#39;s instantaneous position. The value of i corresponds to the row number and j the column number in the two-dimensional memory. 
     The value of i is determined by the following Equation 8.                i   =       [         θ        (   t   )          N     π     ]     +   1       ,       if                   θ        (   t   )         ≥   0     ,     
          i   =       [         θ                   (   t   )        N     π     +     2      π       ]     +   1       ,       if                   θ        (   t   )         &lt;   0.             [     Equation                 8     ]                                
     In the foregoing Equation 8, i ranges from 1 to 2N (i=1, 2, . . . 2N). θ(t) is the angle of the detector&#39;s instantaneous position represented with polar coordinates. Each column is composed of 2 k  samples out of the samples in the entire pattern. Thus, j ranges from 1 to 2 K (j=1,2, . . . 2 k ). If j begins with the sampling point at the center of the subject pattern and ends at the outer end of a petal, the value of j may be determined pursuant to the following Equation 9. 
     
       
           j =(1 +D )2 k   −N   j +1, if  D  is odd, 
       
     
     
       
           j=N   j −2 k   D,  if  D  is even.  Equation 9 
       
     
     In the foregoing equation 9, D equals          D   =     [       N   j       2   k       ]       ,                          
     where N j =1,2, . . . N T . 
     During one cycle of the rosette scanning, the information about an object detected by an infrared sensor is stored in a memory through the functions of Equations 8 and 9. If any object is detected during the rosette scanning, the relevant memory cell of an array is filled with 1. In other cases, 0s are stored. When one cycle of scanning is completed, an array of i by j (i×j) is created in the memory. FIG. 4 is an illustration of such array of image pixels stored in a memory. 
     When the step of arraying the image data into a two-dimensional memory is completed as illustrated in FIG. 4, partial clusters are defined in each row ( 23 ). 
     Before the method to define partial clusters is explained, the meanings of the terms used in such explanation are set forth as follows. 
     S 1  is the lth partial cluster. i is the row number and j the column number. x ij  is the pixel value of an element (i, j) in the array. n(S 1 ) is the number of elements included in the lth partial cluster. N r  is the minimum number of elements that one partial cluster may contain and this number is determined appropriately under the relevant circumstances. 
     Partial clusters are defined by determining whether there are continuous data with is as their values, beginning with the 1 st  row (i.e., i=1). First, l, j and i are initialized with the value 1. Then, in the first row (i=1), the values of x ij  are examined as the value of j increases from 1 to 2 k . If x ij  has the value 1 continuously, such element having the value 1 continuously is defined to be in a partial cluster, and i and j of such element is contained in S 1 , provided that the number of such continuous 1s must be greater than the predetermined N r . The said process of including the relevant element in S 1  continues until the next pixel has the value 0. The partial cluster which is first defined in the first row becomes S 1 . Partial clusters are defined for each row but more than one partial clusters may be formed in one row. As illustrated in the first row of FIG. 4, if more than one portion of a row has continuous 1s as their values, each of such portions is defined as an independent partial cluster. In FIG. 4, the first three continuous 1s in row 1 becomes S 1 . The two continuous 1s that come next in the first row becomes S 2 . 
     When the above-described process is repeated until it comes to the last row i, partial clusters such as the one in the following Equation 10 will have been defined. 
     
       
           S   l =[( i   1   ,j   1 ) l ( i   2   ,j   2 ) l  . . . ( i   n   , j   n ) l ]  Equation 10 
       
     
     In the foregoing Equation 10, n means the number of elements contained in the lth cluster. 
     After partial clusters are defined as described above, it is examined whether partial clusters are adjacent to each other ( 24 ). Then, adjacent partial clusters are bound to become one independent cluster ( 25 ). According to the preferred embodiment of the present invention, the above two steps are conducted [simultaneously]. The adjacency of partial clusters is determined by examining whether an element of a partial cluster in a row is adjacent to an element of another cluster in a different row. This process is explained in detail in the following. 
     The universal set including all of the partial clusters is named U=[S 1 , S 2  . . . S l ]. An independent cluster combining adjacent partial clusters is named C p . The examination of the partial clusters&#39; adjacency begins with p&#39;s value 1 (p=1). 
     The first element of the universal set U is included in C p  and eliminated from U. Then, such condition is represented by the following Equation 11. 
     
       
           C   p   =[S   1   ], U=[S   2   ,S   3   , . . . S   l ]  Equation 11 
       
     
     In the foregoing Equation 11, an element (i m , j m ) p  in C p  and the lth partial cluster element (i n , j n ) l  are examined for the adjacency according to the method represented by the following Equation 12. The lth partial element to be included in C p  is eliminated from U. 
     
       
           S   1   εC   p  and  U−S   1  if |( i   m   ,j   m ) p −( i   n   ,j   n ) l |=(1,0)  Equation 12 
       
     
     As indicated in the foregoing Equation 12, the adjacency is determined when the difference between an element included in C p  and an element of a partial cluster in U is 1. In other words, with respect to such elements, when the relevant rows are adjacent to each other and when the column number is same, the relevant partial clusters are bound into a single independent cluster. As illustrated in the foregoing Equation 12, the partial clusters determined to be adjacent to other clusters are eliminated from the universal set U. 
     If there is no more element in U that satisfies the condition of Equation 12, p is increased by one. This process is repeated until there is no more remaining element in U. 
     As illustrated in FIG. 3, in a rosette pattern, the first row and the 2Nth row (row i=1 and row i=2N) are actually adjacent to each other even though they are located apart in the memory space. Thus, the adjacency between these two rows is examined according to the following Equation 13. 
     
       
           C   r   ∪C   s , if |( i   r   ,j   r )−( i   s   ,j   s )=(2 N ,0)|  Equation 13 
       
     
     In the foregoing Equation 13, r&#39;s value is 1, 2, . . . p−1(r=1,2, . . . p−1) and s′s value is r+1, . . . p (s=r+1, . . . p) (r≠s). 
     When the step of examining the adjacency among partial clusters and binding adjacent partial clusters into one cluster is completed, the cluster array stored in the memory is converted into values with actual x and y coordinates. Then, the center of each cluster is determined ( 26 ). 
     FIG. 5 a  is an original input image; FIG. 5 b  is an image in which clusters are formed by the array in the two-dimensional memory; and FIG. 5 c  is an illustration of the clusters in the two-dimensional memory of FIG. 5 b , arrayed according to their actual coordinates. 
     The step of arraying the clusters in a memory into the actual coordinates is conducted by multiplying each cluster array by the x and y array. As evidenced in FIG. 5, the present invention&#39;s clustering method may sufficiently reflect the number and the shape of the actually inputted image. The center of each cluster is determined after the clusters are rearranged in the actual coordinates as illustrated in FIG. 5 c.    
     According to the present invention&#39;s clustering method for rosette scan images, it is not necessary to select an initial seed point as in the conventional ISODATA method or K-means method, and there is no concern about the difference in clustering results depending on the selection of the seed points. Furthermore, it is not necessary to fix the number of clusters. Also, because the clustering is conducted using the continuity of the memory number in which a pixel is stored, it is not necessary to have the merging and splitting parameters of clusters, which are necessary for the ISODATA method. Accordingly, all the clusters contained in a subject image may be separated conveniently and the calculation may be simplified.