Abstract:
One of the significant problems encountered in criminology studies is the successful automatic matching of cartridge cases after a cartridge is fired from a firearm, on the basis of the marks left on the cartridge cases fired. One of the probable steps in the solution of this problem is the segmentation of certain regions defined on the cartridge case. This invention relates to the method for segmentation of cartridge case base by using surface height matrix information.

Description:
TECHNICAL FIELD 
       [0001]    One of the significant problems encountered in criminology studies is the successful automatic matching of cartridge cases after a cartridge is fired from a firearm, on the basis of the marks left on the cartridge cases fired. One of the probable steps in the solution of this problem is the segmentation of certain regions defined on the cartridge case. This invention relates to the method for segmentation of cartridge case base by using surface height matrix information. 
       STATE OF THE ART 
       [0002]    Firearms leave marks on both cartridge cases and bullets of the cartridges they fire. Comparing these specific marks on different bullets or cartridge cases, one can determine whether these bullets or cartridge cases are fired from the same firearm. Thus, the relations between the incidents where the firearms which fired these cartridge cases and bullets were used can be revealed. 
         [0003]    In matching process, instruments called comparison microscopes that are specially designed and produced basically for this purpose are used. The cartridge case or bullet pairs to be analyzed are placed on the relevant part of this microscope and the intended image is acquired by using the microscopic capabilities of zooming in and out, rotating, shifting, adjusting light intensity and angle, developed for these purposes. The expert who analyzes the image can determine whether these two cartridge cases or bullets that are subjected to comparison are fired from the same firearm. 
         [0004]    This visual comparison is a rather time-taking process for the expert. Although there are already developed products available, development of automated systems which help the expert by making at least certain preliminary eliminations in this time-taking process is a significant problem in the criminology literature. In the criminology literature, this problem is named automated firearms identification. 
         [0005]    There are many steps in the solution of the problem of automated firearms identification. First of all, the required data should be properly digitalized. Accurate acquisition of the marks on the cartridge case and bullet is another problem in itself. Two-dimensional (2D) or three-dimensional (3D) information based systems are used in the solution of this problem. A summary of the literature on data acquisition problem are given in a resource (U. Sakarya, U. M. Leloglu, E. Tunali, ‘Three-dimensional surface reconstruction for cartridge cases using photometric stereo’, Forensic Science International, vol. 175, no. 2-3, pp. 209-217, 5 Mar. 2008). In order to find possible matches in the marks acquired, the exact feature which ensures success should be selected and this data should be promptly compared. The objective is to alleviate the expert&#39;s workload as far as possible by ensuring high identification success in an appropriate time period. 
         [0006]    In a cartridge, the metal structure which contains the explosive and the bullet and which effectuates firing by the help of the primer ( 2 ) around it is called a cartridge case. A needlelike metal part of the firearm, called the firing pin, strikes the primer ( 2 ) igniting the igniter and the ignition explodes the explosive inside, and thus the cartridge is fired. In the meantime, under immense pressure and temperature, the cartridge case contacts the tray of the firearm under backward pressure. The immense pressure and temperature at the time of this contact results in sealing of the marks on the firearm tray against the cartridge case base ( 1 ) in accordance with the relevant physical process. 
         [0007]    Cartridge cases fired from the same firearm is called sister cartridge cases. On the cartridge case base ( 1 ), basically three regions are investigated for the purpose of determination of sisterhood by ballistic image analysis. These are the primer ( 2 ), the ejector mark ( 3 ) and the firing pin mark ( 4 ). These regions are shown in  FIG. 1 . 
         [0008]    Ejector is a name given to the mechanism that, after the ignition is effectuated and the bullet leaves the barrel, ejects the empty cartridge case out of the firearm. Although there are various mechanisms for ejection of the cartridge case out of the firearm, the most favorite method is that a pin called ejector hits the case wall and extracts it from the firearm. The ejector mark ( 3 ) left by the ejector pin on the cartridge case is one of the marks used in determination of sisters. 
         [0009]    In determination of sisterhood by ballistic image analysis, the second region analyzed is the region of the firing pin mark ( 4 ). The marks left during the firing pin&#39;s entry into and exit out of the primer ( 2 ) are used in determination of the sister cartridge case. 
         [0010]    Finally, the marks left on the cartridge case base ( 1 ) as a result of the high pressure created during firing are used in determination of the sister cartridge case. Here, as it is seen in  FIG. 1 , on the cartridge case base ( 1 ), presence of letters or special marks on the outside (the region between the circles no ( 1 ) and ( 2 )) of the primer ( 2 ) area makes the analysis somewhat more difficult. Thus, in order to see the breech face marks, areas outside the firing pin mark ( 4 ) on the primer ( 2 ) are analyzed first. On the cartridge case base ( 1 ), presence of production-related marks (letters, prints, etc), besides ballistic marks, somewhat complicates the matching process. Although certain types of cartridge cases have different shapes, cartridge cases in general have the structure shown in  FIG. 1 . The primer ( 2 ) is explicitly distinguished from the outer part of the cartridge case base ( 2 ). Furthermore, there are also certain marks and letters on the cartridge case base ( 1 ) outside the primer ( 2 ) area. 
         [0011]    In state of the art, certain regions on the cartridge case are segmented by the user while the cartridge case is recorded in a cartridge case data recording unit. For example, the BALİSTİKA system developed by TÜBİTAK UZAY works this way. Automation of this segmentation process is a significant step especially for rapid data entry. In the current state of the art, furthermore, since letters and marks are present on the cartridge case base ( 1 ) on regions outside the primer ( 2 ), these regions are not generally used in the automatic matching process. Detection and elimination of these letters and marks, and usage of the remaining regions in the matching process may contribute positively to the automatic matching success. 
         [0012]    Methods have been developed to make automatic cartridge case base ( 1 ) segmentation on the basis of 2D data. One of them is a method that operates in a system called Fireball (D. G. Li, ‘Image processing for the positive identification of forensic ballistics specimens’,  Proceedings of the Sixth International Conference of Information Fusion , vol. 2, pp. 1494-1498, 2003): An edge map of the 2D cartridge case image is obtained by using the Canny edge detection method (J. Canny, ‘A Computational Approach to Edge Detection’,  IEEE Transactions on Pattern Analysis and Machine Intelligence , pp. 679-698, 1986). On this edge map, the circles on the cartridge case base ( 1 ) are acquired by using the method of direct least squares fitting of ellipses (A. W. Fitzgibbon, M. Pilu and R. B. Fisher, ‘Direct least squares fitting of ellipses’,  Proceedings of the  13 th International Conference on Pattern Recognition , vol. 1, pp. 253-257, 25-29 Aug. 1996). 
         [0013]    In another study, (J. Zhou, L. Xin, G. Rong ye D. Zhang, ‘Algorithm of automatic cartridge identification’,  Optical Engineering , vol. 40, no. 12, pp. 2860-2865, 2001), first, the cartridge case base ( 1 ), the most outer circle, is found. The Hough transform method used for circle detection (L. G. Minor ye J. Sklansky, ‘Detection and segmentation of blobs in infrared images’,  IEEE Trans. SMC , vol. 11, pp. 194-201, 1981) is used for cartridge case base ( 1 ) detection. The ejector mark ( 3 ) is found by a local frequency spectrum analysis made in the outer circle region. The active snake method (C. Xu and J. L. Prince, ‘Snakes, shapes, and gradient vector flow’,  IEEE Trans. Image Process , vol. 7, no. 3, pp. 359-369, 1998) is used for the estimation of the firing pin mark ( 4 ) region. 
         [0014]    In another study, in order to detect the circles and letters on the cartridge case base ( 1 ), Brein (C. Brein, ‘Segmentation of cartridge cases based on illumination and focus series’,  Proceedings of SPIE , vol. 5685, Image and Video Communications and Processing 2005, Amir Said, John G. Apostolopoulos, Editors, pp. 228-238, March 2005) used image series under varied illumination conditions (point, ring, diffuse). Randomized Hough transform method (L. Xu, E. Oja and P. Kultanen, ‘A new curve detection method: Randomized Hough Transform (RHT)’,  Pattern Recognition Letters , vol. 11, no. 5, pp. 331-338, 1990) was used for circle detection. 
         [0015]    An automatic segmentation method on 3D cartridge case data was also developed (C. Brein, ‘Segmentation of cartridge cases based on illumination and focus series’,  Proceedings of SPIE , vol. 5685, Image and Video Communications and Processing 2005, Amir Said, John G. Apostolopoulos, Editors, pp. 228-238, March 2005). 3D cartridge case data are acquired by the depth-from-focus method. Following the preprocessing carried out on the 3D data, the randomized Hough transform method (L. Xu, E. Oja and P. Kultanen, ‘A new curve detection method: Randomized Hough Transform (RHT)’,  Pattern Recognition Letters , vol. 11, no. 5, pp. 331-338, 1990) is used to detect circles. Letters are also detected by using 3D data. 
       TECHNICAL PROBLEMS THAT THE INVENTION AIMS TO SOLVE 
       [0016]    As explained above, together with the increased number of cartridge cases, automatic entry of cartridge case data has turned out to be a significant problem. Automatic implementation of the process will eliminate the need for employment of additional staff and increase the data entry rate. Furthermore, in an automatic system, since the operator is not involved in the process, the system acquires the trait of user-independence. One of the advantages of such a user-independent system is that the data entered are immune to operator errors since these systems always work in the same way. 
         [0017]    Besides, an increase in the recognition success is aimed at through automatic segmentation of letters on the cartridge case base ( 1 ) and elimination of possible negative effects that might emerge in the automatic comparison process. 
         [0018]    This invention relates to a model-based method that makes segmentation on the basis of surface height matrix of the cartridge case base. 
     
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0019]    The method can be summarized as follows: First of all, the center of the cartridge case base ( 1 ) is detected. According to this center, the surface height matrix is subjected to polar transformation and thus the polar height matrix is obtained. A one-dimensional signal is acquired by calculation of the mean value on the radius axis applied on the polar height matrix. This signal is called ‘Average Height Signal on the Basis of Radius’ (AHSBR). On the AHSBR, regions similar to circle signal models are determined and thus circles are detected. Finally, the firing pin mark ( 4 ) region is determined by threshold processing of the primer ( 2 ) region surface height matrix. Subsequently, letters on the cartridge case base ( 1 ) are detected by using slope matrices. 
         [0020]    Center Detection Module ( 13 ): 
         [0021]    In order to find the center of the cartridge case base ( 1 ), a surface height matrix ( 5 ) (SHM) including the entire of the cartridge case base ( 1 ) region is quantized ( 6 ) first. On the basis of the quantized data, partial derivative of the surface is taken in the x- and y-directions ((x,y,z) is a Cartesian coordinate system and the +z-direction denotes height). The resultant vector of these two derivative values is found. In other words, the magnitude value of the surface gradient is obtained. For each point on the matrix, the magnitude ( 7 ) of the resultant of the partial derivatives taken in the x- and y-directions is quantized ( 8 ). A new matrix is formed and on this matrix, the magnitude value of the resultant of the surface derivatives calculated for each point on the SHM corresponds to the same-coordinate element of a matrix to be used to find the center. Three significant circles—primer circle ( 28 ), primer pocket gap circle ( 29 ) and cartridge case base circle ( 27 )—are expected to appear explicitly on this matrix. In other words, the values of the matrix elements of these circles are expected to be significantly high. The acquired matrix is subjected to smoothing and it is prepared for circle detection. The method called the 2 Stage Hough Transform (21HT) method ( 10 ), referred to in ‘H. K. Yuen, J. Princen, J. Illingworth and J. Kittler, ‘Comparative study of Hough Transform methods for circle finding’, Image and Vision Computing, vol. 8, no. 1, pp. 71-77, 1990′, is used for circle detection. 
         [0022]    The Hough transform method was described by P. V. C. Hough in P. V. C. Hough, ‘Method and means for recognizing complex patterns’, U.S. Pat. No. 3,069,654, 1962. The parameter space for circle detection was proposed in R. O. Duda and P. E. Hart, ‘Use of the Hough transformation to detect lines and curves in pictures’, Communications of the ACM, vol. 15, no. 1, pp. 11-15, January 1972. In another source (D. H. Ballard, ‘Generalizing the Hough transform to detect arbitrary shapes’, Pattern Recognition, vol. 13, no. 2, pp. 111-122, 1981), detection of certain analytical figures in grayscale pictures by Hough transformation was described. One of these analytical figures is the circle. Several methods that use Hough transformation for circle detection are compared in H. K. Yuen, J. Princen, J. Illingworth and J. Kittler, ‘Comparative study of Hough Transform methods for circle finding’, Image and Vision Computing, vol. 8, no. 1, pp. 71-77, 1990. Parameter information on the realization of the 21HT method is given under the title ‘HoughCircles’ in ‘CV Reference Manual’ in OpenCV (Open Source Computer Vision) software library ([Online], http://opencvlibrary.sourceforge.net/Welcome?action=AttachFile&amp;do=get&amp;target=opencvref_cv.htm#cv_imgproc_special, Date of Access: 28.11.2007). 
         [0023]    The circle detection process carried out using the Hough transformation is as follows (See: H. K. Yuen, J. Princen, J. Illingworth and J. Kittler, ‘Comparative study of Hough Transform methods for circle finding’, Image and Vision Computing, vol. 8, no. 1, pp. 71-77, 1990): 
         [0024]    The equation of a circle with center (a,b) and radius r is as follows: 
         [0000]      ( x−a ) 2 +( y−b ) 2   =r   2    
         [0025]    In an image, any edge point (x,y) may be located on a circle. In order to understand whether a point is located on the circle, first, an operation is made in the Hough space. The Hough space consists of three parameters, a, b and r, for the circle. Possible quantized values of these three parameters are determined. These values receive votes from the edge points on the image. Circles are detected from among the circle parameters with the highest number of votes. 
         [0026]    In order to reduce the operational memory space and the processing time, the 21HT method divides the problem into two stages. First of all, the circle centers (a,b) are estimated in the 2-dimensional parameter space. According to these centers, circles are sensed in 1-dimensional parameter space (r). 
         [0027]    In this invention, the 21HT method ( 10 ) was used for the selection of the center of the cartridge case base ( 1 ). This is because the three circles—primer circle ( 28 ), primer pocket gap circle ( 29 ) and cartridge case base circle ( 27 )—located explicitly on the cartridge case base ( 1 ) are approximately concentric. Thus, in the 2-dimensional parameter space (a,b), the center of these circles are expected to receive the highest number of votes. As a consequence, the circle center receiving the highest number of votes can be accepted as the center of the cartridge case base ( 1 ) ( 11 ). Another approach used to find the center is as follows: Following the selection of the circle center receiving the highest number of votes, the circle centers that are not located at a certain distance from this circle center are not accepted as the circle center, although their parameters receive a high number of votes. Since the caliber size is known, attention is paid to ensure that the cartridge case base ( 1 ) covers the image (matrix) as far as possible. In other words, the cartridge case base ( 1 ) fills almost the entire image. Thus, among the circle centers detected, the one which is the closest to the image center may be accepted as the center of the cartridge case base ( 1 ). Several circles may be detected by the 21HT method ( 10 ). The centers of these detected circles are ranked according to their distance to the center of the image. The circle center that is the closest to the center of the image may be accepted as the center of the cartridge case base ( 1 ) ( 11 ). 
         [0028]    Circle Detection Module ( 19 ): 
         [0029]    First, the surface height matrix ( 5 ) is normalized ( 14 ) linearly in the interval [ 0 ,  1 ]. On the basis of the detected center ( 12 ) by the method described above, this normalized surface height matrix is subjected to polar transformation ( 15 ). Let the values of a point P located on the Cartesian coordinate system be a and b respectively on the x- and y-axes. The values c and d, which are respectively the locations of point P on the r-(radius) and q-(angle) axes of the polar coordinates calculated according to a center C(x c , y c ), are found as follows: 
         [0000]    
       
         
           
             
               c 
               = 
               
                 
                   
                     
                       ( 
                       
                         a 
                         - 
                         
                           x 
                           c 
                         
                       
                       ) 
                     
                     2 
                   
                   + 
                   
                     
                       ( 
                       
                         b 
                         - 
                         
                           y 
                           c 
                         
                       
                       ) 
                     
                     2 
                   
                 
               
             
             , 
             
               
 
             
              
             
               d 
               = 
               
                 
                   
                     tan 
                     
                       - 
                       1 
                     
                   
                    
                   
                     ( 
                     
                       
                         b 
                         - 
                         
                           y 
                           c 
                         
                       
                       
                         a 
                         - 
                         
                           x 
                           c 
                         
                       
                     
                     ) 
                   
                 
                 . 
               
             
           
         
       
     
         [0030]    On the polar height matrix, for each radius value, all data corresponding to that single radius value are added and the mean value is calculated. Thus, average height values are obtained on the basis of radius. A one-dimensional sign ( 16 ) is established with these mean values acquired on the basis of each radius value. This one-dimensional sign is called ‘Average Height Signal on the Basis of Radius’ (AHSBR). With the model-based signal similarity analysis ( 17 ) carried out on the AHSBR, the circles ( 18 )—primer circle ( 28 ), primer pocket gap circle ( 29 ) and cartridge case base circle ( 27 )—are detected. Step function is used as a model. On the one-dimensional sign, the regions most appropriate for the step function are detected with the similarity analysis. The concave regions have lower values in the one-dimensional sign. This means, the regions outside the cartridge case base ( 1 ) and the primer pocket gap give lower values. Again, similarly, on the primer ( 2 ) region, areas outside the firing pin mark ( 4 ) and the cartridge case base ( 1 ) give high values. 
         [0031]    The general outline of a representative AHSBR drawing is given in  FIG. 4 . First of all, the primer border ( 30 ) can be detected. For that purpose, the step model  1  ( 33 ) is used in an interval higher than a certain radius value (R 1 ) and lower than a certain radius value (R 2 ) to carry out a signal similarity analysis. In other words, while the AHSBR is kept fixed, the step model  1  ( 33 ) is wandered throughout this interval, superposed with the AHSBR, and the place of highest similarity is found. In this interval, the place of highest similarity is the primer border ( 30 ). Then, the primer pocket gap border ( 31 ) can be detected. For that purpose, on the AHSBR, a signal similarity analysis is carried out with a step model  2  ( 34 ) used in an interval higher than the radius value of the primer border ( 30 ) and lower than a certain radius value (R 3 ). In this interval, the place of highest similarity is the primer pocket gap border ( 31 ). Finally, the cartridge case base border ( 32 ) can be detected. For that purpose, on the AHSBR, a signal similarity analysis is carried out with a step model  3  ( 35 ) used in an interval higher than the radius value of the primer pocket gap border ( 31 ) and lower than the highest radius value (R 3 ). In this interval, the place of highest similarity is the cartridge case base border ( 32 ). It is not absolutely necessary to detect the circles in the way mentioned above; yet, starting from a certain point and detecting the circles one by one may result in a faster process as it would narrow the interval in which the similarity computation is to be carried out. The intervals in which similarity computations are to be carried out may be determined according to the radii of the cartridge cases. 
         [0032]    For the signal similarity analysis,—although the criteria are not limited to the ones described below—any of the criteria described below may be used. One of them is correlation analysis. Further detailed basic information on correlation analysis can be found in ‘Pattern Classification’ (R. O. Duda, P. E. Hart, D. G. Stork, Pattern Classification, 2nd ed., A Wiley-Interscience Publication, John Wiley &amp; Sons, 2001) and ‘Discrete Random Signals and Statistical Signal Processing’ (C. W. Therrien, Discrete Random Signals and Statistical Signal Processing, Prentice Hall, 1992). 
         [0033]    For two one-dimensional, separate signals S 1 ( t ) and S 2 ( t ), with variable t, the correlation analysis may be carried out as follows: Let the length of the signs be U and the length of the region in which the correlation analysis is to be carried out be W. Let the mean values of S 1 ( t ) and S 2 ( t ) be O S1  and O S2 , respectively. While signal S 1  is kept fixed, signal S 2  is shifted at an amount of T on plane t.
   1. Cross Correlation (CI): This is the cross correlation function of two signs. At point T, where the two signals are most similar with each other, the CI value is the highest. This is shown in the following formula:   
 
         [0000]        CI ( T )=1/ WΣ   teW ( S 1( t )× S 2( t−T ))
 
         [0035]    Normalized Cross Correlation Coefficient (DIK): This is the normalized cross correlation coefficient of two images. At value T, where the two signals are most similar with each other, the DIK value is the highest. This is shown in the following formula: 
         [0000]    
       
         
           
             
               DIK 
                
               
                 ( 
                 T 
                 ) 
               
             
             = 
             
               
                 
                   
                     ∑ 
                     teW 
                   
                    
                   
                       
                   
                    
                   
                     
                       ( 
                       
                         
                           S 
                            
                           
                               
                           
                            
                           1 
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         - 
                         
                           O 
                           
                             S 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                       ) 
                     
                      
                     
                       ( 
                       
                         
                           S 
                            
                           
                               
                           
                            
                           2 
                            
                           
                             ( 
                             
                               t 
                               - 
                               T 
                             
                             ) 
                           
                         
                         - 
                         
                           O 
                           
                             S 
                              
                             
                                 
                             
                              
                             2 
                           
                         
                       
                       ) 
                     
                   
                 
                 
                   
                     
                       
                         ∑ 
                         teW 
                       
                        
                       
                           
                       
                        
                       
                         
                           ( 
                           
                             
                               S 
                                
                               
                                   
                               
                                
                               1 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                             - 
                             
                               O 
                               
                                 S 
                                  
                                 
                                     
                                 
                                  
                                 1 
                               
                             
                           
                           ) 
                         
                         2 
                       
                     
                   
                    
                   
                     
                       
                         ∑ 
                         teW 
                       
                        
                       
                           
                       
                        
                       
                         
                           ( 
                           
                             
                               S 
                                
                               
                                   
                               
                                
                               2 
                                
                               
                                 ( 
                                 
                                   t 
                                   - 
                                   T 
                                 
                                 ) 
                               
                             
                             - 
                             
                               O 
                               
                                 S 
                                  
                                 
                                     
                                 
                                  
                                 2 
                               
                             
                           
                           ) 
                         
                         2 
                       
                     
                   
                 
               
               . 
             
           
         
       
     
         [0036]    For signal similarity analysis, the equations described below may also be used: 
         [0037]    Mean Square Difference (FKO): This is the mean of the square of the difference of two signals. At value T, where the two signs are the most similar with each other, the FKO value is the lowest. This is shown in the following formula: 
         [0000]        FKO ( T )=1/ WΣ   teW ( S 1( t )− S 2( t−T )) 2  
 
         [0038]    Mean Absolute Difference (MFO): This is the mean of the absolute differences of two signals. At value T, where the two signs are the most similar with each other, the MFO value is the lowest. This is shown in the following formula: 
         [0000]        MFO ( T )=1/ WΣ   teW   |S 1( t )− S 2( t−T )|
 
         [0039]    Drawings of step models are given in  FIG. 5 . The mathematical definitions of signals of step model  1  ( 33 ), step model  2  ( 34 ) and step model  3  ( 35 ) are as follows: 
         [0040]    Step Model  1  ( 33 ) Signal (BM 1 ): Let L 1 &lt;0, L 2 &gt;0, V 1 max&lt;1 and V 1 min&gt;0. It is defined as follows. The function is defined in interval [L 1 ,L 2 ]. 
         [0000]    
       
         
           
             
               BM 
                
               
                   
               
                
               1 
                
               
                 ( 
                 t 
                 ) 
               
             
             = 
             
               { 
               
                 
                   
                     
                       
                         V 
                          
                         
                             
                         
                          
                         1 
                          
                         
                             
                         
                          
                         max 
                       
                       , 
                     
                   
                   
                     
                       
                         
                           If 
                            
                           
                               
                           
                            
                           L 
                            
                           
                               
                           
                            
                           1 
                         
                         ≤ 
                         t 
                         &lt; 
                         0 
                       
                       , 
                     
                   
                 
                 
                   
                     
                       
                         V 
                          
                         
                             
                         
                          
                         1 
                          
                         
                             
                         
                          
                         min 
                       
                       , 
                     
                   
                   
                     
                       
                         If 
                          
                         
                             
                         
                          
                         0 
                       
                       ≤ 
                       t 
                       ≤ 
                       
                         L 
                          
                         
                             
                         
                          
                         2. 
                       
                     
                   
                 
               
             
           
         
       
     
         [0041]    Step Model  2  ( 34 ) Signal (BM 2 ): Let L 3 &lt;0, L 4 &gt;0, V 2 max≦1 and V 2 min≧0. It is defined as follows. The function is defined in interval [L 3 ,L 4 ]. 
         [0000]    
       
         
           
             
               BM 
                
               
                   
               
                
               2 
                
               
                 ( 
                 t 
                 ) 
               
             
             = 
             
               { 
               
                 
                   
                     
                       
                         V 
                          
                         
                             
                         
                          
                         2 
                          
                         
                             
                         
                          
                         min 
                       
                       , 
                     
                   
                   
                     
                       
                         
                           If 
                            
                           
                               
                           
                            
                           L 
                            
                           
                               
                           
                            
                           3 
                         
                         ≤ 
                         t 
                         &lt; 
                         0 
                       
                       , 
                     
                   
                 
                 
                   
                     
                       
                         V 
                          
                         
                             
                         
                          
                         2 
                          
                         
                             
                         
                          
                         max 
                       
                       , 
                     
                   
                   
                     
                       
                         If 
                          
                         
                             
                         
                          
                         0 
                       
                       ≤ 
                       t 
                       ≤ 
                       
                         L 
                          
                         
                             
                         
                          
                         4. 
                       
                     
                   
                 
               
             
           
         
       
     
         [0042]    Step Model  3  ( 35 ) Signal (BM 3 ): Let L 5 &lt;0, L 6 &gt;0, V 3 max≦1 and V 3 min≧0. It is defined as follows. The function is defined in interval [L 5 ,L 6 ]. 
         [0000]    
       
         
           
             
               BM 
                
               
                   
               
                
               3 
                
               
                 ( 
                 t 
                 ) 
               
             
             = 
             
               { 
               
                 
                   
                     
                       
                         V 
                          
                         
                             
                         
                          
                         3 
                          
                         
                             
                         
                          
                         max 
                       
                       , 
                     
                   
                   
                     
                       
                         
                           Eger 
                            
                           
                               
                           
                            
                           L 
                            
                           
                               
                           
                            
                           5 
                         
                         ≤ 
                         t 
                         &lt; 
                         0 
                       
                       , 
                     
                   
                 
                 
                   
                     
                       
                         V3 
                          
                         
                             
                         
                          
                         min 
                       
                       , 
                     
                   
                   
                     
                       
                         Eger 
                          
                         
                             
                         
                          
                         0 
                       
                       ≤ 
                       t 
                       ≤ 
                       
                         L 
                          
                         
                             
                         
                          
                         6. 
                       
                     
                   
                 
               
             
           
         
       
     
         [0043]    Values V 1 max, V 2  max and V 3 max are either 1 or very close to 1. Values V 1 min, V 2  min and V 3  min are either 0 or very close to 0. These values are values determined according to the linear normalization of the surface height matrix ( 5 ) in interval [ 0 ,  1 ]. In the event that the surface height matrix attains a value in another interval, these values may change. 
         [0044]    There may be an error in detection of the circle center of the cartridge case base ( 1 ). 
         [0045]    In pixel coordinates, the circle center may be detected not accurately but within a neighborhood of a certain number of pixels. Thus, improvement can be made on the detected center. For that purpose, a cost function is defined by using the signal similarity values—relevant similarity values of step model  1  ( 33 ), step model  2  ( 34 ), step model  3  ( 35 )) with AHSBR—acquired by the method within the circle detection module. Effort is made to either increase this cost above or decrease it below a certain value. The issue of whether to increase or decrease depends on how the cost is defined. For example, if the cross correlation function is defined as the cost function, then effort is made to increase the cost value above a certain value. Wandering in a neighborhood, the center of which is the center of the cartridge case base ( 1 ), it may be possible to find a more accurate circle center. However, this process increases the burden of calculation. 
         [0046]    Firing Pin Mark Detection Module ( 26 ): 
         [0047]    The firing pin mark ( 4 ) region is accepted to be an increasingly deepening region in the primer ( 2 ) region. In order for the estimation of the firing pin mark ( 4 ), first, the surface height matrix of the primer ( 2 ) region, where the firing pin mark ( 4 ) is located, is extracted from the entire surface height matrix ( 5 ) by primer extraction ( 20 ). In this process, a circular region which is a bit smaller than the primer ( 2 ) radius is selected. This is because distortions on the outer borders of the primer ( 2 ) and possible errors in the detection of the primer ( 2 ) circle may result in errors in selection of the firing pin mark ( 4 ). The primer ( 2 ) region selected is quantized ( 21 ) and a histogram of this quantized data is obtained ( 22 ). If one accepts that, in the primer ( 2 ) region, the area outside the firing pin mark ( 4 ) is rather plane, then the histogram should have a peak value. A threshold which is smaller than the peak value is selected ( 23 ) and the threshold function ( 24 ) is applied. Regions below the adaptively selected threshold value are accepted as the detected firing pin mark ( 25 ) region. In this detected firing pin mark ( 25 ) region, if there are empty areas that are not included in this region, these areas shall be included in the detected firing pin mark ( 25 ) region. 
         [0048]    Letter and Sign Detection 
         [0049]    There are certain letters and signs outside the primer ( 2 ) area on the cartridge case base ( 1 ). These signs are regions that should not be used in the comparison process. Thus, these signs and letters should be detected in the first place and comparison of these regions should be made accordingly. For detection of these regions on the surface height matrix, certain clues are used. The surface slope values of the circumference of these letters and signs are very high. This means, the surface has a sharp proclivity of almost 90 degrees. Thus, partial derivative of the surface taken in x- and y-directions may be used in detection of these regions. The resultant vector of these two derivative values is found. In other words, the magnitude of the surface gradient is obtained. For each point on the matrix, the magnitude ( 7 ) of the resultant of the surface derivatives is quantized ( 8 ). A new matrix is formed and on this matrix, the gradient magnitude value for each point corresponds to the same-coordinate element of a matrix to be used for sign and letter detection. On this matrix, regions that are above a certain threshold value are selected. In order to eliminate noise from among these selected regions, areas that are not bigger than a certain value are eliminated. Then, sections up to a close neighborhood of these remaining areas are also added to them. Thus the letter and sign regions are detected. 
         [0050]    Another approach to be used in this work is as follows: a gradient magnitude matrix (GMM) is formed with the magnitude of the surface gradient at each point obtained by the method explained above. Again, a gradient is applied on this matrix. A matrix is formed with the magnitude values of this gradient. A new matrix is formed and on this matrix, the gradient magnitude value for each point corresponds to the same-coordinate element of a matrix to be used for sign and letter detection. In order to eliminate noise from among these selected regions, areas that are not bigger than a certain value are eliminated. Then, sections up to a close neighborhood of these remaining areas are also added to them. Thus the letter and sign regions are detected. 
         [0051]    The following method can be used to calculate the gradient matrices of the surface. 
         [0052]    Mathematically, we can denote SHM by h(j,i). In the h(j,i), j denotes the value in the x-direction and i denotes the value in the y-direction on the Cartesian coordinate system. The height value of the point (j,i) on the matrix, in other words, the value of the matrix at that point, is h(j,i). h(j,i) is a height function sampled in equal intervals. First of all, for each pixel, a second-degree polynomial (p(j,i)=aj 2 +bi 2 +cij+di+ej+f), which covers the pixel and its surrounding pixels is fitted. While fitting the polynomial, around the pixel, a square area with a width of WR is taken into consideration. For the point n=WR*WR in the window, we can write the equations in matrix form as: 
         [0000]    
       
         
           
             
               
                 [ 
                 
                   
                     
                       
                         j 
                         1 
                         2 
                       
                     
                     
                       
                         i 
                         1 
                         2 
                       
                     
                     
                       
                         
                           j 
                           1 
                         
                          
                         
                           i 
                           1 
                         
                       
                     
                     
                       
                         j 
                         1 
                       
                     
                     
                       
                         i 
                         1 
                       
                     
                     
                       1 
                     
                   
                   
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         j 
                         n 
                         2 
                       
                     
                     
                       
                         i 
                         n 
                         2 
                       
                     
                     
                       
                         
                           j 
                           n 
                         
                          
                         
                           i 
                           n 
                         
                       
                     
                     
                       
                         j 
                         n 
                       
                     
                     
                       
                         i 
                         n 
                       
                     
                     
                       1 
                     
                   
                 
                 ] 
               
                
               
                 [ 
                 
                   
                     
                       a 
                     
                   
                   
                     
                       b 
                     
                   
                   
                     
                       c 
                     
                   
                   
                     
                       d 
                     
                   
                   
                     
                       e 
                     
                   
                   
                     
                       f 
                     
                   
                 
                 ] 
               
             
             = 
             
               [ 
               
                 
                   
                     
                       h 
                       1 
                     
                   
                 
                 
                   
                     ⋮ 
                   
                 
                 
                   
                     
                       h 
                       n 
                     
                   
                 
               
               ] 
             
           
         
       
       
         
           or 
         
       
       
         
           
             yx 
             = 
             
               s 
               . 
             
           
         
       
     
         [0053]    In the equation above, there are n equations for 6 variables. The system of equations can be solved in the least squares sense. The difference of the expected height values and the values at the surface gives the error to be minimized. The solution which minimizes this error is: 
         [0000]        x= (( y   r   y ) −1   y   r ) s    
         [0054]    The part in the parentheses is the pseudo-inverse of y. Thus, we find the surface parameters. 
         [0055]    Computation of the gradient: The gradient can be computed from the surface parameters as follows (See. Bryan S. Morse, Brigham Young University, ‘Lecture 11: Differential Geometry’, 2000. Source: 
         [0056]    http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MORSE/diffgeom.pdf. Date of last access: Feb. 8, 2008): 
         [0057]    The gradient is defined as follows: 
         [0000]    
       
         
           
             
               ∇ 
               
                   
               
                
               h 
             
             = 
             
               
                 [ 
                 
                   
                     
                       
                         L 
                         j 
                       
                     
                   
                   
                     
                       
                         L 
                         i 
                       
                     
                   
                 
                 ] 
               
               = 
               
                 g 
                 _ 
               
             
           
         
       
       
         
           where 
         
       
       
         
           
             
               
                 L 
                 j 
               
                
               
                 = 
                 Δ 
               
                
               
                 
                   
                     ∂ 
                     h 
                   
                   
                     ∂ 
                     j 
                   
                 
                 = 
                 
                   
                     2 
                      
                     aj 
                   
                   + 
                   ci 
                   + 
                   d 
                 
               
             
             , 
             
               
 
             
              
             
               
                 L 
                 i 
               
                
               
                 = 
                 Δ 
               
                
               
                 
                   
                     ∂ 
                     h 
                   
                   
                     ∂ 
                     i 
                   
                 
                 = 
                 
                   
                     2 
                      
                     bi 
                   
                   + 
                   cj 
                   + 
                   
                     e 
                     . 
                   
                 
               
             
           
         
       
     
         [0058]    The direction of the gradient is the direction of the vector  g , 
         [0000]    and it can be computed as follows: 
         [0000]    
       
         
           
             φ 
             = 
             
               
                 
                   tan 
                   
                     - 
                     1 
                   
                 
                  
                 
                   ( 
                   
                     
                       L 
                       i 
                     
                     
                       L 
                       j 
                     
                   
                   ) 
                 
               
               . 
             
           
         
       
     
         [0059]    Its magnitude, on the other hand, can be found as follows: 
         [0000]      |    g   =√{square root over (L j   2   +L   i   2 )}
 
       BRIEF DESCRIPTION OF THE DRAWINGS 
       [0060]    The system designed to conduct the work by using the subject method of this invention and other illustrative figures are illustrated in the annex, and among these illustrations; 
         [0061]      FIG. 1  is the cartridge case base image. 
         [0062]    Parts in the figure are each given a number and the legend that corresponds to each number is as follows:
         1 . Cartridge case base     2 . Primer     3 . Ejector mark     4 . Firing pin mark       
 
         [0067]      FIG. 2  is the general architecture of the method. 
         [0068]    Parts in the figure are each given a number and the legend that corresponds to each number is as follows:
         5 . Surface height matrix     6 . Quantization     7 . Magnitude of the resultant of surface derivatives     8 . Quantization     9 . Smoothing     10 . 21HT method     11 . Center selection     12 . Detected center     13 . Center detection module     14 . Normalization     15 . Polar transformation     16 . One dimensional signal reconstruction     17 . Signal similarity analysis     18 . Circles     19 . Circle detection module     20 . Primer extraction     21 . Quantization     22 . Histogram drawing     23 . Threshold selection     24 . Threshold function     25 . Detected firing pin mark     26 . Firing pin mark detection module       
 
         [0091]      FIG. 3  shows the circles on the cartridge case. 
         [0092]    Parts in the figure are each given a number and the legend that corresponds to each number is as follows:
         27 . Cartridge case base circle     28 . Primer circle     29 . Primer pocket gap circle       
 
         [0096]      FIG. 4  is the general outline of a representative AHSBR drawing. 
         [0097]    Parts in the figure are each given a number and the legend that corresponds to each number is as follows:
         30 . Primer border     31 . Primer pocket gap border     32 . Cartridge case base border       
 
         [0101]      FIG. 5  shows the step models. 
         [0102]    Parts in the figure are each given a number and the legend that corresponds to each number is as follows:
         33 . Step model  1       34 . Step model  2       35 . Step model  3