Keywords

1 Introduction

With the modern approach in the field of information technology, the revision in the analysis of the medical images has devoted noticeably to the early diagnosis of various diseases. Image segmentation especially edge detection technique give much knowledge that help to explain the medical images and improve the sharpness of detection and further diagnosis of different diseases. Image Segmentation is the process of dividing an image into meaningful structures where each pixel has same attributes [1]. The pixel is similar on the basis of criteria such as texture, color or intensity. Image segmentation aims at improving the pictorial information for interpretation. This process can be achieved by converting a low level image into high level image which may deem to be a challenging task as an image is never partitioned accurately for analysis [2]. One of the processes of achieving the same is through Edge detection techniques. The reason behind implementing an edge detector to a set of images is highly suggestive of reduction in amount of data to be processed. This further overlooks insignificant data and captures important properties of an image. Various types of edge detection operators such as Sobel, Roberts, Prewitt, Canny and LoG can applied to study the results on a particular image [3]. The aim of the paper is to study these edge detection techniques and apply them on the MRI images of different body parts to analyze the results. Image Segmentation plays a vital role in medical image processing, particularly for different body parts abnormalities detection in Magnetic Resonance Imaging (MRI) and computed Tomography (CT). The idea behind using MRIs to CT is that the latter doesn’t use ionizing radiations, hence giving us a clear picture of the health condition [4]. The results are based upon three parameters i.e. Entropy, Standard Deviation and Execution Time. Entropy, generally defines the amount of information which must be used to compress the image by any compression algorithm [5]. Similarly, the standard deviation explains the variation of the results from the actual value of any parameter in an image.

Moreover, image seized from different sources suffer deterioration which affect the essential features of the image and makes image study difficult. Image restoration attempts to restore the degraded images by removing noise from the image. The process of image restoration completely depends upon accuracy of image analysis and generally removes unwanted pairs [6]. It studies entire degradation process and evaluates the inverse process to assess the original image. It is an objective process and restores the approximation of actual image.

In this paper Edge detection techniques are applied with different operators on MRI images.

  1. A.

    Magnetic Resonance Imaging:

Magnetic Resonance Imaging (MRI) is a medical imaging technique used to visualize detailed internal structures of respective body part with the help of magnetic radiation. It provides three dimensional real-time views of organs mostly for the soft-tissue. It furnishes good contrast of soft tissue, gives better visualization of soft-tissue structures like brain, spine, muscles, and joints. The MRI machine used to capture in multiple body planes without changing the physical positions of the patient under scanning as it operates in multiple planes. Image segmentation may be widely used in MRI images of brain to detect tumor and other skin lesion or patches like abnormalities. Also Image segmentation on MRI images is also useful after surgery to keep sign the improvement of treatment and to monitor the growth of tumor before surgery.

2 Edge Detection Technique

Edge detection has turned out to be most competent field in image processing which helps in locating sharp discontinuities in an image. These discontinuities are blunt changes in the intensity of pixels which define the edges of image [7]. The edge element is crucial and significant feature of an image. There are several edge detection techniques depending upon the sensitivity of an image which are designed to work upon in vertical, horizontal and diagonal directions [8]. It must be noted that the preferred direction of every convolution mask is weighted with highest coefficients. Apart from edge detection, noise removal also plays an important role in image processing. The goal of removing noise is to discard unwanted pixels.

Different edge detection operators:

  • A. SOBEL:

The Sobel operator is used to perform spatial gradient measurement on any image. It is used for edge detection of two basic types i.e. Vertical Direction and Horizontal Direction [9]. This operator consists of 3 × 3 convolution mask which is designed in such a way that every edge whether in vertical or horizontal direction is detected relative to the pixel grid [10]. The convolution mask of the image is generally smaller as compared to the actual image. These masks can be applied in any form i.e. Corresponding to Gx or Gy separately or together so as to give an absolute gradient measurement at each point. The intensity of the function at eight distinct points is recognized to sample image point. The Gx mask highlights the horizontal edges in the image while Gy highlights the vertical edges, it further calculate the difference between pixel intensities of the particular direction [11]. As it is visible from the mask, the zeros in the middle row helps to compute the difference between the intensities of the edge [12]. This operator is disrupted by noise easily, therefore cannot detect outermost images easily. The basic advantage of using this operator is that weights can be applied to the coefficients which produce better result.

$$ \begin{array}{*{20}c} {\left| \text{G} \right| = \surd G_{\text{x}}^{2} + \,G_{{_{\text{Y}} }}^{2} } \\ {G_{x} = \, \sum \, \sum Sobel_{x,i,j} \,^{{\mathbf{ * }}} \,I_{r + i - 2,c + j - 2} } \\ {G_{y} = \sum \, \sum \, Sobel_{y,i,j} \,^{{\mathbf{ * }}} \, I_{r + i - 2,c + j - 2} } \\ \end{array} $$
  • B. ROBERTS:

The Roberts operator is used to highlight the high spatial frequency of the corresponding edges of any image. The kernels used for this operator are rotated by 90º therefore the convolution mask is designed to give the maximum results of the edges running at 45°. Similar to Sobel Operator, the edges can be detected separately or absolute gradient can be computed by combining GX and GY [13]. The convolution masks are given below:

$$ \left| {\text{G}} \right| = \surd G_{{_{\text{X}} }}^{2} + G_{{_{\text{Y}} }}^{2} $$

Robert also proposed the following equation:

$$ y_{i,j} = \sqrt {x_{i,\,j} } $$
$$ z_{i,j} = \sqrt {(y_{i,\,j} } - y_{{i + 1,\,j + 1)^{2} }} + (y_{i + 1,\,j} - y_{{i,\,j + 1)^{2} }} $$
x::

Initial density of the image.

z::

Computed derivate.

i, j::

Location of image.

  • C. PREWITT:

This technique was devised to conquer the problems of Sobel operator i.e. absence of smoothing modules. It detects the edges in both vertical and horizontal direction which is a way of finding the approximations in magnitude and orientation of the edge in an image [14]. It has maximum 8 possibilities of orientation and does not emphasize on central value of the mask. The kernels of this operator are of least values thereby preventing blurring and extra trouble. The convolution mask is given below:

$$ \left| {\text{G}} \right| = \,\surd G_{{_{\text{X}} }}^{2} + G_{{_{\text{Y}} }}^{2} $$
$$ \text{Also},\,\,{\text{G}} = \surd G^{2} \text{x}\, + \, G^{2} \text{y}{\uptheta} \, = \,\text{atan}2 \, \left( {{\text{G}}_{{_{Y} }} ,\,{\text{G}}_{\text{x}} } \right) $$
  • D. CANNY:

This edge detection technique is also known as optimal edge detector as it focuses on improving the results as compared to the other operators [15]. This initially smoothes the image and removes the noise and then gives the output of spatial gradient measurement on any image. This filter helps to smoothen the noise as well detects the edges meticulously. It works to satisfy the conditions like localization of edge, low error rate and single edge detection. The gradient is calculated using the Gaussian filter [16]. The edge identification image is then exhibited to thresholds followed by the process of hysteresis to suppress the non suppressed pixels.

  • E. LoG:

The laplacian of Gaussian is 2D isotropic measure of 2nd special derivative of the image which focuses on highlighting the region where the intensity of the image changes very rapidly [17]. Therefore this is a highly used edge detection technique. The operation of this detector works in a way that it first smoothes the noise using the Gaussian filter and then gives the output as a gray image only [18]. The laplacian of an image is as given below:

$$ L\left( {x,y} \right) = \frac{{\partial^{2} I}}{{\partial x^{2} }} + \frac{{\partial^{2 } I}}{{\partial y^{2} }} $$

As it can be seen that all the three filters deal with second derivate measurement of the image, it becomes necessary to first smoothen the image so as to reduce the noise and then the Gaussian filter is applied [19, 20].

3 Measuring Parameters of Image Analysis

The quality of any image can be determined on two basis i.e. subjective or objective. The subjective as the name suggests consumes more time as compared to the latter. In our work, we have considered two quantity measures as given:

  • A. Standard Deviation:

The standard deviation is the measure of distribution of the set of data from its mean. It measures the absolute instability of a distribution [21, 22]. Higher instability depicts higher standard deviation. Generally, continuous data is required to calculate standard deviation. It is given by:

$$ \sigma = \sqrt {\sum\limits_{i = 0}^{L} {(i - \overline{i} )^{2} h_{If} \left( i \right), \ldots \overline{i} } } = \mathop \sum \limits_{i = 0}^{L} ih_{If} $$
  • B. Entropy:

Entropy as defined by the Math works is a statistical measure of randomness that can be used to characterize the texture of input image [23]. Images with low entropy have low contrast whereas high entropy depicts high contrast in an image but are troublesome to compress. It is given by:

$$ E = - \mathop \sum \limits_{i = 0}^{L - 1} p_{i} \,log_{2 } \,p_{i} $$

In our work, we have dealt with the MRI images of different body parts. MRI (Magnetic Resonance Imaging) is a medical imaging technique used in radiology to form pictures of the anatomy and the physiological processes of the body in both health and disease. On the images of different body parts, several operators have been applied to study the result.

4 Noise Removal

Digital images play fundamental role in the field of research, medical imaging and information systems using satellites. The images collected from distinct sources are noisy hence de-noising techniques are applied so as to achieve better results for analysis. De-noising still prevails as a challenge in the research therefore techniques like image enhancement are used to improve the image quality. The filtering techniques are treated as first step to obtain images rich in quality.

  • A. Salt and Pepper:

The pixels in the image get destroyed due to transformation from analog to digital domain. These corrupted images are known as impulse noise which are of two types i.e. fixed value impulse noise and Random value impulse noise. The fixed impulse noise is also referred to as Salt and Pepper which accepts only 2 values, either 0 for pepper or 255 for salt. The random value impulse noise whereas can accept any value ranging from 0 to 255. This noise generally occurs in an image due to defects in camera‘s sensor cell or synchronization errors (Fig. 1).

Fig. 1.
figure 1

Probability density functions of salt and pepper noise

  • B. Wiener:

When an image is blurred using a low pass filter, the original image can be obtained by using the process of inverse filtering, however this process invites additive noise to the image. The wiener filter optimizes inverse filtering and noise smoothing. It not only discards the noise but also performs inverse filtering. Wiener filtering in Fourier domain can be expressed as:

$$ W\left( {f_{1} ,f_{2} } \right) = \frac{{H * \left( {f_{1} ,f_{2} } \right)S_{xx} \left( {f_{1} f_{2} } \right)}}{{(\left| {H\left( {f_{1} ,f_{2} } \right)} \right|)^{2} S_{xx} \left( {f_{1,} f_{2} } \right) + S_{nn} \left( {f_{1} ,f_{2} } \right)}} $$

While performing image restoration using wiener filter, a low pass filter as shown below is used to blur the image.

$$ {\text{H = 1/16}}\,\left[ {\begin{array}{*{20}l} 1 \hfill & 1 \hfill & 1 \hfill & 1 \hfill \\ 1 \hfill & 1 \hfill & 1 \hfill & 1 \hfill \\ 1 \hfill & 1 \hfill & 1 \hfill & 1 \hfill \\ \end{array} } \right] $$

The implementation of this filter requires the calculation of power spectra of both original image as well as additive noise. Power spectrum can be calculated using:

$$ S_{yy }^{per} = \frac{1}{{N^{2} }} \left[ {Y\left( {k,l} \right)Y\left( {k,l} \right)*} \right] $$

Where, Y (k, l) is DFT of observation.

The technique of wiener filter is not highly used but produces best mathematical results.

  • C. Poisson Noise:

It is an ambiguous association with the measurement of light and independence of photon detection. This noise contributes in varying proportion in an image. This generally occurs when the number of photons is not able to provide exact statistical information. It is also known as photon noise and is signal dependent whose magnitude increases with respect to intensity of light.

5 Simulation and Results

MRI images of different body parts such as abdomen, ankle, elbow, hand, leg, liver and brain have been taken for analysis. Edge detection operators such as Roberts, Sobel, Prewitt, Canny and LoG have been applied to each image. Further Entropy, Standard Deviation and Execution time is evaluated from the resultant images. Table 1 depicts the results obtained from the same highlighting prominent changes in the values of parameters especially in case of Laplace of Gaussian operator.

Table 1. Analysis of different operators on MRI of different body parts

From the results shown in Table 1, it is clearly indicated that there are noticeable changes in the values of Entropy, Standard Deviation and Time for LoG operator.

For abdomen, entropy of original image is 4.0522. Different filters have been applied for analysis such as Robert, Sobel, Prewitt, Canny, LoG. Entropy of resultant images after applying filters are different from original image such as 4.0522, 0.1539, 4.0522, 4.0522, 4.0522, and 4.0757 are the entropy of different operators respectively.

For ankle, entropy of original image is 7.0966. Entropy of resultant images after applying filters are different from original image such as, 0.1887, 7.0966, 7.0966, 7.0966, 7.0966 and 6.9408 are the entropy of different operators respectively.

For elbow, entropy of original image is 6.2733. Entropy of resultant images after applying filters are different from original image such as, 0.1741, 6.2733, 6.2733, 6.2733 and 6.0439 are the entropy of different operators respectively.

For hand, entropy of original image is 4.9325. Entropy of resultant images after applying filters are different from original image such as 0.1642, 4.9325, 4.9325, 4.9325 and 4.5715 are the entropy of different operators respectively.

For knee, entropy of original image is 4.1647. Entropy of resultant images after applying filters are different from original image such as, 0.1490, 4.1647, 4.1647, 4.1647 and 4.5715 are the entropy of different operators respectively.

For leg, entropy of original image is 5.2013. Entropy of resultant images after applying filters are different from original image such as, 0.1446, 5.2013, 5.2013, 5.2013 and 5.3754 are the entropy of different operators respectively.

For liver, entropy of original image is 5.8791. Entropy of resultant images after applying filters are different from original image such as, 0.1870, 5.8791, 5.8791, 5.8791 and 5.9122 are the entropy of different operators respectively.

For brain, entropy of original image is 5.0652. Entropy of resultant images after applying filters are different from original image such as, 0.2291, 5.0652, 5.0652, 5.0652 and 5.1647 are the entropy of different operators respectively.

Further noise removal techniques have been applied to perform image restoration on the above resulting images to perceive and conclude the development of best operator and better image quality. Table 2 explains the noise removal techniques with different operators such as Robert, Sobel, Prewitt, Canny, LoG applied on resultant image from Table 1.

Table 2. Noise removal techniques with different operators on resultant images of Table 1

From the results shown in Table 2, it is clearly indicated that there are noticeable changes in the values of Entropy, Standard Deviation and Time for LoG operator.

For abdomen, Entropy of the original image is 4.0522 and 4.0757 for LoG operator. For ankle, the entropy of original image is 7.0966 and 6.9408 for LoG operator. For elbow, the entropy of original image is 6.2733 and 6.0439 for LoG operator. For hand, the entropy of original image is 4.9325 and 4.571 for LoG operator. For knee, the entropy of original image is 4.1647 and 4.1790 for LoG operator. For leg, the entropy of original image is 5.2013 and 5.3754 for LoG operator. For liver, the entropy of original image is 5.8791 and 5.9122 for LoG operator. For brain, the entropy of original image is 5.0652 and 5.1647 for LoG operator.

6 Conclusion

Although edge detection is an initial step in reviewing an image but it becomes crucial to understand different types of edge detection techniques. On the basis of the analysis of different MRI images, it is clear that LoG proves to provide better results as compared to Roberts, Sobel, Prewitt and Canny. The operators can be localized as per the requirement of a user to conform to an environment. Similarly the noise removal techniques also are essential to produce a relevant analysis and study of the images, in support of this, the results of the same give us a clear picture that wiener filter continues to give better results, although there are minute variations but they play very important role in detection algorithms and noise removal techniques.