Abstract:
An X-ray diffraction system uses a two-dimensional detector to detect diffracted X-ray energy at a plurality of radial positions surrounding a sample location, the results at each position being combined to form a final diffraction image. To minimize smearing in the final image, the detector pixel intensities at each position are reapportioned among the pixel locations prior to being combined with the intensities collected at other positions. A two-dimensional pixel array space of the detector is projected onto a cylinder to form a projected pixel array space, and a virtual cylindrical detection surface representative of an ideal cylindrical detector is determined. An overlap between the pixels of the projected pixel array space and the pixels of the virtual cylindrical detection surface is determined, and pixel intensities are reapportioned accordingly. The reapportionment may include dividing each pixel space into subpixels and redistributing the subpixels among adjacent pixels.

Description:
BACKGROUND OF THE INVENTION 
       [0001]    Field of the Invention 
         [0002]    This invention relates generally to the field of X-ray diffraction and, more specifically, to the compensation for scattering angle distortions in two-dimensional X-ray detectors. 
         [0003]    Description of the Related Art 
         [0004]    In the field of x-ray diffraction, radiation with a wavelength, λ, in the subnanometer range is directed to a crystalline material with a given interatomic spacing, d. When the angle of incidence, θ, relative to the crystalline structure satisfies the Bragg equation, λ=2d sin θ, an interferometrically reinforced signal (the diffracted signal), may be observed leaving the material, with an angle of emission being equal to an angle of incidence, both angles being measured with respect to a direction normal to the interatomic spacing of interest. 
         [0005]    Diffracted X-rays from a single crystal sample follow discrete directions each corresponding to a family of diffraction planes, as shown schematically in  FIG. 1A . The diffraction pattern from a polycrystalline (powder) sample forms a series diffraction cones, as shown in  FIG. 1B , if large numbers of crystals oriented randomly in the space are covered by the incident x-ray beam. Each diffraction cone corresponds to the diffraction from the same family of crystalline planes in all the participating grains. Polycrystalline materials can be single-phase or multi-phase in bulk solid, thin film or fluid. For example,  FIG. 2  shows the diffraction pattern of corundum powder collected by a two-dimensional (2D) X-ray detector. 
         [0006]      FIG. 3  is a schematic illustration showing the geometry of an X-ray diffraction system in the laboratory coordinates system X L Y L Z L . The origin of the coordinate system is the instrument center, or goniometer center. The source X-ray beam propagates along the X L  axis, which is also the rotation axis of the diffraction cones. The apex angles of the diffraction cones are determined by the 2θ values given by the Bragg equation. In particular, the apex angles are twice the 2θ values for forward reflection (2θ≦90°) and twice the values of 180°-2θ for backward reflection (2θ&gt;90°). The X L -Y L  plane is the diffractometer plane. The γ angle defines the direction of a diffracted beam relative to the diffraction cone. It is measured within a plane parallel to the Y L -Z L  plane from the point at which the cone intersects the −z portion of the y=0 axis to the point at which the diffracted beam intersects the plane. Thus, a point in the −Y L  portion of the diffractometer plane corresponds to γ=90°, while a point in the +Y L  portion of the diffractometer plane corresponds to γ=270°. Thus, the γ and 2θ angles form a kind of spherical coordinate system which covers all the directions from the origin, where the sample is located. 
         [0007]    An ideal detector to measure a diffraction pattern in three-dimensional (3D) space is a detector with spherical detecting surface, as shown in  FIG. 4 . The sample is in the center of the sphere, and all of the pixels of the detector are equally distanced from the sample. This configuration, however, is very impractical and, in practice, the detection surface will be flat, cylindrical or with another curved shape. Therefore, the pixel-to-sample distance varies within a detector. Correspondingly, angular coverage of a pixel in the same detector is different depending on the location of the pixel within the detector. 
       SUMMARY OF THE INVENTION 
       [0008]    In accordance with the present invention, a method and apparatus for performing an X-ray diffraction analysis of a sample is provided which avoids scattering angle distortion in the collected data. The sample is first located in a goniometer at the origin of a three-dimensional coordinate system having mutually perpendicular X L , Y L  and Z L  axes. The sample is illuminated with an X-ray beam directed along the X L  axis such that diffracted X-rays from the sample are emitted along a range of diffraction angles. The diffracted X-rays are detected with a two-dimensional X-ray detector having a minimum distance D from a center of the sample along a radial direction in the X L -Y L  plane that is substantially perpendicular to a surface of the detector. The detector surface is planar and has an array of detector pixels located in a two-dimensional pixel array space surrounding the origin. During the diffraction analysis, the detector moves along a circular path relative to the sample at a constant distance therefrom. The movement may be continuous or in a step-wise fashion. 
         [0009]    Because the two-dimensional detector shape of the detector array will result in varying images of the diffracted X-rays from one detector position to another, the image at each position is adjusted to reapportion the X-ray intensities detected by each detector pixel. To do this, the two-dimensional pixel array space is projected along the range of diffraction angles onto a cylinder having a radius relative to the Z L  axis of length equal to the distance D to form a projected pixel array space. A virtual cylindrical detection surface on said cylinder is determined which has an array of virtual pixels each of which, in an exemplary embodiment, corresponds to one of the detector pixels. A spatial overlap between pixels of the projected pixel array and the virtual detection surface is then determined, and detected X-ray intensities are then reapportioned among the pixels of the detector based on the overlap such that the reapportioned pixel intensity values represent those which would have been detected by a cylindrical detector having a detection surface at said virtual cylindrical detection surface. In an exemplary embodiment, there is a one-to-one correspondence between the pixels of the projected pixel array space and the virtual pixels of the virtual cylindrical detection surface, although other relative numbers of pixels can also be accommodated. 
         [0010]    During the scan, as the detector moves about the sample, it is progressively positioned along a series of different radial directions in the X L -Y L  plane so as to collect diffraction data along a desired angular range, and the pixel intensities are reapportioned at each detector position. The reapportioned pixel intensities collected at each radial position are then combined relative to the diffraction angle so as to generate the overall detection image. The movement of the detector is typically such that diffracted X-rays emitted along the same diffraction angle are detected by the detector for at least two of said plurality of radial directions. Although the diffracted X-rays along each diffraction angle are collected by different pixels at different radial positions of the detector, the reapportionment of the pixel intensities in accordance with the invention allows the combination of the images taken at each position to nonetheless present a consistent and accurate diffraction image, as would be collected by a cylindrical detector. 
         [0011]    In one embodiment of the invention, determining the spatial overlap of the pixels of the projected pixel array and the virtual detection surface and reapportioning the X-ray intensities includes breaking each pixel space into subpixels, and redistributing the subpixels among adjacent pixels according to the overlap. The quantitative redistribution of subpixels thereby facilitates the proper reapportionment of pixel intensities. In an exemplary embodiment, the subpixels for a given pixel each represent an equal portion of the total X-ray intensity for that pixel. 
         [0012]    In a system applying the method of the invention, a detector output module may receive the pixel outputs at each of the plurality of radial directions and perform the reapportionment of the pixel intensities. The output module may be part of a control system for controlling the operation of the goniometer and the detector, and may be part of a host computer for the system. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0013]      FIG. 1A  is a schematic representation of X-rays diffracted from a single crystal sample. 
           [0014]      FIG. 1B  is a schematic representation of X-rays diffracted from a polycrystalline sample. 
           [0015]      FIG. 2  is an image of a two-dimensional diffraction pattern of corundum showing the corresponding diffraction rings. 
           [0016]      FIG. 3  is a schematic representation of the geometric relationship of diffraction rings in a diffractometer. 
           [0017]      FIG. 4  is a schematic representation of an ideal spherical X-ray diffraction detector. 
           [0018]      FIG. 5  is a schematic illustration showing diffraction rings detected by a two-dimensional detector at different detector positions in accordance with the present invention. 
           [0019]      FIG. 6  is a schematic illustration of a two-dimensional detector according to the present invention relative to a detection circle around a sample. 
           [0020]      FIG. 7  is a schematic illustration of the smearing effect produced by superimposing sequential frames using a two-dimensional X-ray detector. 
           [0021]      FIG. 8A  is a schematic illustration of the pixel layout on a two-dimensional X-ray detector. 
           [0022]      FIG. 8B  is a schematic illustration of the pixel layout of a two-dimensional pixel layout when projected onto a cylindrical surface. 
           [0023]      FIG. 9  is a schematic illustration of the absence of smearing when the cylindrical projections from sequential two-dimensional frames are combined. 
           [0024]      FIG. 10  is a schematic representation of the projection of a two-dimensional detector image onto a cylindrical surface. 
           [0025]      FIG. 11  is a schematic illustration of the pixel overlap between a projected two-dimensional detector image and a cylindrical pixel space. 
           [0026]      FIG. 12  is a schematic illustration of the use of subpixels in reapportioning intensity values detected by detector pixels. 
           [0027]      FIG. 13  is a schematic illustration of a system according to the present invention. 
       
    
    
     DETAILED DESCRIPTION 
       [0028]    Shown in  FIG. 5  is a schematic view of a flat, 2D detector at different positions during an X-ray diffraction scan. In this example, the system is shown using laboratory coordinates X L Y L Z L . The detection surface can be viewed as a plane which, at each position, intersects the diffraction cone to form a conic section. The detector position is defined by the sample-to-detector distance D and the detector swing angle α. D is the perpendicular distance from the goniometer center to the detection plane and α is a right-handed rotation angle about the Z L  axis. At position  1 , the center of the detector is located on the positive side of X L  axis, such that α=0. Each of detector positions  2  and  3  are rotated away from X L  axis with negative swing angles (i.e., α&lt;0), identified, respectively, as α 2  and α 3 . Because of the two-dimensional area of the detector, at a given detector angle α, a range of 2θ values can be measured. 
         [0029]    As can be seen from  FIG. 5 , a diffraction frame collected by a 2D detector at a particular position includes a limited angular range. One way to extend the angular range is by merging multiple frames collected at different swing angles. Another method is to scan over a large 2θ range by rotating the 2D detector about the Z L  axis. As shown schematically in  FIG. 6 , a 2D detector may be mounted in an orientation that is perpendicular to the diffractometer plane and perpendicular to a line in the diffractometer plane that defines the minimum distance to the detector surface. The length of this line also represents the distance D between the detection plane and the instrument center and, together with the swing angle α, can be used to define the detector position, as described above. The detector swing angle α is defined as the angle measured between the X L  axis and the line between the instrument center and the detection surface. 
         [0030]    The intersection (o) of the line and detector may be referred to as the detector center, and represents the origin of a two-dimensional x-y coordinate system within the plane of the detector. Thus, the location of any pixel in the 2D detector may be defined by its pixel position (x, y) within this coordinate system. During the data collection scan, the swing angle α changes continuously or in steps while collecting the X-ray counts with the detector. Therefore, during the scan of the detector about the Z L  axis, the y-axis of the detector traces a cylindrical surface during the data collection, as shown in  FIG. 6 . 
         [0031]    Using the parameters shown in  FIG. 6 , the distance of a particular point (or pixel) on the detector, P(x,y), to the sample may be described as: 
         [0000]        R ( x,y )=√{square root over ( D   2   +x   2   +y   2 )}  (1)
 
         [0000]    If the size of a particular pixel is given as Δx and Δy (i.e., the width, Δx, of the pixel in the detector x-direction, and the height, Δy, of the pixel in the detector y-direction, the solid angle covered by a pixel centered at P(x,y) may be represented as: 
         [0000]    
       
         
           
             
               
                 
                   ΔΩ 
                   = 
                   
                     
                       Δ 
                        
                       
                           
                       
                        
                       
                         x 
                         · 
                         Δ 
                       
                        
                       
                           
                       
                        
                       
                         y 
                         · 
                         D 
                       
                     
                     
                       
                         R 
                         3 
                       
                        
                       
                         ( 
                         
                           x 
                           , 
                           y 
                         
                         ) 
                       
                     
                   
                 
               
               
                 
                   ( 
                   2 
                   ) 
                 
               
             
           
         
       
     
         [0000]    The 2θ and γ values of the point P(x,y) on the flat 2D detector are given as: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       2 
                        
                       θ 
                     
                     = 
                     
                       arccos 
                        
                       
                         
                           
                             x 
                              
                             
                                 
                             
                              
                             sin 
                              
                             
                                 
                             
                              
                             α 
                           
                           + 
                           
                             D 
                              
                             
                                 
                             
                              
                             cos 
                              
                             
                                 
                             
                              
                             α 
                           
                         
                         
                           
                             
                               D 
                               2 
                             
                             + 
                             
                               x 
                               2 
                             
                             + 
                             
                               y 
                               2 
                             
                           
                         
                       
                     
                   
                   , 
                   
                     ( 
                     
                       0 
                       &lt; 
                       
                         2 
                          
                         θ 
                       
                       &lt; 
                       π 
                     
                     ) 
                   
                 
               
               
                 
                   ( 
                   3 
                   ) 
                 
               
             
             
               
                 
                   
                     γ 
                     = 
                     
                       
                         
                           
                             x 
                              
                             
                                 
                             
                              
                             cos 
                              
                             
                                 
                             
                              
                             α 
                           
                           - 
                           
                             D 
                              
                             
                                 
                             
                              
                             sin 
                              
                             
                                 
                             
                              
                             α 
                           
                         
                         
                            
                           
                             
                               x 
                                
                               
                                   
                               
                                
                               cos 
                                
                               
                                   
                               
                                
                               α 
                             
                             - 
                             
                               D 
                                
                               
                                   
                               
                                
                               sin 
                                
                               
                                   
                               
                                
                               α 
                             
                           
                            
                         
                       
                        
                       arccos 
                        
                       
                         
                           - 
                           y 
                         
                         
                           
                             
                               y 
                               2 
                             
                             + 
                             
                               
                                 ( 
                                 
                                   
                                     x 
                                      
                                     
                                         
                                     
                                      
                                     cos 
                                      
                                     
                                         
                                     
                                      
                                     α 
                                   
                                   - 
                                   
                                     D 
                                      
                                     
                                         
                                     
                                      
                                     sin 
                                      
                                     
                                         
                                     
                                      
                                     α 
                                   
                                 
                                 ) 
                               
                               2 
                             
                           
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     ( 
                     
                       
                         - 
                         π 
                       
                       &lt; 
                       γ 
                       ≤ 
                       π 
                     
                     ) 
                   
                 
               
               
                 
                   ( 
                   4 
                   ) 
                 
               
             
           
         
       
     
         [0032]    During the data collection scan, X-ray diffraction data is collected at each of the pixels of the 2D detector. However, as can be seen from  FIG. 6 , there is a variable pixel-to-sample distance for the different pixels depending on their location on the detection surface relative to the detection center o. The further a pixel is from the center, the larger the pixel-to-sample distance. As the detector is moved along the scan direction, a given diffracted X-ray beam will be detected by different pixels of the detector, which is moving relative to the beam.  FIG. 7  shows a series of detector frames distributed across the scanning range of the detector, with a corresponding image of the detected diffraction rings shown underneath. Since there will be slight differences in the frames with regard to the relative position of the X-ray energy detected away from the detector center (the differences increasing toward the detector edges), merely combining this information results in a smearing of the recorded position of the diffraction rings, as shown in the lower portion of  FIG. 7 . 
         [0033]    In order to provide more accurate position data for a system like that described above, the present invention projects all the frames detected by the 2D detector onto a cylindrical surface based on the scattering angle from the incident beam. This scattering angle can be given by the 2θ and γ angles or a different set of angles. Typically, the pixels of a flat 2D detector each cover a square (or rectangular) area, and all have the same shape and size, as illustrated in the schematic diagram of  FIG. 8A . However, when projecting these pixels onto a cylindrical surface, the relative shape of the pixels is dependent on their respective distance from the detector origin o, as shown in  FIG. 8B . The projected image therefore gives the correct scattering angles for all projected pixels and all of the projected images collected at sequential detector positions are adapted to the same cylindrical surface. As such, the scanned image by superposition of the cylindrical projections will accurately show the diffraction rings without a smearing effect. Those skilled in the art will understand that, while this embodiment uses a similar number of pixels for the virtual cylindrical detection surface as exists in the two-dimensional detector, it is not necessary to maintain a one-to-one correspondence between the pixels of each. 
         [0034]      FIG. 9  is a schematic illustration similar to that of  FIG. 7 , but in which the indicated detector frames have been projected onto a cylindrical surface. Because of this projection, the relative diffraction data from frame-to-frame is properly aligned, and summing the frames provides a mapping of the diffraction rings that is clear and without smearing, as shown in the lower portion of  FIG. 9 . However, proper projection of the flat, 2D detector surface onto a cylindrical surface requires that the data detected by the respective pixels of the detector be properly assigned to the corresponding virtual pixels of the cylindrical surface. 
         [0035]    A geometrical relationship between the flat 2D image and the cylindrical virtual surface in laboratory coordinates is depicted in  FIG. 10 . The intersection between the X L  axis and the cylindrical surface may be used as the origin, o′ of the cylindrical surface. The image on the cylindrical surface will be displayed as a flat image with axes u and v in rectangular coordinates. The direction of an arbitrary scattered beam S can be given by the diffraction parameters 2θ and γ. Any point on the flat detector can be projected onto the cylindrical surface by following a particular direction given by the 2θ and γ values. The 2θ and γ values for a point on the flat detector can, in turn, be calculated from its detector coordinates x and y. The u and v values on the cylindrical surface can then be calculated from 2θ and γ based on equations known in the art (see, for example, Bob He, “ Two - dimensional X - ray Diffraction ”, John Wiley &amp; Sons, (2009)). An alternative geometry given by the angle β and ρ may also be used, and can often simplify the calculation. In such a geometry, β is the angle between an arbitrary scattered beam, S, and X L , as projected on the diffractometer plane X L -Y L . The rotation axis of β is the Z L  axis, which is also the axis of the cylindrical surface. The value ρ represents the angle between S and the diffractometer plane. 
         [0036]    For the flat 2D detector, the scattering angle of a point P(x,y), in terms of β and ρ, can be given as: 
         [0000]    
       
         
           
             
               
                 
                   
                     ρ 
                     = 
                     
                       arctan 
                        
                       
                         y 
                         
                           
                             
                               x 
                               2 
                             
                             + 
                             
                               D 
                               2 
                             
                           
                         
                       
                     
                   
                    
                   
                     
 
                   
                    
                   and 
                 
               
               
                 
                   ( 
                   5 
                   ) 
                 
               
             
             
               
                 
                   β 
                   = 
                   
                     α 
                     - 
                     
                       arctan 
                        
                       
                         x 
                         D 
                       
                     
                   
                 
               
               
                 
                   ( 
                   6 
                   ) 
                 
               
             
           
         
       
     
         [0000]    For the cylindrical image, the scattering angle of a point P′(u,v) is given as: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       ρ 
                       ′ 
                     
                     = 
                     
                       arctan 
                        
                       
                         v 
                         D 
                       
                     
                   
                    
                   
                     
 
                   
                    
                   and 
                 
               
               
                 
                   ( 
                   7 
                   ) 
                 
               
             
             
               
                 
                   
                     β 
                     ′ 
                   
                   = 
                   
                     - 
                     
                       u 
                       D 
                     
                   
                 
               
               
                 
                   ( 
                   8 
                   ) 
                 
               
             
           
         
       
     
         [0000]    Any point on the flat 2D detector should be projected to the point on the cylindrical surface with the same scattering angle, i.e., ρ=ρ′ and β=β′. Therefore, we can derive the following projection equations from the above four equations: 
         [0000]    
       
         
           
             
               
                 
                   u 
                   = 
                   
                     D 
                      
                     
                       ( 
                       
                         
                           arctan 
                            
                           
                             x 
                             D 
                           
                         
                         - 
                         α 
                       
                       ) 
                     
                   
                 
               
               
                 
                   ( 
                   9 
                   ) 
                 
               
             
             
               
                 
                   v 
                   = 
                   
                     Dy 
                     
                       
                         
                           x 
                           2 
                         
                         + 
                         
                           D 
                           2 
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   10 
                   ) 
                 
               
             
           
         
       
     
         [0037]      FIG. 11  shows the pixel-to-pixel correspondence when projecting a pixel of the flat 2D detector onto the flattened image of the cylindrical surface. Each pixel in the flat 2D detector projected to the cylindrical image defined by the box of solid lines. The pixels of the cylindrical image are defined by the grid of dotted lines, each having a pixel size of Δu×Δv. Due to the projection geometry described above, each pixel from the flat 2D detector may contribute to several pixels in the cylindrical image. For example, the pixel P (x,y)  shown in the flat 2D detector of  FIG. 11  overlaps to some extent with four different pixels in the cylindrical image. As such, X-ray energy detected by P (x,y)  should be distributed to each of the four virtual pixels of the cylindrical surface. Thus, a degree of overlap between the pixels of the detector and those of the cylindrical surface must be accounted for to get an accurate projection. 
         [0038]    Different methods may be used to get an accurate projection of the pixels. For example, The areas of the pixel P (x,y)  that overlap, respectively, with pixels  1 ,  2 ,  3  and  4  shown in  FIG. 11  may be calculated using equations (9) and (10) above. The intensity counts collected by the pixel P (x,y)  can then be distributed to the pixels  1 ,  2 ,  3  and  4  in a proportional manner relative to the respective area of overlap for each. However, the area of the pixel is difficult to calculate due to the curved pixel boundaries. An alternative approach is to divide the intensity count of each pixel in the flat 2D image among a set of identical subpixels equally distributed within the pixel space, as shown in  FIG. 12 . In this representation, the subpixels are discrete points evenly distributed inside the pixel area and are marked by circles or dark spots. 
         [0039]    In the subpixel distribution of  FIG. 12 , if the total number of subpixels within each pixel is M, the scattering intensity count assigned to each subpixel is the total count divided by M. Thus, the subpixels falling into cylindrical pixel  1  (shown as circles in the upper-left region of the pixel space of P (x, y) ) are assigned to that pixel. Similarly, the subpixels falling, respectively, into the one of the regions of pixels  2 ,  3  and  4  are assigned to that subpixel. Since each subpixel in the flat 2D image can be located in the cylindrical image by equation (9) and (10), this allows for assignment of the subpixels, and their corresponding intensity values, to the appropriate pixels of the cylindrical surface. In this way, the smearing effect is eliminated and an accurate localization of the diffraction rings may be determined. 
         [0040]    The diffraction space coordinates (2θ, γ) for a pixel or any point P(u,v) in the cylindrical image can be calculated from the following two equations: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       2 
                        
                       θ 
                     
                     = 
                     
                       arccos 
                        
                       
                         [ 
                         
                           D 
                            
                           
                               
                           
                            
                           
                             
                               cos 
                                
                               
                                 ( 
                                 
                                   u 
                                   D 
                                 
                                 ) 
                               
                             
                             / 
                             
                               
                                 
                                   D 
                                   2 
                                 
                                 + 
                                 
                                   v 
                                   2 
                                 
                               
                             
                           
                         
                         ] 
                       
                     
                   
                   , 
                   
                     ( 
                     
                       0 
                       &lt; 
                       
                         2 
                          
                         θ 
                       
                       &lt; 
                       π 
                     
                     ) 
                   
                 
               
               
                 
                   ( 
                   11 
                   ) 
                 
               
             
             
               
                 
                   γ 
                   = 
                   
                     
                       u 
                       
                          
                         u 
                          
                       
                     
                      
                     
                       arccos 
                        
                       
                         [ 
                         
                           
                             - 
                             v 
                           
                           / 
                           
                             
                               
                                 v 
                                 2 
                               
                               + 
                               
                                 
                                   D 
                                   2 
                                 
                                  
                                 
                                   
                                     sin 
                                     2 
                                   
                                    
                                   
                                     ( 
                                     
                                       u 
                                       D 
                                     
                                     ) 
                                   
                                 
                               
                             
                           
                         
                         ] 
                       
                     
                      
                     
                         
                     
                      
                     
                       ( 
                       
                         
                           - 
                           π 
                         
                         &lt; 
                         γ 
                         ≤ 
                         π 
                       
                       ) 
                     
                   
                 
               
               
                 
                   ( 
                   12 
                   ) 
                 
               
             
           
         
       
     
         [0000]    These equations may be used to integrate the diffraction data into a 2θ or γ-profile. Once the diffraction space coordinates (2θ, γ) of each pixel in the cylindrical image are determined, most data analysis approaches developed for the flat detectors are applicable. 
         [0041]    Shown in  FIG. 13  is a system according to the invention including the sample  10 , goniometer  12 , X-ray beam source  14  and X-ray detector  16 . Also shown is detector output module  18 , which receives the outputs from each of the detector pixels, and performs the reapportionment of the pixel intensities as described above. In an exemplary embodiment of the invention, the output module  18  is part of a host computer  20  used for controlling the system components and conducting the diffraction scan accordingly. However, the output module  18  may also be part of the detector unit itself, or it may be a separate unit altogether. Those skilled in the art will recognize that different configurations in this regard are possible. 
         [0042]    While the invention has been shown and described with reference to specific embodiments thereof, it will be recognized that various changes in form and detail may be made herein without departing from the spirit and scope of the invention as defined by the appended claims.