Keywords

1 Introduction

Computer imaging is one of the crucial problems in contemporary computer science. Medical imaging is strictly connected to this topic. Medical images obtained by using various techniques - see Sect. 3 - are encoded in digital form. Since the images are analyzed by experts for diagnostic purposes, good image quality is necessary to detect all pathological changes, especially in the context of finding lesions at an early stage. On the other hand, a great number of medical images is the reason a great demand of their computer analysis. Various methods of artificial intelligence (see [12]) are widely used for this purpose. Good image quality is essential for the analyzing algorithm to work effectively. It is particularly important when syntactic methods are used, which are characterized by high sensitivity to any disturbances occurring in the analyzed image [13]. Syntactic methods are often used to analyze medical images [1,2,3,4,5, 25,26,27]. Therefore it is important to get high quality images. However, in order to obtain a good quality image, a sufficiently long examination time is necessary, which in some cases, e.g. X-ray images, involves the patient’s exposure to harmful radiation. Therefore, it is important to develop methods that will maximize image quality while minimizing time of medical examination. Obtaining a precise measure of image quality, which is the subject of this paper, is one of the issues in this undertaking.

2 Medical Imaging Quality in Computer Science

Image quality assessment is an important field not only in the IT or entertainment industry, but also in medicine. Based on the control of image parameters, the radiation dose or acquisition time is reduced. Unfortunately, standard parameters such as Signal-to-Noise Ratio (SNR) or Contrast-to-Noise Ratio (CNR) do not work in this area. Examples can be given where, despite the high parameters, the images have difficult or doubtful diagnostic value. For this reason, the search for new assessment methods is still a challenge [6].

Image quality assessment methods can be divided into methods based on reference images (Partial or Full Reference-Image Quality Assessment) and methods without reference (No Reference - Image Quality Assurance, NR-IQA) [7, 33]. In the first case these are well-known measures such as SNR [10], PSNR (Peak Signal-to-Noise-Ratio) [17], Contrast-to-NoiseRatio (CNR) [15], and Structural Similarity Index (SSIM) [16]. These measurements require a reference to human-pointed images as reference. The second group (NR-IQA) are methods that specify a blind measure for images without referring to the indicated quality sample [8, 28, 30, 31]. In this case, it is easier to compare the quality of images for different modalities, although these measures do not correlate so well with the subjective assessments of people.

No-reference measures have a different construction. For example, a measure, based on structural MRI and two types of analysis of variance, was proposed in [34]. An attempt, based on applying multidirectional filters to MR images and then examining the feature statistics, is described in [19]. In [29] the authors applied Bayes theory to the relationship between entropy and image quality attributes. Although the subject of pulse noise removal in magnetic resonance imaging is well known [21], no one has ever tried to evaluate the quality of this imaging by quantifying this noise. This issue is the subject of this work.

3 Medical Imaging Quality in Clinical Practice

To obtain best imaging quality in the techniques where X-rays are used both in conventional radiography (CR) and the computed tomography (CT) but also where RF beam is used - as in magnetic resonance (MR) - one has to meet two main criteria. First is to produce possibly best - hence diagnostic image, and second - to provide an examination in a way most safe and comfortable for the patient as it is possible. In techniques where X-rays are used the criterion of image quality is met where the contrast of structures with different absorption of X-rays represented on the image is sufficiently different and imaged structures can be recognized as separate elements. Reduction of the tube voltage (kV) and, as a consequence, the reduction of X-rays energy provides good differentiation of the imaged objects. On the other hand, higher energy of X-rays enables to reduce dose absorbed by the human body. Therefore images with higher kV are preferred. Image quality in radiography is also strongly affected by the noise (mottle) which may decrease quality of the imaged object borders and hence limits its proper recognition [18]. Both in CR and CT the mottle is usually caused by a decrease of photons quantity used to create the image and typically associated with a reduction of X-ray tube current - amperage (mAs). Although its increase will improve image contrast, one has to remember that the increase of the amperage will result in a proportional increase in the radiation dose. Therefore, good quality of the radiographic pictures comes as an effect of the interplay between radiation dose and diagnostic performance of the image, built on proper contrast to noise ratio. Choice of appropriate parameters for sufficient contrast of the image and acceptable noise should be influenced by the clinical situation (body region and structures needed to be visualized). Beam filtration medium is another important physical determinant of X-ray beam quality usually preselected to the specific imaging tasks [11]. Similar principles of the image creation are actual for the CT due to helical movement of the X-ray tube around the patient body. One must remember that scan time, proportional to radiation dose, is longer. Slice thickness also affects radiation dose entering each detector but also patients body. Currently most commonly used CTDI (CT dose index) is a parameter that describes the dose output of a scanner [20]. It should be stressed that spacing between slices is often equal to the slice thickness - there is a close relationship between consecutive slices that are practically continuous. Therefore one describes cumulative dose from slice series as multiple-slice average dose (MSAD) and describes 1.25 to 1,4 higher dose than in single slice dose. Cone beam CT (CBCT) is free of the aforementioned phenomena, as there is no helical movement of the X-ray tube. Therefore, cone shape X-ray beam is used and average dose can to ten times (in comparison to the helical scan of the head) but information according to soft tissue cannot be represented in diagnostically usable form what is the major drawback of the CBCT. As CBCT allows to a substantial reduction of the dose still mean radiation dose in CBCT exceeds over three times that in CR technique [32]. In magnetic resonance technique radiation is not used and technique is reported as harmless to the human body. The only consideration is scanning time - substantially longer than in CT technique what combined with high susceptibility to the motion artefacts makes MR useless for unconscious patients or persons unable to withstand longer in the still position due to pain or altered posture. Therefore in MR quality of an image is a tradeoff time and picture characteristics. There are a plethora of parameters that might influence image quality. From geometric features of the MR image, the increase of matrix size will decrease signal although image produced will be sharper due to the decrease of pixel volume. To overcome signal drop mostly averages increase is used however this is in the expense of a substantial increase of scanning time. At the opposite, one can put the field of view (FOV) changes - if the increased amount of signal is also increased what comes with pixel size multiplication (with the image sharpness reduction). On similar principle works another geometrical parameter of MR image - a slice size - can be changed. Amount of signal will be increased by slice size as more signal is captured in the bigger voxel. Clinical usefulness of such image, however, is not always provided. Sequence parameters as TR and TE have to be manipulated with caution as those parameters are strictly valued for appropriate sequences [14]. Currently, image quality in MR is estimated parametrically by comparison of the image noise to the background noise what is expressed as SNR and this value is displayed on the operator console. This parameter, however, not always expresses subjective assumption of the image and it is useful for the mathematical estimation of the presumptive image signal loss [22]. This assumption is particularly useful during sequence planning, where time reduction is desired because of the clinical situation. Awareness of the amount of signal perceived from the planned sequence is needed especially where useful tools as parallel imaging are used. This technique called Grappa by Simens vendor allows for substantial reduction of exam time on the expanse of undersampled signal [9]. Amount of the signal and time of examination in the case of MR but also dose quantity and image quality in CR and CT is a topic of continuous discussion and research. It is also a field of technological improvements. Therefore, objective and repetitive measures of the image quality are awaited by the medical community as tools indispensable to provide patient safety and comfort.

4 Impulse Noise Quantification

Image quality assessment is often subjective. The authors noticed that there is some correlation between inferior image quality ratings and the impulse noise present on it. Therefore, they decided to try to quantify this relationship.

The proposed method is based on pixel counting, which predominates brightness over its surroundings (4-connected neighborhood) by a given threshold t or more - see Formula (1). Two directions are considered: the selected points are lighter than their surroundings or darker than their surroundings. For a given image, it is possible to assess how this number changes with the increase of the threshold. To keep the reference level, all images are scaled to a range of 8 bits (0–255).

Projections of the same patient, acquired by using magnetic resonance imaging, are shown in Fig. 1. Four successively reduced acquisition times, which resulted in a gradual decrease in quality, are presented - see also [24]. Pixels that dominated or that were dominated by the surroundings by level at least of 1, 5 and 10 were determined for these images, and they are presented in the following columns in the figure. It can be seen that as the set threshold increases, their number decreases, which is precisely presented in the plot - see Fig. 2 and Fig. 3. It should be noted that for better quality images, the number of indicated points for the same threshold is smaller than for images of lower quality - this process is gradual. The analysis of the presented relationship is the basis for determining the quality of the image.

Fig. 1.
figure 1

Images with gradual reduction of acquisition time and decreasing quality.

Let us define the following logical conditions that describe whether the grey level P(xy) of the pixel (xy) in the pixel matrix \(M \times N\) differs from the grey level of neighboring pixels vertically and horizontally, respectively, by more than the threshold value t : 

$$\begin{aligned} \phi _{ver}^+(x,y):\ (P(x,y)> P(x, y+1) + t) \wedge (P(x,y) > P(x, y-1) + t), \end{aligned}$$
$$\begin{aligned} \phi _{hor}^+(x,y):\ (P(x,y)> P(x +1,y) + t) \wedge (P(x,y) > P(x -1,y) + t), \end{aligned}$$
$$\begin{aligned} \phi _{ver}^-(x,y):\ (P(x,y)> P(x, y+1) - t) \wedge (P(x,y) > P(x, y-1) - t), \end{aligned}$$
$$\begin{aligned} \phi _{hor}^-(x,y):\ (P(x,y)> P(x +1,y) - t) \wedge (P(x,y) > P(x -1,y) - t), \end{aligned}$$

where \(x\in \{ 1,...,M-1\},\) \(y\in \{ 1,...,N-1 \}.\) The below logical condition described by the propositional function \(\phi (x,y)\) is satisfied if the grey level of the pixel (xy) differs from the grey level of neighboring pixels by more than the threshold value t : 

$$\begin{aligned} \phi (x,y) = \left( \phi _y^+(x,y) \wedge \phi _x^+(x,y) \right) \vee \left( \phi _y^-(x,y) \wedge \phi _x^-(x,y) \right) \end{aligned}$$
(1)

Let A(t) be the set of the pixels that satisfy the specified condition (1), i.e. \(A(t) = \{ (x,y):\ \phi (x,y) \}\) and let I(t) denotes the number of such pixels, i.e. \(I(t) = \# A(t).\) The study of some geometrical properties of the graph of the function I(t) is the basis of the proposed method - see the next section.

5 Description of the Method

Gradient methods allow the researcher to analyze the local properties of the functions \(F: \mathbb {R}^n\rightarrow \mathbb {R}\) and, as a consequence, the local properties of the graphs of the functions, i.e. the sets of the following form \(\{ (x_1,...,x_n,f(x_1,...,x_n)) \}.\) If \(n=2,\) then the graph of the function has natural interpretation in the context of computer graphics. In particular, let us assume that \(\mathbb {R}^2\) is discretized and \(f(x_1,x_2)\) is defined on a finite rectangle - the pixel matrix - that is a subset of the discretized \(\mathbb {R}^2.\) If, furthermore, the values of the function f are values of gray level of individual pixels, then gradient methods can be used to analysis and processing of the digital image. In this paper such approach is applied to medical images.

Fig. 2.
figure 2

Four images of the pelvis of the same patient P01. The images are sorted according to decreasing quality. Thus, image (a) is the best one, whereas image (d) is the worst one.

In this sort of images, individual areas in the image correspond to individual tissues. Therefore, in good quality images, in the mentioned areas, the gray level should be more or less constant, whereas the boundaries between areas should be clear - see Fig. 2. As a consequence, the number of isolated peaks I(t) (see Sect. 4), as a function of the threshold value t, in good quality images should decrease rapidly and then flatten - see Fig. 3. Thus, the value of the maximum curvature of the graph of this function and the point in which it is reached provide important information about the quality of the image.

In the proposed method, the curve was fitted to the points obtained in this way. A few fitting functions were tested and it turned out that for the following formula

$$\begin{aligned} f(x) = a\cdot x ^b, \end{aligned}$$
(2)

where a and b are the fitted parameters, the goodness of fit \(R^2\) is close to 1. The curvature \(\kappa \) at the point \((x_0,y_0)\) of the curve described by a function \(y=f(x)\) is given by the formula

$$\begin{aligned} \kappa (x_0,y_0) = \frac{ | y_{0}'' |}{\sqrt{(1+y_0')^3}} \end{aligned}$$
(3)

For each curve its maximum curvature has been calculated numerically. The point, in which this maximum is realized, has been detected as well.

Fig. 3.
figure 3

The obtained curves for one patient P01. Each curve represents one image with different quality. The better quality, the higher maximum curvature. The blue, red, green and violet curves correspond to image (a), (b), (c) and (d) from Fig. 2, respectively. Thus, the blue curve corresponds to the best image, whereas the violet curve corresponds to the worst one. The vertical axis represents I(t),  whereas the horizontal one represents the threshold value t. (Color figure online)

6 Results

In order to verify the described non-reference method, the quality of MR images has been assessed. The calculations were based on images taken for 38 patients. The total number of images was 2708. The number of taken images varied from patient to patient and ranged from 52 to 120 pictures. For each patient, the images were ordered by an expert according to the decreasing quality. The result obtained for one patient is a series of images made with four different exposure times what caused various quality of the images. In addition, imaging was performed on various parts of the body such as the hip joint, spine, knee etc. For a given patient images of only one part of the body were taken, all in the same position. Data used in this paper were described in detail in the article [24].

Fig. 4.
figure 4

Curvature coefficient values for series of images obtained for two patients.

Fig. 5.
figure 5

The mean curvature coefficient values for each of the four highlighted groups for the five selected patients \(P\_1, P\_2, P\_3,P\_4, P\_5\)

Fig. 6.
figure 6

Curvature coefficient values depending on the adopted threshold for the patients from Fig. 4

As it has been noticed in the previous section, the number of pixels, identified as impulse noise for an image, with changing threshold value can be used to assess the quality of a given image. Therefore, each image is represented by a curve that describes the change in the number of peaks isolated with a changing threshold. Next, the function was fitted to each curve and its parameters a and b were estimated. The obtained determination coefficient \(R^{2}\) in each case was above 0.95. Based on the estimated parameters of the fitted curves, the maximum curvature \(\kappa \) was calculated for each of them. An example of a sequence of values of \(\kappa \) for two patients is shown in Fig. 4.

The images were ordered according to decreasing quality. The better the image quality, the greater value of the maximum curvature \(\kappa \). The relationship, however, is statistical. The adjusted trend for each \(\kappa \) coefficient sequence is a decreasing function. Also, the mean of the curvature coefficients for each of the four groups of images obtained for one patient indicates a decreasing image quality - see Fig. 5.

The statistical nature of the relationship between the maximum curvature of the obtained curve and the image quality means that outliers may appear in the neighboring groups. As a result of observation of the analyzed curves, it was noticed that for images of higher quality, the maximum curvature \(\kappa \) is higher and occurs for a lower threshold value than for images of lower quality - see Fig. 6. The correlation ratio between the maximum value of \(\kappa \) coefficient for a given patient and the image quality according to the arrangement done by an expert is \(r = 0.74.\) It should be stressed that the correlation is greater than for the method based on entropy, for witch \(r = 0.67\) and for other methods - see [23].

7 Concluding Remarks

The obtained results confirm the strong relationship between image quality and the maximum curvature of the curve obtained on the basis of the quantification of impulse noise in the analyzed image. For an ordered sequence of images due to their quality, the obtained \(\kappa \) coefficient values form an ordered descending sequence of values concordant statistically with the sequence of images ordered by an expert. As it has been specified, the correlation ratio is equal to \(74\%.\) This means that for higher quality images, the \(\kappa \) ratio has, statistically, a higher value for lower threshold values. Thus, the method of automatic assessment of the image quality based on the proposed approach is more effective than the methods described in literature - see [23] and references given there. Therefore, the proposed method is a significant step towards automatic choice of the radiation dose during investigation. Another problem is how the proposed method will evaluate the image after filtering. Among other things, it is planned to be the subject of further studies.