Abstract:
The invention relates to the field of digital processing of x-ray images and can be used in digital subtraction angiography to compensate for impact of involuntary patient movement and movement of internal organs on image of the vascular system. The technical result of the claimed invention is the improvement of diagnostic value of subtraction angiographic images by eliminating artifacts caused by the motility of anatomical structures. Technical result is achieved by the that at the stage of digital images registration a search for characteristic details is performed for each image. According to the shift of the said details determine expectable shift of a patient organs. Then perform segmentation of image from the pre-contrast series in the region of homogenous warping; for each region a geometrical transformation is calculated and corresponding geometrical transformations are performed for each region of a series of pre-contrast digital images.

Description:
RELATED APPLICATIONS 
       [0001]    This application claims priority to Eurasian Patent Application No. EA201200924, filed Jul. 10, 2012, which is incorporated herein by reference in its entirety. 
       FIELD OF THE INVENTION 
       [0002]    The invention relates to the field of digital X-ray image processing and can be applied to digital subtraction angiography aimed at compensating the impact of patient&#39;s involuntary movement and its internal organs normal movement on images of the vascular system. 
       BACKGROUND OF THE INVENTION 
       [0003]    An angiography is a medical imaging technique used to visualize the inside of blood vessels based on injecting a contrast medium into the patient&#39;s blood vessels under examination. Besides vessels in the angiograms can be seen the surrounding organ and tissue images that often interfere with recognizing vessels filled with contrast medium. In order to make surrounding tissue less visible in digital subtraction angiography (DSA) they generate a pre-contrast image that is an x-ray image of a patient&#39;s region of interest (ROI) obtained before contrast agent to be injected into vessel system. Then, a sequence of images is taken to show the passage of injected contrast agent through vessels of interest. These images being called post-contrast images are those images that are registered at the beginning of contrast medium injection; they represent phases of blood vessels contrast medium fulfillment, along blood vessels advancement and gradual in blood dissolution. Due to subtraction of the post-contrast image from the pre-contrast image the artifacts not belonging to vessel system could be corrected. This means vessels visibility enhancement and treatment and diagnostic improvement. 
         [0004]    Since acquisition of post-contrast and pre-contrast images is performed at different time points any space change of surrounding tissue and organs cause artifacts in images. They are especially visible on the contrast borders of the movable organs. In some cases the contrast of artifacts exceeds that of blood vessels which leads to masking essential fragments of the vessel system and makes some details unrecognizable. 
         [0005]    It is known a method for matching images (U.S. Pat. No. 7,409,078) applied in DSA. According to this method a DSA image is generated as follows: 
         [0006]    Obtain pre-contrast image before contrast agent injection into patient&#39;s vessel system; 
         [0007]    Inject contrast agent into patient&#39;s vessel system; 
         [0008]    Obtain post-contrast image; 
         [0009]    place a regular grid on pre-contrast image; 
         [0010]    match post-contrast and pre-contrast images using control points in the grid crossings; 
         [0011]    calculate a subtracted image which is to be displayed on the monitor; 
         [0012]    test control points stability; if it is not sufficient divide the grid into smaller or bigger cells. 
         [0013]    The method suffers from incomplete set of processed image characteristics; this leads to suboptimal correction of motion artifact. 
         [0014]    It is known a method and device for DSA images (U.S. Pat. No. 5,848,121). According to this method a DSA image is generated as follows: 
         [0015]    Obtain pre-contrast image before contrast agent injection into patient&#39;s vessel system; 
         [0016]    Inject contrast agent into patient&#39;s vessel system; 
         [0017]    Obtain post-contrast image; 
         [0018]    Find a set of particular details in pre-contrast and post-contrast images; 
         [0019]    Determine correspondence between identified particular details in both images; 
         [0020]    Build a model of adaptive local geometrical transform based on characteristic point coordinates; 
         [0021]    Apply obtained transform to deform pre-contrast image; 
         [0022]    build a subtracted image by means of subtracting the logarithm of deformed pre-contrast image from the logarithm of post-contrast image. 
         [0023]    The method&#39;s shortcoming is that fallacious determination of characteristic point correspondence of pre-contrast and post-contrast images leads to irremovable defects in the resulted image. 
         [0024]    The closest method to the disclosed herein is the method of matching, subtraction and displaying chest x-ray images according to the patent application U.S. No. 2010/0266188. The method consists in the following operations: 
         [0025]    Obtain pre-contrast image before contrast agent injection into patient&#39;s vessel system; 
         [0026]    Inject contrast agent into patient&#39;s vessel system; 
         [0027]    Obtain post-contrast image; 
         [0028]    Thus, obtain at least two x-ray images visualizing the same organs; 
         [0029]    Perform preliminary image processing involving normalization according to the size, intensity and color depth, as well as ROI selection; 
         [0030]    Perform rough image matching including shift- and rotation compensation; 
         [0031]    Perform precise image matching, using correlated matching of small details or methods for optical flow computation; 
         [0032]    Subtract matched images in a way to provide the best visibility of required details and the best removal of the extraneous details. 
         [0033]    Common with the claimed method features are: 
         [0034]    Estimation of geometrical transforms connecting matched images over limited set of control regions. 
         [0035]    Possibility to compensate shift, rotation and local warping of examined organs in the image. 
         [0036]    Multiscale analysis of images at motion estimation. 
         [0037]    Subtraction processing of matched images aimed at special detail enhancement (vessels in the claimed invention or lung micronodules in the prototype). 
         [0038]    The main disadvantage of the method claimed in U.S. No. 2010/0266188 is limited accuracy of motion estimation when the examined object has specific characteristics which considerably effects quality of obtained angiogram. This is because of sequential process of motion compensation at different scales, from large scale (rough) towards smaller scale (more accurate). As spatial frequency analysis of multiplicity of images encountered in clinical practice shows many images contain essential details that result in reduction of spatial resolution only. In these cases the said method provides accurate results till a definite moment after which it results in error accumulation. 
         [0039]    Besides, according to the known method the function of coordinate transformation is smooth within the ROI what adversely affects the motion compensation precision provided at least two moving fragments with clearly defined edges are in the ROI. 
       SUMMARY OF THE INVENTION 
       [0040]    The technical result of the present invention consists in increase of diagnostic value of subtraction angiogram due to removal of moving anatomical structures artifacts. 
         [0041]    The technical result of the method for acquisition of subtraction angiogram COMPRISES performing by means of x-ray device an x-ray exposure of a patient resulting in acquisition of a series of N pre-contrast digital images, injecting contrast agent into patient&#39;s vessel system and obtaining after an exposure post-contrast image series of M digital images; further matching spatial correspondence of digital pre-contrast and post-contrast image series; subtracting pre-contrast images from post-contrast ones; and transferring obtained digital angiogram to output device is ACHIEVED by that at the stage of image matching the search of characteristic details in each image is performed; referring to the shifts of the said details likely shifts of patient&#39;s organs are determined; image segmentation of pre-contrast image series within the similar motion area is performed; geometrical transformation for each area is calculated; appropriate geometrical transformation for all areas in pre-contrast image series is applied. 
         [0042]    Another possible embodiment of the present invention wherein as characteristic details such elements of bone structures and patient&#39;s organs are selected in a way that their position in digital images during an exposure is definitely determined regardless of change in their position in space. 
         [0043]    Another possible embodiment of the present invention wherein at segmentation of pre-contrast image series within the similar motion area a finite set of possible shifts against the current image of post-contrast series is ascribed to each characteristic detail further, areas within which characteristic details move in concord are selected. 
         [0044]    Another possible embodiment of the present invention wherein in pre-contrast image series unmovable parts of x-ray equipment are selected; and at the stage of digital image matching these areas are given a zero-shift. 
         [0045]    Another possible embodiment of the present invention wherein after acquisition of pre-contrast series of N digital images a single referring pre-contrast image by means of weighted summation of digital images is generated, wherein the first one is stored without changes and, for each subsequent image before summation with current reference image spatial matching with the latter is performed. 
         [0046]    Another possible embodiment of the present invention wherein during acquisition of a series of post-contrast digital images the reference image from post-contrast series is selected; wherein this image is subjected to characteristic detail search, shift estimation and segmentation repeatedly. 
         [0047]    Another possible embodiment of the present invention wherein in each of obtained digital images organs and tissues shadowing each other are divided into at least two overlapped images which are the slices corresponding to organs and tissues of different depth; image matching is performed independently for each slice with subsequent summation. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0048]    The claimed solution, as well as the potential of its practical implementation and accomplishment of its practical objective, outlined above are illustrated in  FIGS. 1 through 4 . 
           [0049]      FIG. 1  shows an x-ray device; 
           [0050]      FIG. 2  shows the content of post-contrast image series; 
           [0051]      FIG. 3 . shows segmentation of moving organs; 
           [0052]      FIG. 4 . shows processing results. 
       
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
       [0053]    Acquisition of digital x-ray images is performed, for example, by means of the x-ray device shown in  FIG. 1 . It comprises x-ray tube  1  which emits a flow of x-rays  2 . X-rays  2  go through the patient&#39;s body  3  placed on the table  4  and enter the receiver  5 . The receiver  5  provides conversion of x-rays into a digital image. In one of the possible versions of embodiment the receiver can comprise a scintillating screen (not shown) converting x-rays into visible light and a photosensitive matrix array (not shown). The x-ray tube  1  the receiver  5  are fixed on the support  6  having 4 degrees of freedom concerning motion against the table. 
         [0054]    According to the claimed method patient&#39;s exposure resulted in acquisition of pre-contrast series of N digital images (where N≧1). Having injected contrast agent into patient&#39;s vessel system one can obtain post-contrast series of M digital images (where M≧1). For every image of post-contrast series one can select an appropriate reference image which can belong to either pre-contrast or post-contrast series or be a result of combined processing of a number of previous images from both the series. 
         [0055]    According to different types of the invention embodiments the following versions of acquisition and processing images of pre-contrast and post-contrast series. 
         [0056]    1. A pre-contrast series of N digital images (where N≧1) is obtained while support is motionless. The image of the highest quality selected manually (or a single pre-contrast image, N=1) is used as a reference image during processing of all images from post-contrast series. 
         [0057]    2. A pre-contrast series of at least two digital images is obtained while support is motionless. The image of the highest quality selected manually is saved as a reference image. All subsequent images undergo spatial matching with the reference image. Matched images are subject to summation, the result of which is saved as an updated reference image. This results in reference image denoising. Only one reference image is used when processing post-contrast image series. 
         [0058]    3. In case angiographic examination requires to move support for example, when examining patient&#39;s lengthy vessels, pre-contrast image are obtained at different support positions. Support motion path are identical for both pre-contrast and post-contrast image series. Each pre-contrast image is a referring one at processing post-contrast image series obtained in the same support position. 
         [0059]    4. In cases of post-contrast image series acquisition an unforeseen support or patient motion happened or other reasons have changed the image content, from now as a preference image will be instead of pre-contrast image one of the post-contrast images processed in a way to lower visibility of the vessels filled with contrast agent. 
         [0060]      FIG. 2  shows the content of digital angiographic image of post-contrast series. The rectangular field of view  7  of the receiver is in part concealed by x-ray device components  8  motionless during examination. Patient&#39;s image includes filled with contrast agent vessels  9  as well as organs and tissues  10  not being involved in angiographic examination. 
         [0061]    To match post-contrast series and reference image one can determine a geometric transformation providing the best way of the images matching. Due to preliminary selection of motionless regions a sector to match images is narrowed. It is required when a part of the receiver&#39;s field of view is shielded by collimator shutters or the receiver includes an electro-optical transducer of circular section. The edges of motionless regions have a shape of linear or smooth curves as well as high contrast; this makes it possible to use for their search a well-known algorithms of geometric primitives selection (e.g., Hough transformation) in combination with the regression analysis technique. 
         [0062]    Immobility of this regions makes it possible to select them once during processing of each reference image. 
         [0063]    When performing image registration firstly select finite set of control regions from the reference image. Control regions are selected in such a way as to contain characteristic details of the image. Characteristic detail shall have such properties that make it possible to reliably discern it in the images of the given object regardless of brightness and geometric transformations as well as in the presence of noise. 
         [0064]    To select control regions the following operations are performed: 
         [0065]    1. Multiscale image representation by means of Gaussian pyramid or similar transformation. The number of scales is set manually or coordinated with the spatial-frequency spectrum shape of the image. 
         [0066]    2. At each scale a characteristic details enhancement operator is applied to the image. In one embodiment of the invention this operator is based on the calculation of the covariance matrix on texture at each point of the image. Detector response is the product of the eigenvalues of this matrix. Local maxima of the detector response correspond to the brightness difference, bending and intersections of objects&#39; boundaries. 
         [0067]    3. Limit the set of characteristic details by selecting details with the maximum detector response value, found at different scales. To correctly compare the detector response values at different scales a monotone increasing correction factor which increases when performing transition from a larger to a smaller scale is introduced. 
         [0068]    4. In the neighborhood of each of the characteristic details found form the control region, the size of which corresponds to the scale at which the maximum detector response obtained. To each region can be further attributed a spatial orientation corresponding to the resultant eigenvector of the texture covariance matrix. 
         [0069]    A simplified embodiment of the invention is possible, when the search for characteristic details is not performed. Instead, a geometrical grid of preset shape (e.g. squared) is superimposed on the image and the set of control regions is located in the grid nodes. 
         [0070]    The result of the reference image analysis is a set of control regions, for each of which the coordinates of the center, the size and, depending on the embodiment of the invention, the additional attributes are saved. 
         [0071]    For each digital image from the post-contrast set, as well as for the images from pre-contrast set which are non-reference, the procedure of registration with the reference image is performed, consisting of the following: 
         [0072]    1. Select control regions in the image in the same way as when processing the reference image. 
         [0073]    2. Perform a comparison of control region attributes of the current image with the saved control region attributes of the reference image. Based on the correlation determine a one-to-one correspondence between control regions. As a result to each control region a displacement vector is attributed relative to the reference image. In the general case, the set of control regions selected in the reference image may not fully match with the set of control regions of the current image. Shifting determination errors which arise during the above mentioned operations are eliminated by applying statistical technique during further processing. 
         [0074]    3. From the set of control regions select such groups, shift of which occurs consistently and is described with satisfactory accuracy by the model chosen for the geometric transformation. In one possible embodiment of the invention, such a model is an affine transformation, which implies various combinations of shift, rotation, tilting and zooming. For example,  FIG. 3  shows the segmentation (partitioning) of the lateral projection of the patient&#39;s head into three areas with different motility: the skull  11 , the lower jaw  12  and the shoulders  13 . The displacement vectors are attributed to the centers of control region  14 , including outlier vectors  15 . As a result of the cluster analysis of shifts to each group of control regions is attributed a general model of geometric transformations. 
         [0075]    4. Determine the boundaries of image segments containing selected groups of control regions, using data on image brightness gradient. 
         [0076]    5. Transforming the reference image, applying to the selected image segments calculated geometric transformations. At the boundaries of the segments interpolation can be applied to reduce edge effects. 
         [0077]    After image registration is finished a pixel-wise arithmetical division of the current image brightness by the brightness of the transformed reference image is performed. This operation corresponds to the logarithmic subtraction. The result is the required subtraction image. 
         [0078]      FIG. 4  shows a comparison of angiographic image  16 , obtained without the use of motion compensation, and the angiographic image obtained by the claimed method  17 . In the first case, the images of vessels  18  filled with contrast agent contain motion artifacts  19  not being an images of any existing organs or tissues. In the second case the artifacts  20  expressed significantly weaker. 
         [0079]    Due to the segmentation of the optic flow field obtained after comparison of the control regions of the reference image and the current image, achieve lower residual visibility of organs which worsens discernibility of vessels studied, and improves the diagnostic value of the angiographic images, obtained by the claimed method. 
       THE BEST EMBODIMENT OF THE INVENTION 
       [0080]    X-ray images are obtained through the use of x-ray system, fixed parts of which are not projected onto the working field of detector. X-ray exposure is performed to obtain a series of 2-3 pre-contrast digital images. In the first digital image from the series of pre-contrast images a search of characteristic details is performed. To do this, the following operations are performed: 
         [0081]    1. Multiscale representation of the image is formed, consisting of 4 levels. The first level is the image itself. Then in order to form each next level a digital smoothing filter having the aperture of 3×3 elements is applied, and the image is subsampled by the factor of 2. 
         [0082]    2. At each level of the multiscale image select characteristic details. To do this, first calculate a first partial derivatives of brightness horizontally and vertically: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       I 
                       x 
                       ′ 
                     
                     = 
                     
                       
                         ∂ 
                         I 
                       
                       
                         ∂ 
                         x 
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     
                       I 
                       y 
                       ′ 
                     
                     = 
                     
                       
                         
                           ∂ 
                           I 
                         
                         
                           ∂ 
                           y 
                         
                       
                       . 
                     
                   
                 
               
               
                 
                   ( 
                   1 
                   ) 
                 
               
             
           
         
       
     
         [0083]    Then for each pixel of the image covariance matrix of the texture is computed: 
         [0000]    
       
         
           
             
               
                 
                   
                     C 
                     = 
                     
                       [ 
                       
                         
                           
                             
                               g 
                               * 
                               
                                 ( 
                                 
                                   
                                     I 
                                     x 
                                     ′ 
                                   
                                    
                                   
                                     I 
                                     x 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                           
                           
                             
                               g 
                               * 
                               
                                 ( 
                                 
                                   
                                     I 
                                     x 
                                     ′ 
                                   
                                    
                                   
                                     I 
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                           
                         
                         
                           
                             
                               g 
                               * 
                               
                                 ( 
                                 
                                   
                                     I 
                                     x 
                                     ′ 
                                   
                                    
                                   
                                     I 
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                           
                           
                             
                               g 
                               * 
                               
                                 ( 
                                 
                                   
                                     I 
                                     y 
                                     ′ 
                                   
                                    
                                   
                                     I 
                                     y 
                                     ′ 
                                   
                                 
                                 ) 
                               
                             
                           
                         
                       
                       ] 
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   2 
                   ) 
                 
               
             
           
         
       
     
         [0084]    where g—the impulse response of Gaussian smoothing filter with an aperture of 5×5 elements. Then edge enhancement operator response is calculated, scale-weighted: 
         [0000]        h= √{square root over (2″)}(det C− 0.02tr C ),  (3)
 
         [0085]    where nε[0,3]—the number of the current level of the multiscale representation, detC—the determinant of the covariance matrix of the texture, trC—trace of the covariance matrix of the texture. Then select such points in the image for which the value of h is a local maximum within the neighborhood of radius r. The value of r is assigned to be equal to 2% of the image minimum linear size (rounded to the nearest whole number). 
         [0086]    3. Combine the results of characteristic details selection at all levels of the multiscale representation and form the initial set of characteristic details. As this takes place the coordinates and value of the local maximum of h, as well as the number the multiscale representation level (at which current detail was selected) are attributed to each characteristic detail. 
         [0087]    Exclude from the set those details close to which on other levels there are details with a higher value of h (radius of the neighborhood to eliminate recurring details is set to 1% of the image minimum linear size). The resulting set of values are sorted in descending order of value h and keep in the final set no more than the first 100 details. Every detail is assigned the control region, the size of which is smaller, the larger the scale at which the characteristic detail is selected. 
         [0088]    Radiographic contrast medium is injected into the patient&#39;s blood vessels under examination and x-ray exposure is performed which results in a series of M post-contrast digital images (where M≧1) 
         [0089]    For a group of images, including at least one image from the pre-contrast series and all images from the post-contrast series, perform image registration, consisting of the following operations: 
         [0090]    1. Multiscale representation of the image is formed, consisting of 4 levels. The first level is the image itself. Then in order to form each next level a digital smoothing filter having the aperture of 3×3 elements is applied, and the image is subsampled by the factor of 2. 
         [0091]    2. For each control region the shift and rotation are determined by means of correlation method. The search begins at that level of multiscale representation, which corresponds to the size of the characteristic detail, and continue at a larger scale, successively reducing the search range and increasing accuracy. The search consists in the maximization of the cross-correlation coefficient between the patches of the reference and the current image: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       [ 
                       
                         
                           dx 
                           ^ 
                         
                         , 
                         
                           dy 
                           ^ 
                         
                         , 
                         
                           α 
                           ^ 
                         
                       
                       ] 
                     
                     = 
                     
                       arg 
                        
                       
                           
                       
                        
                       max 
                        
                       
                         
                           cov 
                            
                           
                             { 
                             
                               
                                 T 
                                 R 
                               
                               , 
                               
                                 warp 
                                  
                                 
                                     
                                 
                                  
                                 1 
                                  
                                 
                                   ( 
                                   
                                     
                                       I 
                                       R 
                                     
                                     , 
                                     dx 
                                     , 
                                     dy 
                                     , 
                                     α 
                                   
                                   ) 
                                 
                               
                             
                             } 
                           
                         
                         
                           
                             D 
                              
                             
                               { 
                               
                                 T 
                                 R 
                               
                               } 
                             
                              
                             D 
                              
                             
                               { 
                               
                                 warp 
                                  
                                 
                                     
                                 
                                  
                                 1 
                                  
                                 
                                   ( 
                                   
                                     
                                       I 
                                       R 
                                     
                                     , 
                                     dx 
                                     , 
                                     dy 
                                     , 
                                     α 
                                   
                                   ) 
                                 
                               
                               } 
                             
                           
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   4 
                   ) 
                 
               
             
           
         
       
     
         [0092]    where T R —patch of the reference image R, corresponding to the control region, I R —patch of the current image I, corresponding to the control region, warp1(I,dx,dy,α)—transformation of the image I, consisting of the translation by the vector (dx,dy) and rotation by the angle α, cov—covariance of brightness samples of current and reference images within the patch, D—dispersion. 
         [0093]    3. Perform segmentation of the control regions into K segments in such a way that for each segment the shifts of control regions are described by an affine transformation with the least error. Affine transformation of coordinates has the following form: 
         [0000]    
       
         
           
             
               
                 
                   [ 
                   
                     
                       
                         
                           
                             
                               
                                 x 
                                 ′ 
                               
                             
                             
                               
                                 
                                   
                                     y 
                                     ′ 
                                   
                                   ] 
                                 
                                 = 
                                 
                                   [ 
                                   
                                     
                                       
                                         
                                           
                                             x 
                                           
                                           
                                             y 
                                           
                                           
                                             
                                               1 
                                               ] 
                                             
                                           
                                         
                                       
                                        
                                       A 
                                     
                                     , 
                                   
                                 
                               
                             
                           
                         
                          
                         
                           
 
                         
                          
                         A 
                       
                       = 
                       
                         [ 
                         
                           
                             
                               
                                 a 
                                 1 
                               
                             
                             
                               
                                 a 
                                 4 
                               
                             
                           
                           
                             
                               
                                 a 
                                 2 
                               
                             
                             
                               
                                 a 
                                 5 
                               
                             
                           
                           
                             
                               
                                 a 
                                 3 
                               
                             
                             
                               
                                 a 
                                 6 
                               
                             
                           
                         
                         ] 
                       
                     
                     , 
                   
                 
               
               
                 
                   ( 
                   5 
                   ) 
                 
               
             
           
         
       
     
         [0094]    where x, y—reference coordinates of the point, x′, y′—converted coordinates, α 1  . . . α 6 —conversion factors. Error for each segment is determined as: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       ɛ 
                       k 
                     
                     = 
                     
                       
                         ∑ 
                         
                           i 
                           ∈ 
                           
                             P 
                             k 
                           
                         
                         
                             
                         
                       
                        
                       
                           
                       
                        
                       
                          
                         
                           
                             
                               
                                 [ 
                                 
                                   
                                     x 
                                     i 
                                   
                                   + 
                                   
                                     dx 
                                     i 
                                   
                                 
                               
                             
                             
                               
                                 
                                   
                                     
                                       y 
                                       i 
                                     
                                     + 
                                     
                                       dy 
                                       i 
                                     
                                   
                                   ] 
                                 
                                 - 
                                 
                                   [ 
                                   
                                     
                                       
                                         
                                           x 
                                           i 
                                         
                                       
                                       
                                         
                                           y 
                                           i 
                                         
                                       
                                       
                                         
                                           
                                             1 
                                             ] 
                                           
                                            
                                           
                                               
                                           
                                            
                                           
                                             A 
                                             k 
                                           
                                         
                                       
                                     
                                   
                                 
                               
                             
                           
                         
                          
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   6 
                   ) 
                 
               
             
           
         
       
     
         [0095]    where kε[1,K]—segment number, i—control region number, P k —a subset of control regions, relating to k-th segment. The goal of segmentation is to minimize the total error: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       ∑ 
                       
                         k 
                         = 
                         1 
                       
                       K 
                     
                      
                     
                         
                     
                      
                     
                       ɛ 
                       k 
                     
                   
                   → 
                   
                     min 
                     . 
                   
                 
               
               
                 
                   ( 
                   7 
                   ) 
                 
               
             
           
         
       
     
         [0096]    In the process of minimization of the formula (7) a P k , disjoint subsets are determined which make up an exhaustive set of control regions; also the corresponding affine matrix A k  is determined. 
         [0097]    The number of K segments is initially unknown, but to improve segmentation procedure convergence this number is limited to the value of 5. During the iterative process of optimization the segments with similar transformation matrices are combined, thereby the final number of segments, depending on the nature of the control regions motility ranges from 1 to 5. 
         [0098]    Perform the processing of the current image taking into account the motion. If the current picture is from a pre-contrast series, it is subjected to inverse transformation, calculated at the previous step. The reference image is updated by a weighted arithmetic summation with the modified current image: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       R 
                       ′ 
                     
                     = 
                     
                       R 
                       + 
                       
                         
                           1 
                           t 
                         
                          
                         
                           ( 
                           
                             
                               warp 
                                
                               
                                   
                               
                                
                               2 
                                
                               
                                 ( 
                                 
                                   
                                     I 
                                     t 
                                   
                                   , 
                                   
                                     A 
                                     1 
                                   
                                   , 
                                   
                                     A 
                                     2 
                                   
                                   , 
                                   … 
                                    
                                   
                                       
                                   
                                   , 
                                   
                                     A 
                                     K 
                                   
                                 
                                 ) 
                               
                             
                             - 
                             R 
                           
                           ) 
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     t 
                     &gt; 
                     0 
                   
                 
               
               
                 
                   ( 
                   8 
                   ) 
                 
               
             
           
         
       
     
         [0099]    where R′—reference image after the update, R—reference image before the update, t—image number in the processed sequence, I t —current image, warp2(I t , A 1 , A 2 , . . . , A K )—joint transformation, which results in that each segment of the image I t  is subjected to affine transformation, defined by the A K  matrix. 
         [0100]    If the current picture is from the post-contrast series it is subjected to subtraction. The reference is subjected to transformation, calculated at the previous step. Weighted logarithm of the modified reference image is subtracted from the logarithm of the current image: 
         [0000]        F −ln I−s ln(warp2( R,A   1 ,A 2   , . . . A   K )),  (9)
 
         [0101]    where s—subtraction factor within the range from 0 to 1. The obtained image F is displayed on the output device. By adjusting s, radiologist can make visible on the output device not only studied vessels but surrounding organs which serve as an anatomical landmarks. 
         [0102]    The diagnostic value of obtained angiographic image is improved by removing artifacts caused by the motility of anatomical structures.