Introduction

Echocardiography is one of the most commonly used modalities for testing structural and functional alterations in the heart in all of the diagnostic tools in the field of cardiology [1, 2]. Color Doppler blood flow imaging is the primary method for the detection of hemodynamic changes within the heart in clinical practice [3]. However, compared with magnetic resonance imaging (MRI), echocardiography has its limitation for testing structure because of the poor resolution of ultrasound and disadvantage of the field of view (FOV) [4]. Conversely, magnetic resonance imaging is still limited in measuring real-time hemodynamic activities and alterations. The fusion image of color Doppler and magnetic resonance images provides a means to overcome these limitations by displaying both anatomic and hemodynamic information in the moving heart simultaneously. With the aid of computer-based technologies, it becomes possible to fuse images from various methods, including ultrasound and magnetic resonance imaging [5]. Porter et al. [6] reported a method for fusing three-dimensional ultrasound with magnetic resonance image in the liver. Rajpoot et al. [7] presented an automatic two-stage registration and fusion method to integrate multiple single views of real-time three-dimensional echocardiographic images. Rasche et al. [8] demonstrated the feasibility of fusing volumetric ultrasound images with three-dimensional X-ray imaging data for visualization of cardiac morphology, function, and coronary venous drainage. However, little attention has been paid to the fusion of dynamic Doppler information and magnetic resonance images of the heart because of difficulties in image registration for both technologies. The present article would introduce a method for fusing color Doppler images of echocardiography with magnetic resonance images using a MATLAB-based imaging program.

In this report, we will demonstrate that the proposed method permits the fusion of color Doppler blood flow in ultrasound and magnetic resonance images.

Methods

Ten volunteers with stable heart rate were involved in this study. Before the experiment, written informed consent was obtained; this study was performed with the approval of the ethical committee of Shanghai East Hospital. All magnetic resonance images were acquired using a Philips MRI 3.0-T system. Two-dimensional images of the heart were selected in the standard apical view. Magnetic resonance images were recorded in DICOM files with image matrix (256 × 256) and pixel spacing (1.25 × 1.25 mm).

Echocardiographic recordings of the same case were recorded after magnetic resonance scanning. All echocardiographic data were collected from a Philips IE33 ultrasound system equipped with S5-1 (1.0–3.0 MHz) transducer. Two-dimensional images of color Doppler blood flow in the heart were obtained in the standard apical view. The color Doppler recordings were obtained at a frame rate of 8 Hz. The DICOM files of echocardiography were exported from IE33 instrument (image matrix, 800 × 600; pixel spacing, 0.3 × 0.3 mm).

Fusion Algorithms

The process of image fusion was conducted based on a MATLAB program. After importing the DICOM files and setting internal fiducial markers and related parameters, the application fused the Doppler and magnetic resonance images semi-automatically.

The fusion application process was carried out by the following steps: (1) color Doppler blood flow segmentation, (2) registration of Doppler and magnetic resonance images, and (3) fusion of different image types (Fig. 1).

Fig. 1
figure 1

Fusion application process

Doppler Segmentation

The method of color Doppler segmentation was established based on pixel characterization because of the frameless color Doppler blood flow. The segmentation method operates on the basis of the RGB color format. For segmenting the Doppler color range in an RGB image, it is necessary to establish a set of color samples from the standard Doppler color scale which is representative of a range of colors of interest. The mean color of the Doppler image was estimated from color samples. The goal of segmentation was to identify RGB pixels with colors that fall in the specified range. In order to perform this comparison, the Euclidean distance was chosen as measurement for segmentation [9]. The average color was denoted by the RGB column vector “m”. “z” indicates an arbitrary point in a RGB space. “z” is similar to “m” if the distance between them was less than a specified threshold “T”. The Euclidean distance between “z” and “m” was given below:

$$ \begin{array}{*{20}{c}} {D(z,m) = \left\| {z - m} \right\|} \\ { = {{[{{(z - m)}^T}(z - m)]}^{{1/2}}}} \\ { = {{[{{({z_{{\rm R} }} - {m_R})}^2} + {{({z_G} - {m_G})}^2} + {{({z_B} - {m_{{\rm B} }})}^2}]}^{{1/2}}}} \\ \end{array} $$
(1)

where the subscripts R, G, and B denote the RGB components of vectors “m” and “z.” The locus of points such that “D < T” is a solid sphere of radius “T.” By definition, points contained within, or on the surface of, the sphere satisfy the specified color criterion, whereas points outside the sphere do not. By coding these two sets of points in the image using black and white colors, a binary and segmented image was produced.

The Doppler color region was divided into two parts: red region and blue region. The green region was excluded because it is unavailable in the Philips IE33 system. We calculated the mean of the each region as the center of color segmentation, setting a threshold and filtering the pixels of echocardiographic images. However, regions of blood flow with velocities beyond the defined range were not segmented because the intensity of high-velocity color pixels exceeded the radius “T.” For the segmentation of high-velocity blood flow regions, we established a pixel module to scan the segmented image. The high-velocity flow pixels were recovered through the pixel module scanning, utilizing the feature that the blood overflow was always inside the blood flow.

Registration of Echocardiography and Magnetic Resonance Images

The registration of echocardiography and magnetic resonance heart image is different from the registration for other types of images. Because of motion during the cardiac cycle, three-dimensional registration is required for image fusion. It is necessary to consider space registration and time registration.

For space registration, two-dimensional magnetic resonance images were selected in the standard apical view. Echocardiographic recordings of the same case were recorded with reference to the two-dimensional magnetic resonance image.

Geometric transformation was used to merge echocardiography and magnetic resonance images for visualization and quantitative comparison. The affine transform was selected as image registration, which was one of the most commonly used forms of spatial transformations. The affine transform can be written in matrix form as below [9]:

$$ \left[ {x\quad y\quad 1} \right] = \left[ {w\quad z\quad 1} \right]\;T = \left[ {w\quad z\quad 1} \right]\left[ {\begin{array}{*{20}{c}} {{t_{{11}}}} & {{t_{{12}}}} & 0 \\ {{t_{{21}}}} & {{t_{{22}}}} & 0 \\ {{t_{{31}}}} & {{t_{{32}}}} & 1 \\ \end{array} } \right] $$
(2)

This transformation can scale, rotate, or translate a set of points, depending on the values chosen for the elements of “T.”

The matrix and pixel spacing of echocardiography and magnetic resonance images were different (echocardiography: matrix 600 × 800, pixel spacing 0.3 × 0.3 mm; magnetic resonance image: matrix 256 × 256, pixel spacing 1.25 × 1.25 mm). So the first step of space registration was size adjustment. The affine matrix can be written as:

$$ \left[ {\begin{array}{*{20}{c}} {{s_x}} & 0 & 0 \\ 0 & {{s_y}} & 0 \\ 0 & 0 & 1 \\ \end{array} } \right]\;\;\begin{array}{*{20}{c}} {x = {s_x}w} \\ {y = {s_y}z} \\ \end{array} $$
(3)

S x ” and “S y ” were defined according to the ratio of Doppler and magnetic resonance image, which were both 4.17 in this study.

The second step of space registration is the rotation of a magnetic resonance image in order to match the direction of a selected Doppler blood flow image. The following affine matrix was used for this purpose:

$$ \left[ {\begin{array}{*{20}{c}} {\cos \theta } & {\sin \theta } & 0 \\ { - \sin \theta } & {\cos \theta } & 0 \\ 0 & 0 & 1 \\ \end{array} } \right]\;\;\begin{array}{*{20}{c}} {x = w\cos \theta - z\sin \theta } \\ {y = w\sin \theta + z\cos \theta } \\ \end{array} $$
(4)

θ” was defined manually with a MATLAB program using an image processing function. The application reorganizes the pixel matrix according to the angle “θ.”

The last step was image transfer with reference to the fiducial markers based on cardiac and vascular structures. We set the root of mitral valve and the root of aortic valve as internal fiducial markers to align the two types of images. The application was able to transfer the two images automatically according to the distance calculated from the fiducial markers.

For time registration, electrocardiogram was utilized to calculate the frequency of different images. The peak of the R wave was set as the origin of time registration (note that magnetic resonance heart images were also recorded at the peak of the R wave). For the purpose of controlling time accuracy, the frequency of echocardiography and magnetic resonance image was utilized to ensure the presentation of different images synchronously.

Image Registration Accuracy

Time registration accuracy between echocardiography and magnetic resonance heart image has certain intrinsic limitation because Doppler sample volume range is associated with image frequency. When enlarging the Doppler sample volume range, the image frequency would be reduced, and vice versa. The time registration error (TRE) was defined as below:

$$ {\rm TRE} = |\frac{{(60/{\rm HR} )}}{{{N_{{echo}}}}} \times {F_{{echo}}} - \frac{{(60/{\rm HR} )}}{{{N_{{MR}}}}} \times {F_{{MR}}}| $$
(5)

where HR is the heart rate recorded in DICOM files, N echo and N MR were total frames in their DICOM files, and F echo and F MR were frame numbers selected for registration.

On space registration with fiducial markers, the accuracy was defined as the root mean square error (RMSE) between a set of corresponding point landmarks. In order to determine the quality of a fusion set, we set six corresponding point landmarks between echocardiography and magnetic resonance heart image, which were the anterior part of interventricular septum (IVS), the bulge part of IVS, the end of IVS, the end of aortic valve ring, the root of the anterior mitral valve, and the root of the posterior mitral valve. The points were identified by five clinical experts. The RMSE was computed when the distance of six different landmarks were obtained. The RMSE was defined as below:

$$ {\text{RMSE}} = \sqrt {{\frac{{\sum\nolimits_{{i = 1}}^n {{{({x_{{1,i}}} - {x_{{2,i}}})}^2}} }}{n}}} $$
(6)

where X 1,i and X 2,i were the coordinates of different landmarks which were displayed in Fig. 2.

Fig. 2
figure 2

Coordinates of different landmarks

Fusion of Different Image Types

A color Doppler blood flow image can be represented with a three-dimensional matrix based on the features of RGB images, while a magnetic resonance image can be represented with a two-dimensional matrix based on the features of gray level images. To combine a RGB image with a gray level image, the two-dimensional matrix should be extended to the three-dimensional matrix. We extended the gray image into a three-dimensional matrix and adjusted the type of pixel following the RGB matrix format and the RGB pixel character, and replace the MRI pixels with Doppler pixels. Every fused image can be saved in the Audio Video Interleaved (AVI) format. Dynamic fused video could provide a more intuitive method for the observation of heart anatomy and monitoring cardiac function.

Results

In this investigation, we fused color Doppler blood flow images of the left ventricle into magnetic resonance heart images using the mitral annular root and the root of aortic valve as the internal fiducial markers. Figure 3 and Table 1 displayed the example of one volunteer. Figure 4 displayed the registration error of a total of ten volunteers. Figure 3a showed an image derived by fusing a color Doppler image into a magnetic resonance image. The image fusion approach extended the FOV of echocardiography, improved the image quality compared with that of echocardiography alone, and provided a more hemodynamic information in comparison with that of magnetic resonance image.

Fig. 3
figure 3

a Fusion image with blood flow patterns by color Doppler and cardiac structure by magnetic resonance image. b Fusion image of cardiac structure produced by echocardiography and magnetic resonance image

Table 1 TRE and corresponding distance of six point landmarks over eight frames of one volunteer
Fig. 4
figure 4

Plot showed the mean registration error for each dataset. Error bars showed one standard deviation calculated over different observers and anatomical landmarks. Subjects 110 were volunteers

Figure 3b showed the fusion image of cardiac structure produced by echocardiography and magnetic resonance heart image. The cardiac structure by echocardiography could help ensure the accuracy of image registration and the position of Doppler blood flow images.

Table 1 showed the TRE and the mean value over eight frames of one volunteer. The average TRE was 9.46 ± 7.05 ms in this case. This is because a large Doppler sample volume range limited the image frequency. However, in other investigations, the average TRE was below 2.16 ms when the image frame was controlled above 30 frames in one cardiac cycle, in which MRI was regularly recorded at 30 frames within one cardiac cycle.

In space registration, the corresponding distance and RMSE of the identified landmarks between echocardiography and magnetic resonance image data as registration accuracy were shown at Table 1. The average error over eight frames was 2.60 ± 0.34 mm.

Our average error among ten volunteers was 2.40 ± 0.26 mm. The means and standard deviations of these values were shown in Fig. 4. In our analysis, this error did not significantly influence the quality of fusion images.

Discussion

The fusion of color Doppler and magnetic resonance images in the present study is a novel method for cardiac diagnosis which displays the cardiac structure with high resolution and shows blood flow patterns in the heart simultaneously. In comparison with echocardiography, a fusion image extended the field of view with high image quality and filled in missing information. A fusion image provides cardiac hemodynamic information by color Doppler and more detail of the cardiac structure as the magnetic resonance images. The advantage of the image fusion is that it provides cardiac images with the complementary information that might not be available by echocardiography or magnetic resonance images alone.

The limitation of our study was that we assumed the echocardiography was acquired in the same plane as the magnetic resonance image. For the purpose of minimum registration error, magnetic resonance image was scanned first and the image was shown as a template when echocardiography was examined. Now, image fusion has become one of the most frequently applied technologies in the fields of surgery navigation [1012], radiation therapy [1315], and liver tumor ablation [1618]. We plan to purchase a GE released GPS-like technology, which was claimed to track and mark a patient’s anatomy during an ultrasound exam, for further research.

Conclusion

This investigation was aimed at the development of a model to fuse Doppler blood flow and magnetic resonance images with complementary information on cardiac structure and hemodynamics. We hope that the fusion of Doppler and magnetic resonance images would get more attention for the purpose of more possible application.