Abstract
Modern endoscopes play an important role in diagnosing various gastrointestinal (GI) tract related diseases. The improved visual quality of endoscopic images can provide better diagnosis. This paper presents an efficient color image enhancement method for endoscopic images. It is achieved in two stages: image enhancement at gray level followed by space variant chrominance mapping color reproduction. Image enhancement is achieved by performing adaptive sigmoid function and uniform distribution of sigmoid pixels. Secondly, a space variant chrominance mapping color reproduction is used to generate new chrominance components. The proposed method is used on low contrast color white light images (WLI) to enhance and highlight the vascular and mucosa structures of the GI tract. The method is also used to colorize grayscale narrow band images (NBI) and video frames. The focus value and color enhancement factor show that the enhancement level in the processed image is greatly increased compared to the original endoscopic image. The overall contrast level of the processed image is higher than the original image. The color similarity test has proved that the proposed method does not add any additional color which is not present in the original image. The algorithm has low complexity with an execution speed faster than other related methods.
1. Introduction
Visual quality of color images plays an important role in medical image diagnosis. Wireless capsule endoscopy (WCE) is an established methodology that offers medical doctors the capability of examining the interior of the small intestine with a noninvasive procedure [1]. However, due to power and hardware limitations, the image quality in WCE is lower than high definition wired endoscopy [2]. Some GI tract related diseases, such as stomach and colon cancers and ulcerative colitis, are now of great threats to human's health [1]. Different such GI diseases can be prevented and cured by means of early detection. Despite several benefits of WCE, the images acquired by this technique are often not clear enough to see the mucosa structure, tissue and vascular characteristics of the digestive tract compared with traditional endoscope, which effects the detection accuracy and increase the miss rate during clinical diagnosis [1, 3–5]. This is why new techniques are being constantly persuaded to enhance certain mucosal or vascular characteristics so that abnormal growths can be visualized better.
There are both in-chip and postprocessing systems that can enhance certain mucosal or vascular characteristics. Among the in-chip technologies, narrow band imaging (NBI) [6] and autoflorescence imaging (AFI) [7] are worth mentioning. There are two types of NBI systems: one is the RGB sequential illumination system, where narrow spectra of red, green, and blue lights centered on 415 nm, 445 nm, and 500 nm, respectively, are used for tissue illumination [8]. In another type of NBI system, a band-pass filter with bandwidths of 30 nm and central wavelengths of 415 nm (for blue) and 540 nm (for green) is used to generate NBI images [6]. On the other hand, in AFI system, a special rotating color filter wheel is used in front of the xenon light source to sequentially generate blue light (390–470 nm) and green light (540–560 nm) for tissue illumination [7]. All of these techniques eventually increase the hardware complexity and power consumption of the endoscopic system. Virtual chromoendoscopy (CE) in contrast is a postprocessing system that decomposes images into various wavelengths and produces reconstructed image with enhanced mucosal surface [9]. Several researchers concluded that NBI appears to be a less time-consuming and equally effective alternative to CE for the detection of neoplasia, but with higher miss rate [3]. Additionally, neither NBI nor CE can improve the adenoma detection or reduce miss rates during screening colonoscopy. No difference has been observed in diagnostic efficacy between these two types of systems [4, 10].
There are some other global and adaptive techniques to enhance contrast and texture information of an image that is, adaptive histogram equalization (AHE) [11], contrast-limited adaptive histogram equalization (CLAHE) [12], high boost filtering (HBF) [13], brightness preserving dynamic fuzzy histogram equalization (BPDFHE) [14]. AHE applies locally varying grayscale transformation to each small blocks of the image, thus requiring the determination of the block size [15]. CLAHE operates on small regions in the image, often called tiles, instead of the entire image, based on user assigned parameters. Finally, the neighboring tiles are combined using bilinear interpolation to eliminate artificial included boundaries.
Two drawbacks of this technique are noise enhancement in smooth regions and image dependency of the contrast gain limit [15]. HBF emphasizes high frequency components without eliminating the low frequency. It may add distortions in the smoothing regions due to over filtering. BPDFHE is the modification of the brightness preserving dynamic histogram equalization (BPDHE) [16] that preserves the brightness and improves contrast enhancement abilities while reducing its computational complexity. However, it introduces additional artifacts depending on the variation of gray level distribution [17] which may lead to inaccurate diagnosis.
In this paper, a versatile endoscopic image enhancement and color reproduction method is proposed which can improve the detection rate of anomalies present in GI images. The image enhancement is achieved in two stages: image enhancement at gray level followed by space variant chrominance mapping color reproduction. Image enhancement is achieved in two steps using adaptive sigmoid function and uniform distribution of sigmoid pixels. This is somewhat similar to our previous work [18], where the enhancement is achieved by applying histogram equalization followed by adaptive sigmoid function; this can however enhance the desired mucosa and vascular features but cannot preserve the brightness of the image. As a result, in this work modified adaptive sigmoid function using precalculated gain and cutoff value is applied first to preserve the brightness of the gray image. The contrast level is enhanced in the next stage using histogram equalization.
Secondly, space variant color reproduction is achieved by generating a real color map by transferring and modifying old chrominance values either from theme image or input image. The proposed method can be useful in the following scenarios.
In white light imaging (WLI), white light is used for illuminating the GI tract and color images are generated by the endoscope. Using the proposed method, any low-contrast color WLI image can be enhanced at grayscale level and then be colorized with its original color, which can help the gastroenterologists to better inspect the vascular and mucosa structures.
It can be used in colorizing a grayscale image using the tone of a different color theme image. This is useful when only grayscale image is available (the corresponding color image is either not available or distorted). Secondly, it is useful in saving power and bandwidth during transmission in wireless capsule endoscopy (WCE). Instead of transmitting all color images from the electronic capsule, it can only transmit one color image followed by 3 or 4 grayscale images. Using the proposed method, these grayscale images can be later colorized using the first color image as the theme image.
In narrow band imaging (NBI), lights of 415 nm and 540 nm wavelengths are used to illuminate the mucosa surface; the reflected light from the mucosa is captured in a monochromic CCD image sensor [19]. The grayscale images from the CCD image sensor are then passed to an image processor where a pseudocolor is added to the images [20]. Using the proposed method, the grayscale NBI images can be further enhanced for better visibility of the mucosa structure; pseudocolors can then be added using the tone of any color theme image.
2. Proposed Method
The proposed method consists of two stages: image enhancement and space-variant chrominance mapping based color reproduction. The method is shown in Figure 1. The stages are briefly discussed below.
2.1. Image Enhancement
At first, the color endoscopic image is converted into YC b C r color space using (1). Here, Y is luminance or luma and C b and C r are chrominance components. The color space conversion allows us to process different luma pixels to enhance vascular features and chrominance pixels for color reproduction. Consider
(1) |
Here, Y is considered grayscale image. After conversion, the proposed method normalizes grayscale image and each chrominance plane between 0 and 1 using (2). Consider
(2) |
Here, x min and x max are minimum and maximum pixel values. Later, the normalized grayscale image is enhanced using adaptive sigmoid function and uniform distribution.
2.1.1. Adaptive Sigmoid Function
The proposed method uses contrast manipulation techniques for image enhancement. Generally, contrast manipulation technique can be performed either globally or adaptively. Global techniques apply a transformation to all image pixels, while adaptive techniques use an input-output transformation that varies adaptively with local image characteristics. Our method transforms the pixel values adaptively using sigmoid function.
In general, a sigmoid function is real valued and differentiable, having either a nonnegative or nonpositive first derivative that is bell shaped. It has been used in several researches related to image processing [25–27]. Using x for the input, the sigmoid function is given below:
(3) |
In the training mode, we have observed that in a certain exponent the image highlights some vascular characteristics and mucosa structure, which are not clearly visible in the original image. To control the exponent, we have introduced two coefficients in the sigmoid function. Using x for the input, g for gain, and k for cutoff, the modified sigmoid function is expressed below:
(4) |
The cutoff value determines the midpoint of the input curve and the gain controls the amount of bending. These two parameters give us the control to train the proposed method to generate a certain exponent that highlights some vascular characteristics. Let, x = 0,0.1,0.2,…, 1 normalized image pixel values where sigmoid function (4) is applied. Figure 2 presents the sigmoid curve of input pixel values based on different cutoff and gain.
These parameters (gain and cutoff) can control the overall brightness and contrast level of the image too. The cutoff value controls the amount of brightness and the gain controls the consecutive difference between pixels. To maintain the exponent into desired level, we have proposed algorithms to generate cutoff and gain value. Based on the input pixel values, (5) generate specific cutoff and gain value. Later on, these values are used in (4) to generate the sigmoid image. Consider
(5) |
where A = 100, S m = 6, S n = 5, x i is the pixel values of ith position and n is the number of pixel. These values are heuristically collected from simulation. First of all, we processed endoscopic images in different combination of gain and cutoff values. The images are collected from Gastrolab [28] and Atlas [29] database and have comments from gastroenterologist; as a result, they can be sub-divided into different disease categories. Figure 3 shows some examples of the original and corresponding sigmoid images. The abnormalities in the images may be identified, but not the tissue and vascular characterization (as marked with an arrow in Figures 3(a) and 3(c)). It is noted that mucosa structure, tissue and vascular characteristics are important since by analyzing them the status of gastric glands and pits can be investigated [30–32].
During simulation, we observed that in certain cases, with gain in a range of 7.5–8.5 and cutoff in a range of 0.4–0.5, the tissue and vascular characterization are highly visible. To keep the gain and cutoff in that desired range, we propose (5). For better illustration, we have presented sigmoid images processed with different combination of gain and cutoff values in Table 1. Here, the effects on images for different combination of gain and cutoff values are observed. For example, Image #1 and #5 have low intensity; image #2 has high brightness; image #3 and #4 have highlighted tissue and vascular characterization.
Table 1.
Number | Original gray scale image | Sigmoid image | Used gain and cutoff values |
---|---|---|---|
1 |
g = 5 k = 0.7 |
||
| |||
2 |
g = 6 k = 0.1 |
||
| |||
3 |
g = 8 k = 0.5 |
||
| |||
4 |
g = 7.5 k = 0.4 |
||
| |||
5 |
g = 9 k = 0.6 |
2.1.2. Uniform Distribution of Sigmoid Pixels
In the next stage, the sigmoid pixels are uniformly distributed to increase the contrast level. It helps to visualize the vascular characteristic of darker part of an adaptive sigmoid image. It is employed by effectively spreading out the most frequent intensities.
Let, f be a given sigmoid image represented as i by j matrix of integer pixel intensities ranging from 0 to 255. Let, p denotes the normalized histogram of f with bin for possible intensities. So,
(6) |
where m = 0,1, 2,…, 255. The uniformly distributed sigmoid image Ψ is defined as,
(7) |
where floor() maps to the largest integer but lesser than the number. Normally, the cumulative distribution function (CDF) of an image does not form a horizontal line, that means, the pixel values are not equally likely to occur. In the proposed method, a uniform distribution of sigmoid pixels is achieved by applying (6) and (7); this technique is similar to global histogram equalization. Table 2 shows the visual comparison of uniform distribution of sigmoid pixels. This uniformly distributed sigmoid image Ψi,j is later treated as new enhanced grayscale image (Ψ).
Table 2.
Image type | Cumulative distribution function (CDF) | Histogram of image |
---|---|---|
| ||
2.2. Color Reproduction
In the second stage of the proposed method, we apply color reproduction. It is a computer-assisted process of adding color to a monochrome image [33, 34]. In the proposed method, it is possible to retrieve the original color with a better tone or add pseudocolor using a theme image. This choice is controlled by the user through the “color decision” module (see Figure 1) which selects the chrominance components.
Case 1 . —
To retrieve original color, we first create new C b and C r planes by matching the original C b and C r values for corresponding Y pixels from the original grayscale image. First of all, the positions of all C b and C r values in the plane for a particular Y pixel are identified as expressed by (8):
(8) Here, Y is normalized grayscale image, Y i,j is a pixel of normalized grayscale image and [m, n] holds one or multiple positions. These positions will allow us to generate new chrominance planes. Two scenarios may occur: (a) if only one chrominance value is found, it places that value in the corresponding positions in the new C b and C r planes. (b) Otherwise, if multiple chrominance values are found, it generates a new chrominance value using (9) and places it in the corresponding positions of the new C b and C r planes
(9) These steps continue until all pixels of the grayscale image are scanned. The new C b and C r will have the same dimension of the original grayscale image. Later, the enhanced grayscale image (Ψ) and the new C b and C r images are converted back to RGB image using (10)
(10)
Case 2 . —
To add pseudocolor, a theme image is required. It is applicable when only grayscale image or no color information is available. As the color information in an endoscopic image dictates clinical decision, the selection of theme image is very important. The theme image must be selected from the nearby location or region of GI tract. After selecting a proper theme color image, it is converted into YC b C r space. Then, we create new C b and C r planes by matching the chrominance values of the theme image for the corresponding enhanced pixel (Ψi,j). Now, similar procedure as given in (8) is followed to find the new C b and C r planes (given in (11))
(11) Here, Y t is normalized theme grayscale image, Ψi,j is a pixel of enhanced grayscale image and [m, n] holds one or multiple locations. These locations allow us to generate the new chrominance plane with respect to the enhanced and theme grayscale images. Here, the chrominance values are generated from the C b and C r planes of the theme image.
Three scenarios may occur: (a) if only one chrominance value is found, it places that value in the corresponding positions in the new C b and C r planes. (b) if multiple chrominance values are found, it generates a new chrominance value using (9) and places it in the corresponding positions of the new C b and C r planes (c) if no chrominance value is found, it reads the chrominance value respect to the positions of Ψi,j in theme C b and C r planes and places it in the corresponding position of the new C b and C r planes. These steps continue until all pixels of the enhanced grayscale image are scanned. The new C b and C r will have the same dimension of the original grayscale image. Later, the enhanced grayscale image (Ψ) and the new C b and C r images are converted back to RGB image using (10).
In Figure 4, the flow chart of the color reproduction algorithm is presented. Some reconstructed images for the two cases are shown in Figures 5 and 6. It can be seen that the proposed method enhances color information in all reconstructed images.
3. Results and Discussion
In order to evaluate the performance of the proposed algorithm, we have applied it to several endoscopic images collected from Gastrolab [28] and Atlas [29]. The results are summarized below in four categories.
3.1. Category 1: Low-Contrast Color Images
In this case, the input image is first enhanced on gray level and then color added. The chrominance values of the original input image are used for color reproduction. As a result, the output image has similar color tone with enhanced features as shown in Table 3. It can be seen from the table that the vascular and other mucosa structures are better visible and highlighted in the output images, which can help the gastroenterologists in better diagnosis.
Table 3.
Number | Input original image (color) | Enhanced grayscale image | Output enhanced color image |
---|---|---|---|
1 | |||
| |||
2 | |||
| |||
3 | |||
| |||
4 |
3.2. Category 2: Low-Contrast Grayscale Images
In this case, we show examples where low-contrast grayscale images are used (i.e., color information is not available for these images). The grayscale images are first enhanced and then colorized using a theme image. The choice of the theme image is important as it may add color distortion if not properly chosen. As a result, we choose a theme image from the same or similar physical location of the GI tract. The results of the enhanced color images are shown in Table 4 along with the corresponding theme images.
Table 4.
Number | Input original image (grayscale) | Enhanced grayscale image | Theme image | Output enhanced color image |
---|---|---|---|---|
1 | ||||
| ||||
2 | ||||
| ||||
3 | ||||
| ||||
4 |
3.3. Category 3: Raw NBI Images
In the next experiment, we applied our algorithm on several NBI images (grayscale in nature) as shown in Table 5. The raw NBI images are enhanced first and then a color theme image is used to generate pseudocolor. The theme images are chosen the same way as described before. We can see from the table that the output images have much better visibility of the mucosa structure compared to the grayscale images.
Table 5.
Number | Input RAW NBI image | Enhanced grayscale image | Theme image | Output enhanced color image |
| ||||
1 | ||||
| ||||
2 | ||||
| ||||
3 |
3.4. Category 4: Image Transmission in WCE
The proposed color generation method is very useful in saving power consumption during transmission in wireless capsule endoscopy (WCE). Instead of transmitting all color images from the electronic capsule (which takes 24 bits per pixel per image), it can only transmit one color image at the beginning followed by a defined number of grayscale images (8 bits per pixel per image). Using the proposed method, these grayscale images will be later colorized using the first color image at the receiver. In Table 5, we show the results of such case where the R, G and B components of frame 1 are transmitted first. Then only the luminance (Y) components of frame 2, 3, 4, and 5 are transmitted. At the receiver, these frames 2–5 are reconstructed using the proposed color reproduction method taking frame 1 as the theme image. Later on, the color reconstructed images are compared with the original color video sequences. In conventional case, the R, G, and B components of all frames are transmitted. For the given case, for five frames, it will require a total of 120 bits per pixel (i.e., 24 × 5). On the other hand, using the proposed method, it will require only 56 bits per pixel (i.e., 24 + 8 + 8 + 8 + 8) which results in a saving of 53% during the transmission. More saving will be achieved using the number of grayscale frames is increased. The original color video frames are also shown in Table 6 for comparison. Here we see that the reconstructed output images have the same color as compared with the original color video frames with a power saving of 53%.
Table 6.
Frame number | 1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|---|
Original video frames | |||||
| |||||
Input images | |||||
| |||||
Proposed color images (Frame number 1 used as theme image) |
It should be noted here that, the previous work [18] was only applied to color images whereas the proposed method can be applied to both color and grayscale images. As a result, low-contrast gray (category 2) and NBI raw (category 3) images can be colorized using the method using a theme image. This feature also makes the algorithm helpful in saving power during WCE image transmission (category 4).
4. Performance Analysis
In the following section, the performance of the proposed scheme is evaluated using focus value, statistic of visual representation, measurement of uniform distribution, color similarity test, color enhancement factor (CEF) and time complexity. The results are discussed below.
4.1. Focus Value
In our method, image enhancement is achieved by adaptive sigmoid function and uniform distribution of sigmoid pixels. As a result, the overall information of sharp counters and contrast is increased. These changes of an image are evaluated using focus value [35]. Focus value is a mathematical representation of the ratio of AC and DC energy values of a Discrete Cosine Transform (DCT) of an image [36]. Let E AC be the AC values and E DC the DC value of a DCT image. E AC values carry the information related to high frequency component (i.e., changes of contrast level, sharp counters and crisp edges) of an image. On the other hand, E DC value carries only the information related to low frequency components (i.e., luminance or brightness). The expressions are given below:
(12) |
Here, u and v represent the row and column of the DCT image, F DC is the DC part and F AC is the AC part of DCT image. The resultant of the ratio of E AC and E DC is the focus value F S as given by
(13) |
If the overall information of sharp counters, crisp edges and contrast of enhanced image is higher than the original image, then F S of the enhanced image will be higher than that of the original image and vice versa. We have compared our method in terms of focus value using 60 sample images with other methods like AHE [11], CLAHE [12], HBF [13] and BPDFHE [14]. The results are presented in Table 7. Here, we see that the focus values of the proposed method are relatively higher compared to the other methods.
Table 7.
Image number | Focus value | |||||
---|---|---|---|---|---|---|
Original | AHE [11] | CLAHE [12] | HBF [13] | BPDFHE [14] | Proposed | |
1 | 15.64 | 17.50 | 22.96 | 22.86 | 22.04 | 42.10 |
2 | 12.52 | 16.75 | 20.14 | 19.33 | 17.11 | 42.52 |
3 | 18.01 | 19.20 | 23.18 | 22.40 | 22.00 | 41.57 |
4 | 13.66 | 18.85 | 22.01 | 20.97 | 20.51 | 42.00 |
| ||||||
Average of 60 endoscopic images | 13.77 | 19.08 | 21.11 | 20.49 | 19.49 | 41.17 |
4.2. Statistic of Visual Representation
Next, we used statistic of visual representation [37] to measure the contrast and intensity distortion between two images. Equations (14) represent statistic visual representation. Consider
(14) |
where σ out and L out are the variance and mean of enhanced image; σ in and L in are the variance and mean of original image, respectively. Here, C defines the percentage of increment or decrement of contrast level and L defines the percentage of increment or decrement in intensity level. In our experiment, we used 60 grayscale images. The results are presented in Table 8. We can see that the C and L of the first image using proposed method are 1.0636 and 0.0716, which means that the contrast and intensity level of proposed image are 103.6 and 7.16 times higher than the original image, respectively. Here, the negative sign denotes the decrement. It is noticeable that the proposed method's contrast level and intensity level are higher compare to the other method.
Table 8.
Image number | Contrast measurement | Intensity measurement | ||||||||
| ||||||||||
AHE [11] | CLAHE [12] | HBF [13] | BPDFHE [14] | Proposed | AHE [11] | CLAHE [12] | HBF [13] | BPDFHE [14] | Proposed | |
| ||||||||||
1 | 0.3373 | 0.4735 | 0.4285 | 0.2025 | 1.0636 | −0.1781 | 0.0598 | 0.0254 | 0.0065 | 0.0716 |
2 | 0.2767 | 0.6352 | 0.2395 | 0.3608 | 2.4684 | −0.0312 | 0.1207 | 0.0095 | 0.0092 | 0.2526 |
3 | 0.1205 | 0.2935 | 0.2395 | 0.1192 | 1.12294 | −0.1122 | 0.0410 | 0.0095 | −0.0012 | 0.1322 |
4 | 0.3401 | 1.1598 | 0.8235 | 0.7206 | 2.0349 | −0.1186 | −0.0291 | 0.0134 | −0.0100 | 0.0218 |
| ||||||||||
Average of 60 endoscopic images | 0.2554 | 0.6411 | 0.4149 | 0.3371 | 1.6147 | −0.1203 | 0.0381 | 0.0197 | 0.0174 | 0.1748 |
4.3. Measurement of Uniform Distribution
Here, we calculate the uniform distribution of R, G, and B planes by calculating entropy [38, 39]. The more the uniform distribution of color planes, the better the color enhancement. The entropy of n distributed signals is defined by
(15) |
First, we have showed the advantage of using proposed color reproduction in Table 9. Here, in image (a), we used the proposed image enhancement algorithm on the luminance plane and left the chrominance planes unchanged. In image (b), we applied proposed image enhancement on luminance and color reproduction on the chrominance planes. From both images, it is noticeable that the image in (a) without color reproduction does not preserve brightness and shows imbalance saturation level. On contrary, the image in (b) with color reproduction has much balanced saturation and it preserves the overall brightness. It happens because YC b C r is a nonuniform and nonorthogonal color space. That is why we need to manipulate both luminance and chrominance in such a way that the correlation does not break and preserve the brightness along with the color saturation level. Additionally, our method achieves a higher entropy value, which means that it produces a more uniform histogram. The entropy value of image (b) is 7.6237 which is higher than that of image (a) that is 7.4961.
Table 9.
Processed image | Histogram of R plane | Histogram of G plane | Histogram of B plane |
| |||
| |||
Table 10 shows the performance comparison with other related methods. In shows that the proposed method produces images with enhanced and highlighted mucosa structures. The results are also summarized in Table 11.
Table 10.
Table 11.
4.4. Color Similarity Test
To validate the results statistically, the color similarity between the original and color reproduced images is evaluated using several performance metrics such as, CIE94 delta-E color difference [40], mean structure similarity index (MSSIM) [41] and structure and hue similarity (SHSIM) [42]. The purpose is to show that our color reproduction method does not add any additional color. CIE94 is used to measure the color differences between processed and original image in LAB color space. In CIE94, ΔE 94 * ≈ 2.3 indicates that the color difference between two images is the lowest. MSSIM are used to measure color similarity in the chrominance planes in YC b C r color space. SHSIM is used to measure the hue and structure similarity between processed and original image in HSV color space. Here, we have used 60 trial images to evaluate the color similarity index. The results are compared with other color reproduction methods and presented in Table 12. It can be seen that the average MSSIM and SHSIM indices are higher than others in our scheme with a color difference ΔE 94 * close to 2.3. All these values indicate that the colorized images are very close to the original images.
Table 12.
4.5. Color Enhancement Factor (CEF)
We have also evaluated our scheme in terms of color enhancement. Here, we have used a no-reference performance metric called colorfulness matric (CM) [43]. The CM measurement is based on the mean and standard deviations of two axes opponent color representation with, α = R − G and β = (1/2)(R + G) − B. The metric is defined as
(16) |
where σ α and σ β are standard deviations of α and β, respectively. Similarly, μ α and μ β are their means. However, in our comparison, we have used the ratio of CMs between the enhanced and original image for observing the color enhancement factor (CEF). If CEF < 1, than the original image is better compared to the enhanced image in terms of color image enhancement. CEF with value 1 indicates that there is no difference between the enhanced and original image in terms of color enhancement. The results have been presented in Tables 13 and 14. Here we can see that CEF values of the proposed method are highest compared to other enhancement methods which indicates that our scheme performs better in terms of color enhancement. Figure 7 shows some reconstructed images.
Table 13.
Table 14.
4.6. Algorithm Complexity
The time required to generate an enhanced color image for different image sizes using the proposed method and other related works [21–24] are shown in Table 15. The experiment was conducted on a PC having Intel (R) Pentium(R) dual CPU @ 2.00 GHz and 6 GB of RAM. Here, it is noticeable that the proposed method is the fastest method including both image enhancement and color reproduction. For an image of n pixels, the proposed algorithm has linear computational time complexity, O(n). The average simulation time of proposed method for 256 × 256 images is approximately 22 seconds and for 512 × 512 images is approximately 85 seconds. The work in [21, 23, 24] have significantly higher execution time when compared with the proposed method. Although the execution time of [22] is lower than ours, the quality of the color reproduction is much worse as shown in Figure 7.
Table 15.
Methodology | Image size | Step 1 | Step 2 | Total time (sec.) |
---|---|---|---|---|
Enhancement time (sec.) | Color reproduction time (sec.) | |||
Proposed | 256 × 256 | 1.909 | 20.614 | 22.523 |
512 × 256 | 2.597 | 40.119 | 42.716 | |
512 × 512 | 3.182 | 81.779 | 84.961 | |
| ||||
[23, 24] | 256 × 256 | 0.39 | 28.255 | 28.645 |
512 × 256 | 1.519 | 72.956 | 74.475 | |
512 × 512 | 1.525 | 113.31 | 114.835 | |
| ||||
[21] | 256 × 256 | — | 64.461 | 64.461 |
512 × 256 | — | 117.921 | 117.921 | |
512 × 512 | — | 232.146 | 235.149 | |
| ||||
[22] | 256 × 256 | — | 0.19 | 0.19 |
512 × 256 | — | 0.81 | 0.81 | |
512 × 512 | — | 0.47 | 0.47 |
5. Conclusion
In this paper, we have presented an image enhancement and color reproduction method for endoscopic images. The work focuses on enhancing the mucosa structures present in endoscopic image. The proposed color image enhancement is achieved in two stages: image enhancement at gray level followed by space variant chrominance mapping color reproduction. Image enhancement is achieved in two steps: adaptive sigmoid function and uniform distribution of sigmoid pixels. Secondly, space variant color reproduction is performed by generating a real color map by transferring and modifying old chrominance values either from theme image or input image. The quality of the generated enhanced colored images is evaluated using several standard performance metrics, which show that the features are highlighted on the new processed images.
Acknowledgments
The authors would like to acknowledge Grand Challenges Canada Star in Global Health, Natural Science and Engineering Research Council of Canada (NSERC), Canada Foundation for Innovation (CFI), and Western Economic Diversification (WED) Canada for their support to this research work.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
References
- 1.Brownsey A., Michalek J. Wireless Capsule Endoscopy. The American Society for Gastrointestinal Endoscopy; 2010. [Google Scholar]
- 2.Brownsey A., Michalek J. High Definition Scopes, Narrow Band Imaging, Chromoendoscopy. American Society for Gastrointestinal Endoscopy; 2010. [Google Scholar]
- 3.Chiu H.-M., Chang C.-Y., Chen C.-C., et al. A prospective comparative study of narrow-band imaging, chromoendoscopy, and conventional colonoscopy in the diagnosis of colorectal neoplasia. Gut. 2007;56(3):373–379. doi: 10.1136/gut.2006.099614. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Curvers W., Baak L., Kiesslich R., et al. Chromoendoscopy and narrow-band imaging compared with high-resolution magnification endoscopy in Barrett's Esophagus. Gastroenterology. 2008;134(3):670–679. doi: 10.1053/j.gastro.2008.01.003. [DOI] [PubMed] [Google Scholar]
- 5.Liangpunsakul S., Chadalawada V., Rex D. K., Maglinte D., Lappas J. Wireless capsule endoscopy detects small bowel ulcers in patients with normal results from state of the art enteroclysis. The American Journal of Gastroenterology. 2003;98(6):1295–1298. doi: 10.1111/j.1572-0241.2003.07471.x. [DOI] [PubMed] [Google Scholar]
- 6.Kuznetsov K., Lambert R., Rey J.-F. Narrow-band imaging: potential and limitations. Endoscopy. 2006;38(1):76–81. doi: 10.1055/s-2005-921114. [DOI] [PubMed] [Google Scholar]
- 7.Schmitz-Valckenberg S., Holz F. G., Bird A. C., Spaide R. F. Fundus autofluorescence imaging: review and perspectives. Retina. 2008;28(3):385–409. doi: 10.1097/iae.0b013e318164a907. [DOI] [PubMed] [Google Scholar]
- 8.Kaltenbach T., Sano Y., Friedland S., Soetikno R. American Gastroenterological Association (AGA) Institute technology assessment on image-enhanced endoscopy. Gastroenterology. 2008;134(1):327–340. doi: 10.1053/j.gastro.2007.10.062. [DOI] [PubMed] [Google Scholar]
- 9.Pohl J., May A., Rabenstein T., Pech O., Ell C. Computed virtual chromoendoscopy: a new tool for enhancing tissue surface structures. Endoscopy. 2007;39(1):80–83. doi: 10.1055/s-2006-945045. [DOI] [PubMed] [Google Scholar]
- 10.Chung S. J., Kim D., Song J. H., et al. Comparison of detection and miss rates of narrow band imaging, flexible spectral imaging chromoendoscopy and white light at screening colonoscopy: a randomised controlled back-to-back study. Gut. 2014;63(5):785–791. doi: 10.1136/gutjnl-2013-304578. [DOI] [PubMed] [Google Scholar]
- 11.Pizer S. M., Amburn E. P., Austin J. D., et al. Adaptive histogram equalization and its variations. Computer Vision, Graphics, and Image Processing. 1987;39(3):355–368. doi: 10.1016/s0734-189x(87)80186-x. [DOI] [Google Scholar]
- 12.Zuiderveld K. Graphics Gems IV. Academic Press Professional; 1994. Contrast limited adaptive histogram equalization; pp. 474–485. [Google Scholar]
- 13.Srivastava R., Gupta J. R. P., Parthasarthy H., Srivastava S. PDE based unsharp masking, crispening and high boost filtering of digital images. Communications in Computer and Information Science. 2009;40:8–13. doi: 10.1007/978-3-642-03547-0_2. [DOI] [Google Scholar]
- 14.Sheet D., Garud H., Suveer A., Mahadevappa M., Chatterjee J. Brightness preserving dynamic fuzzy histogram equalization. IEEE Transactions on Consumer Electronics. 2010;56(4):2475–2480. doi: 10.1109/TCE.2010.5681130. [DOI] [Google Scholar]
- 15.Carbonaro A., Zingaretti P. A comprehensive approach to image-contrast enhancement. Proceedings of the 10th International Conference on Image Analysis and Processing (ICIAP '99); September 1999; Venice, Italy. pp. 241–246. [DOI] [Google Scholar]
- 16.Ibrahim H., Kong N. S. P. Brightness preserving dynamic histogram equalization for image contrast enhancement. IEEE Transactions on Consumer Electronics. 2007;53(4):1752–1758. doi: 10.1109/tce.2007.4429280. [DOI] [Google Scholar]
- 17.Magudeeswaran V., Ravichandran C. G. Fuzzy logic-based histogram equalization for image contrast enhancement. Mathematical Problems in Engineering. 2013;2013:10. doi: 10.1155/2013/891864.891864 [DOI] [Google Scholar]
- 18.Imtiaz M. S., Wahid K. A. Image enhancement and space-variant color reproduction method for endoscopic images using adaptive sigmoid function. Proceedings of the 36th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC '14); August 2014; pp. 3905–3908. [DOI] [PubMed] [Google Scholar]
- 19.Dung L.-R., Wu Y.-Y. A wireless narrowband imaging chip for capsule endoscope. IEEE Transactions on Biomedical Circuits and Systems. 2010;4(6):462–468. doi: 10.1109/TBCAS.2010.2079932. [DOI] [PubMed] [Google Scholar]
- 20.Olympus. Evis Lucera Spectrum family brochure. 2014, http://www.olympus.co.uk/medical/en/medical_systems/mediacentre/media_detail_7450.jsp.
- 21.Welsh T., Ashikhmin M., Mueller K. Transferring color to greyscale images. ACM Transactions on Graphics. 2002;21(3):277–280. [Google Scholar]
- 22.Korostyshevskiy V. Grayscale to RGB Converter. MATLAB Central File Exchange; 2006. http://www.mathworks.com/matlabcentral/fileexchange/13312-grayscale-to-rgb-converter. [Google Scholar]
- 23.Imtiaz M. S., Khan T. H., Wahid K. A. New color image enhancement method for endoscopic images. Proceedings of the 2nd International Conference on Advances in Electrical Engineering (ICAEE '13); December 2013; pp. 263–266. [DOI] [Google Scholar]
- 24.Imtiaz M. S., Wahid K. A color reproduction method with image enhancement for endoscopic images. Proceedings of the 2nd Middle East Conference on Biomedical Engineering (MECBME '14); February 2014; Doha, Qatar. pp. 135–138. [DOI] [Google Scholar]
- 25.Saruchi. Adaptive sigmoid function to enhance low contrast images. International Journal of Computer Applications. 2012;55(4):45–49. doi: 10.5120/8747-2634. [DOI] [Google Scholar]
- 26.Plaza A., Benediktsson J. A., Boardman J. W., et al. Recent advances in techniques for hyperspectral image processing. Remote Sensing of Environment. 2009;113(1):S110–S122. doi: 10.1016/j.rse.2007.07.028. [DOI] [Google Scholar]
- 27.Hassan N., Akamatsu N. A new approach for contrast enhancement using sigmoid function. The International Arab Journal of Information Technology. 2004;1(2):221–225. [Google Scholar]
- 28.Gastrolab—The Gastrointestinal Site. 1996. http://www.gastrolab.net/index.htm. [Google Scholar]
- 29.Atlanta South Gastroenterology. Atlas of Gastrointestinal Endoscopy. Atlanta South Gastroenterology; 1996. http://www.endoatlas.com/index.html. [Google Scholar]
- 30.Allen A., Snary D. The structure and function of gastric mucus. Gut. 1972;13(8):666–672. doi: 10.1136/gut.13.8.666. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Ishihara R., Inoue T., Hanaoka N., et al. Autofluorescence imaging endoscopy for screening of esophageal squamous mucosal high-grade neoplasia: a phase II study. Journal of Gastroenterology and Hepatology. 2012;27(1):86–90. doi: 10.1111/j.1440-1746.2011.06850.x. [DOI] [PubMed] [Google Scholar]
- 32.Lovisa B. Endoscopic fluorescence imaging: spectral optimization and in vivo characterization of positive sites by magnifying vascular imaging [Ph.D. thesis] Lausanne, Switzerland: École Polytechnique Fédérale de Lausanne; 2010. [Google Scholar]
- 33.Wandell B. A., Silverstein L. D. Digital color reproduction. In: Shevell S. K., editor. The Science of Color. 2nd. Washington, DC, USA: Optical Society of America; 2003. [Google Scholar]
- 34.Yule J. A., Field G. G., Yule J. A. C. Color: An Introduction to Practice and Principles. New York, NY, USA: John Wiley & Sons; 2012. Color reproduction; pp. 167–186. [Google Scholar]
- 35.Xu X., Wang Y., Tang J., Zhang X., Liu X. Robust automatic focus algorithm for low contrast images using a new contrast measure. Sensors. 2011;11(9):8281–8294. doi: 10.3390/s110908281. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Shen C.-H., Chen H. H. Robust focus measure for low-contrast images. Proceedings of the International Conference on Consumer Electronics (ICCE '06); January 2006; pp. 69–70. [DOI] [Google Scholar]
- 37.Balas B., Nakano L., Rosenholtz R. A summary-statistic representation in peripheral vision explains visual crowding. Journal of Vision. 2009;9(12):1–18. doi: 10.1167/9.12.1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Manning C. D., Schutze H. Foundations of Statistical Natural Language Processing. 1st. Cambridge, Mass, USA: MIT Press; 1999. [Google Scholar]
- 39.Ney H., Martin S., Wessel F. Corpus-Based Methods in Language and Speech Processing. Vol. 2. Berlin, Germany: Springer; 1997. Statistical language modeling using leaving-one-out; pp. 174–207. (Text, Speech and Language Technology). [DOI] [Google Scholar]
- 40.Robertson A. R. Historical development of CIE recommended color difference equation. Color Research & Application. 1990;15(3):167–170. doi: 10.1002/col.5080150308. [DOI] [Google Scholar]
- 41.Wang Z., Bovik A. C., Sheikh H. R., Simoncelli E. P. Image quality assessment: from error visibility to structural similarity. IEEE Transactions on Image Processing. 2004;13(4):600–612. doi: 10.1109/tip.2003.819861. [DOI] [PubMed] [Google Scholar]
- 42.Shi Y., Ding Y., Zhang R., Li J. Structure and hue similarity for color image quality assessment. Proceedings of the International Conference on Electronic Computer Technology (ICECT '09); February 2009; pp. 329–333. [DOI] [Google Scholar]
- 43.Süsstrunk S. E., Winkler S. Color image quality on the Internet. 5th IS&T/SPIE Electronic Imaging 2004: Internet Imaging; January 2004; San Jose, Calif, USA. International Society of Optics and Photonics; pp. 118–131. [Google Scholar]