• 沒有找到結果。

Color calibration of swine gastrointestinal tract images acquired by radial imaging capsule endoscope

N/A
N/A
Protected

Academic year: 2021

Share "Color calibration of swine gastrointestinal tract images acquired by radial imaging capsule endoscope"

Copied!
12
0
0

加載中.... (立即查看全文)

全文

(1)

Color calibration of swine

gastrointestinal tract images acquired

by radial imaging capsule endoscope

Mang Ou-Yang

Wei-De Jeng

Chien-Cheng Lai

Hsien-Ming Wu

Jyh-Hung Lin

(2)

Color calibration of swine gastrointestinal tract

images acquired by radial imaging capsule

endoscope

Mang Ou-Yang,aWei-De Jeng,b,*Chien-Cheng Lai,cHsien-Ming Wu,dand Jyh-Hung Line

aNational Chiao-Tung University, Department of Electrical and Computer Engineering, 1001 University Road, Hsinchu City 30010, Taiwan bNational Chiao-Tung University, Institute of Electrical Control Engineering, 1001 University Road, Hsinchu City 30010, Taiwan

cLIYO-Machinery Company Limited, 39 Guangqi Road, Taichung City 42949, Taiwan

dChung-Shan Institute of Science & Technology, 481 Zhongzheng Road, Taoyuan City 32546, Taiwan eAnimal Technology Institute Taiwan, Division of Biotechnology, 52 Kedung Road, Miaoli City 35053, Taiwan

Abstract. The type of illumination systems and color filters used typically generate varying levels of color differ-ence in capsule endoscopes, which infludiffer-ence medical diagnoses. In order to calibrate the color differdiffer-ence caused by the optical system, this study applied a radial imaging capsule endoscope (RICE) to photograph standard color charts, which were then employed to calculate the color gamut of RICE. Color gamut was also measured using a spectrometer in order to get a high-precision color information, and the results obtained using both methods were compared. Subsequently, color-correction methods, namely polynomial transform and conformal mapping, were used to improve the color difference. Before color calibration, the color difference value

caused by the influences of optical systems in RICE was21.45  1.09. Through the proposed polynomial

trans-formation, the color difference could be reduced effectively to1.53  0.07. Compared to another proposed

con-formal mapping, the color difference value was substantially reduced to1.32  0.11, and the color difference is

imperceptible for human eye because it is <1.5. Then, real-time color correction was achieved using this

algo-rithm combined with a field-programmable gate array, and the results of the color correction can be viewed from

real-time images.© 2016 Society of Photo-Optical Instrumentation Engineers (SPIE) [DOI:10.1117/1.JBO.21.1.015010]

Keywords: radial imaging capsule endoscope; illumination system; light uniformity; optimal design.

Paper 150223RR received Apr. 3, 2015; accepted for publication Dec. 30, 2015; published online Jan. 22, 2016.

1

Introduction

Busy and stressful lives and complex dietary habits have increased the burden on the digestive system, thus rendering digestive system diseases the most typical disease of affluence. Capsule endoscopes developed in recent years are used to observe pathological changes in the digestive system. An illu-mination light source, optical camera, and image sensor are inte-grated to capture images in the human digestive system when peristalsis occurs and intestinal tract images are externally trans-mitted using radio transmission technology. The images are sub-sequently compared with those in a built-in database to assist

doctors to precisely analyze and treat diseases.1,2In biomedical

imaging, information related to blood is typically used to deter-mine the symptoms of digestive diseases; this is more important

for gastrointestinal bleeding diagnosed by capsule endoscope.3–6

When bleeding is observed in images, software is used to cal-culate and evaluate the possibility of pathological changes in the digestive system. Researchers have actively studied the

applica-tions of biomedical imaging.7–9Images captured using capsule

endoscopes are used to identify the presence of blood, and the distribution of blood can be identified after calculating color information by using a special algorithm. However, color differ-ence in images must be considered before calculations. Because color filters composed of red (R), green (G), and blue (B) spectra are installed on image sensors in cameras, the color information

of images is influenced by these color filters, which hinders the expression of true colors, thereby causing color difference. Applying this color information in studies regarding blood iden-tification might generate errors. Thus, color correction must be conducted in capsule endoscopes before performing physical

examinations.10First of all, the transfer function must be solved

by experiments; captured images are then multiplied using trans-formation matrix to obtain the intrans-formation of approximate stan-dard colors. In this study, the color difference produced using a radial imaging capsule endoscope (RICE) was enhanced;

the structure of RICE is shown in Fig.1; it includes a cone

mirror, a transparent view window, a lens, and an image sensor. Recently, the optical design of RICE including imaging and

illu-mination systems has been achieved,11,12and image registration

and connection studies on gastrointestinal images captured dur-ing various times in animal experiments have been conducted in

previous study.13However, the color images have not been color

corrected, causing distortion in the color information of color images. Thus, this study endeavored to address this problem, using color-correction algorithms to correct images and employ-ing the International Commission on Illusion Delta E 2000 (CIEDE2000) color difference formula to compare the images

before and after color correction.14Finally, we applied this

algo-rithm in a field-programmable gate array (FPGA) to realize real-time color correction, thereby providing a reference for the development of real-time color-correction chips.

*Address all correspondence to: Wei-De Jeng, E-mail:[email protected].

(3)

2

Color Calibration in Radial Imaging Capsule

Endoscope

Crucial factors causing color difference must be identified to enhance the color quality of images captured using RICE. To determine color distortion, the color information of color images must be compared with that of standard colors. The natural color system (NCS) is based on the six elementary color percepts of human vision; this color system can represent the real and natu-ral color precisely and match the human vision. The experiment design involved using a spectrometer, endoscope, and RICE to capture the NCS color chart. The endoscope and the camera of RICE were of the same module; the only difference was that the RICE captures panoramic images by using a cone mirror and the endoscope captures images of objects placed directly in front of

it.7The color information measured by spectrometers was

tri-stimulus values and the color information measured using the endoscopes and RICE was gray-scale values of R, G, and B. The color information obtained using the spectrometer was regarded as a standard value. Subsequently, we converted the R, G, and B gray-scale values captured by the endoscope

and RICE into tristimulus values using transfer matrix,10

which were then compared with those obtained using the spec-trometer. In addition, the color difference was calculated using

the CIEDE2000 color-difference formula (Fig.2). To compare

the color gamut of the spectrometer, endoscope, and RICE, we measured the color charts of the NCS color circle, which com-prised yellow (Y), red (R), blue (B), and green (G), containing 40 pieces of color information.

Because white-light light-emitting diodes (LEDs) were used in endoscope and RICE illumination system, CIE Standard Illuminant D65 and white-light LEDs were used as illumination

system in order to measure color information. Figure3shows

the color information of the NCS color circle measured using

a spectrometer and endoscope. Figure3(a)indicated that color

charts illuminated by D65 exhibited small color gamut in color information measured using an endoscope, because the endoscope contained color filters, which exhibit R, G, and B spectral distributions different from those of the International Commission on Illumination 1931 (CIE 1931) standard colors. Therefore, colors were limited by color filters, generating different color gamut compared to the color gamut of spectrom-eter; from the 40 pieces of color information measured by endoscope and spectrometer, the color difference can be calcu-lated by CIEDE 2000, and the resulting color difference was

8.3 0.25. Figure 3(b) shows the color gamut measured,

which, illuminated by a D65 and white-light LED, due to the spectrum distribution, is different between these two light sources, and the D65 light is a standard light source, so it can express more color information. The color difference

between the two light sources was 19.35 1.27 (mean and

standard deviation). Table1 also shows other factors that can

also cause color difference in RICE; the last column defined a formula that was used to understand what crucial factors caused color difference in RICE, and it means these crucial factors dominated the color difference issue. Before correcting the color image, the total color difference in RICE was

21.45 1.09. As mentioned before, the light source and

color filters caused color difference in RICE; other factors can also cause color difference, like optics and electrical device. Optical system usually contains a lens; it is always designed with a wide wavelength range instead of a single wavelength, so the lens contains a color distortion issue. In our system,

the color difference caused by optical lens was 1.2 0.05.

For the image sensor, an analog-to-digital converter is needed

Fig. 1 The structure of RICE; it contains a cone mirror, a transparent view window, a lens, and an image sensor.

Fig. 2 The color information of the NCS color charts were obtained using a spectrometer, endoscope, and RICE, and were subsequently compared in terms of color gamut. The CIEDE2000 color difference was used to calculate the differences.

(4)

to convert the electrical signal to digital signal; it causes some quantization error. In other words, the quantization error distorted the original color information; it also caused color difference in

RICE, and the color difference was 0.97 0.03. Consequently,

we found that color filters and light source were crucial factors

causing color difference as shown in Fig.4. As the endoscope and

RICE used the same image sensor and light source, RICE would also yield color difference. In order to improve the color expres-sion in our system, the color mapping algorithms were sub-sequently used to investigate how distorted colors are corrected into the correct color information.

3

Methodology of Color Correction

As the color difference was calculated using tristimulus values and the color image information captured by the camera was the digital signals of R, G, and B gray-scale values, these digital signals must be converted to tristimulus values before calculating the color difference for color correction. Based on

Fig. 3 (a) Color gamut measured using a spectrometer and endoscope and illuminated by a D65. The endoscope’s color gamut is smaller than spectrometer because image sensors in endoscopes contained color filters, which limited the color information. (b) Color gamut measured, which is illuminated by a D65 and white-light LED. As the spectrum distribution is different between these two light sources, and the D65 light is a standard light source, it can express more color information.

Table 1 Factors causing color difference in RICE.

Factor Cause of color difference Percentage (%) Light source The spectrum of white-light LED used in RICE was different from D65 standard light source.

Hence, the color difference between D65 and white-light LED was19.35  1.27.

67 Color filter The endoscope contained color filters, which exhibit R, G, and B spectral distributions

different from those of the CIE 1931 standard colors. Hence, the color difference between color filter and stand RGB was8.3  0.25.

25

Optics The lens’ transmittances at different wavelengths were somewhat unequal; it also caused color difference, which was1.2  0.05.

5 Electrical device In general, a camera needs to convert the electrical signal to digital signal (image); it is usually

implemented by an analog-to-digital converter, and the quantization error always exists. It also caused color difference in RICE; the color difference was0.97  0.03 in our system.

3

Overall system The color difference caused by all the factors was21.45  1.09. 100

Fig. 4 The color difference of RICE caused by the following factors: light source, color filter, optics and electronics. From the vector pro-jection formula, we can know the percentage that each factor contrib-uted to the system’s color difference.

(5)

the standard definition of the standard RGB (sRGB) color space, because R, G, and B gray-scale values are influenced by gamma characteristics, gray-scale values must be linearly converted before R, G, and B gray-scale values can be converted to

tristim-ulus values by using the sRGB transformation matrix.15Figure5

shows the conversion relationship between digital color infor-mation and tristimulus values; the most crucial color mapping

approach is indicated with a blue block, whereC1is 12.92,C2is

0.055,C3is 1.055, andC4is 2.4. The color-correction process is

described below.

3.1 Polynomial Transform Method

This study adopted polynomial transforms16 and conformal

mapping17 to correct the distorted color images. Polynomial

transform involves applying the method of least squares to

obtain the optimal parameter solution as shown in Eq. (1);18

(xr; yr) represent reference colors, which are color information

measured using a spectrometer; (xc; yc) represent color

informa-tion measured using an endoscope or RICE. According to

Sec.2, the color information captured using the endoscope

gen-erated color difference because of the influences of color filters and LED; thus, a linear conversion relationship existed between

(xr; yr) and (xc; yc); (A1n; A2n) matrix is the transfer function we

need to solve it by least squares method. In Eq. (2),N means the

pieces of color information existed, where (xri; yri) and (xci; yci)

represent the i0th piece of color chart information measured

by the spectrometer and RICE, respectively. To calculate the minimum value of this error, we performed differentiation to obtain the optimal parameter solution. The general solution is

expressed in Eq. (2). EQ-TARGET;temp:intralink-;e001;63;136  xr yr  ¼ " A11 A12: : : A1n A21 A22: : : A2n # 2 6 6 6 6 6 4 xc yc .. . yr 3 7 7 7 7 7 5; (1) EQ-TARGET;temp:intralink-;e002;326;474 2 6 6 6 6 6 4 A11A21 A12A22 .. . A1nA2n 3 7 7 7 7 7 5 ¼ 2 6 6 6 6 6 4 2 6 6 6 6 6 4 PN i¼1xci PN i¼1yci .. . PN i¼1ynci 3 7 7 7 7 7 5 2 6 6 6 6 6 4 PN i¼1xci PN i¼1yci .. . PN i¼1ynci 3 7 7 7 7 7 5 T3 7 7 7 7 7 5 −12 6 6 6 6 6 4 PN i¼1xrixciPNi¼1yrixci PN i¼1xriyciPNi¼1yrixci .. . PN i¼1xriynciPNi¼1yriynci 3 7 7 7 7 7 5: (2) 3.2 Conformal Mapping

Another color-correction approach is conformal mapping, which is extended from the concept of complex variables.

The complex number z was divided into real part (x axis)

and imaginary part (y axis). Subsequently, conformal mapping

was used to map thez space onto the new w space (Fig.6). Color

set A is the color information of RICE, and color set B is the standard color information of the spectrometer. Thus, conformal mapping can be used to map color set A onto color set B. This approach applied a polynomial expansion method to map colors,

Fig. 5 Flowchart of color correction.

(6)

as shown in Eq. (3);z ¼ x þ iy and w ¼ u þ iv, a0; a1; a2: : : an

are complex constants. Equation (4) shows the example of a

third-order equation, and Eq. (5) was obtained by substituting

z ¼ x þ iy into Eq. (4). Then,u and v can be obtained by

sep-arately processing the real part and the imaginary part as shown

in Eqs. (6) and (7). Becausex and y on the z space and u and v

on thew space were independent variables, the polynomial

coef-ficients in theu and v directions were set as au0; au1; au2; au3

andav0; av1; av2; av3. Subsequently, the method of least squares

was applied to deduct the polynomial coefficient. Thus, the

polynomial coefficients in theu and v directions are shown in

Eqs. (8) and (9). EQ-TARGET;temp:intralink-;e003;326;752 fðwÞ ¼ a0þ a1z þ a2z2þ · · · þanzn; (3) EQ-TARGET;temp:intralink-;e004;326;729 fðwÞ ¼ a0þ a1z þ a2z2þ a3z3; (4) EQ-TARGET;temp:intralink-;e005;326;701

u þ iv ¼ a0þ a1ðx þ iyÞ þ a2ðx þ iyÞ2þ a3ðx þ iyÞ3; (5)

EQ-TARGET;temp:intralink-;e006;326;673 u ¼ au0þ au1x þ au2ðx2− y2Þ þ a u3ðx3− 3xy2Þ; (6) EQ-TARGET;temp:intralink-;e007;326;646 v ¼ av0þ av1y þ av2ð2xyÞ þ av3ð3x2y − y3Þ; (7) EQ-TARGET;temp:intralink-;e008;63;608 2 6 6 6 6 4 au0 au1 au2 au3 3 7 7 7 7 5¼ 2 6 6 6 6 4 2 6 6 6 6 4 PN i¼11 PN i¼1xi PN i¼1½x2i − y2i PN i¼1½x3i − 3xiy2i 3 7 7 7 7 5 2 6 6 6 6 4 PN i¼11 PN i¼1xi PN i¼1½x2i − y2i PN i¼1½x3i − 3xiy2i 3 7 7 7 7 5 T3 7 7 7 7 5 −12 6 6 6 6 4 PN i¼1ui PN i¼1½uixi PN i¼1½uiðx2i − y2iÞ PN i¼1½uiðx3i − 3xiy2iÞ 3 7 7 7 7 5; (8) EQ-TARGET;temp:intralink-;e009;63;523 2 6 6 6 6 4 av0 av1 av2 av3 3 7 7 7 7 5¼ 2 6 6 6 6 4 2 6 6 6 6 4 PN i¼11 PN i¼1yi PN i¼1½2xiyi PN i¼1½3x2iyi− y3i 3 7 7 7 7 5 2 6 6 6 6 4 PN i¼11 PN i¼1yi PN i¼1½2xiyi PN i¼1½3x2iyi− y3i 3 7 7 7 7 5 T3 7 7 7 7 5 −12 6 6 6 6 4 PN i¼1vi PN i¼1½viyi PN i¼1½við2xiyiÞ PN i¼1½við3x2iyi− y3iÞ 3 7 7 7 7 5: (9)

Other than using MATLAB®in color correction, this study

adopted the Cyclone III development board developed by Altera to attain the concept of hardware realization. In addition, incor-porating peripheral sub-boards enabled the system to read image formats such as Phase Alternating Line, the National Television System Committee, and Super-Video. Subsequently, color cor-rection was achieved using system internal logistic operation and then the Super-Video format output was transmitted. The design flowchart of the color mapping algorithm is shown in

Fig. 7. Initially, the system converted data to an RGB color

space; the RGB color space was converted into an xyY color

space and the linear conversion mentioned in Fig. 5. Then

thexy was multiplied by transfer matrix, which had been

deter-mined by MATLAB®. Subsequently, the new color information

x0y0 was obtained and converted to RGB space, so the new

color information was R0G0B0 all the registers are needed in

order to synchronize the data flow. Finally, a Nios II processor

was used to transmit the R0G0B0to a monitor through a digital

visual interface, thereby presenting the results of real-time color correction.

4

Experiments

The research framework primarily involved using RICE to cap-ture color charts and compare the capcap-tured color information

with that of a spectrometer. MATLAB®was also used to analyze

and correct colors. The experiment flowchart is shown in Fig.8.

Because the interior of the small intestine is completely dark, to match the conditions of the experiment environment, the experi-ment was conducted in a dark room. When capturing the images of color charts, the LED inside RICE was the only illumination, and optic fibers positioned at an included angle of 45 deg were used to measure the color charts information to fulfill CIE

spec-ifications.19A bright D65 light source is utilized as the

illumi-nator for measuring the color information by spectrometer.

Figure9shows how color charts were measured. After

exper-imental setup, we began to capture color chart images and mea-sure color information as shown on the upper-right corner of

Fig. 8. The color information obtained after capturing color

charts using RICE were (R1,G1,B1), (R2,G2,B2), (R3,G3, B3), and (R4,G4,B4). The R, G, and B values were acquired

(7)

by averaging an area of 40 by 40 on color chart images, and 285 color charts images were captured to ensure that the sample size was sufficient. Concurrently, the spectrometer was used to obtain 285 sets of color tristimulus values. Thus, the R, G, and B information measured by RICE can be converted into tristimulus values by using the sRGB transformation matrix, thereby determining the conversion relationship between the spectrometer and RICE as shown on the lower-left corner of

Fig.8. To test whether this transformation matrix can be applied

in an actual situation, an in vivo experiment was used to test the feasibility of color correction. A two-month-old pig cultivated in dust-free rooms at Animal Technology Institute Taiwan was used in the experiment. The institutional body was approved by National Taiwan University Hospital before this animal experiment. Professional surgeons dissected the abdominal sec-tions of the pig, pulled the duodenum out, and placed the RICE into the duodenum. To enable RICE to move forward using the

natural peristalsis of pig intestine, the doctors conducted first aid when necessary to keep the pig alive.

Figure10shows the duodenum images; 1588 images were

captured when the RICE moved∼12 cm in the duodenum;

how-ever, only eight images are displayed in this figure. The RICE images were warped images, and unwrapped images can be obtained using the conversion equation for converting polar

coordinates into Cartesian coordinates.13Before color

correc-tion, we considered to stitch all the images or to correct every color image before stitching images. If all the images were to be multiplied by the transformation matrix for color cor-rection, the corrected color images would be slightly different from the original color images, which would result in minor errors during image registration. In addition, if each image must be color corrected, the computing time would be extremely lengthy, thus hindering the use of an embedded system to per-form real-time color correction. To solve this problem, the cap-tured images were stitched in advance before performing color

correction. Figure11presents the stitched images based on the

Pearson correlation coefficient.13

5

Color Correction Results and Embedded

System Implementation

Before color correction, the color gamut that the RICE and

spec-trometer can express must be compared. Figure12(a)shows the

color gamut of RICE and spectrometer after 285 color charts were measured; in this figure, the reference represents the color charts information measured using the spectrometer. Because the color filter on the image sensor of RICE limited the expression of color information, the color gamut was appa-rently compressed. Thus, the color difference between the color information of RICE and the reference was 21.45. If the chro-maticity coordinates of the NCS color chart measured by RICE are restored to the NCS color space, we identified that the color

information expressed by the shifted internally. Figure 12(b)

shows that the color gamut were obviously compressed, yielding

Fig. 8 Experiment flowchart. Color charts information was measured using RICE and spectrometer under the same environmental conditions. Subsequently, the RICE color image information and color coordinate information measured by the spectrometer were stored in computers. Color correction can be realized in the clinical animal experiment after the transformation matrix was obtained using the color-correction algorithm.

Fig. 9 The setting of the RICE and spectrometer when measuring color information: optic fibers were placed at an included angle of 45 deg to measure the color information. RICE was placed flat above color charts to capture the color charts and measure the color information simultaneously.

(8)

no true colors. Therefore, this study suggested two approaches, polynomial transform and conformal mapping, to correct colors and applied CIEDE2000 to evaluate the corrected color

differ-ence. Table2presents the relationship between the color

correc-tion order number and color difference. When the seventh- and eighth-order color corrections were conducted, color difference

demonstrated saturation. By using the eighth-order equation in color correction, the polynomial transform enhanced the color difference to 1.53 and conformal mapping enhanced the color

difference to 1.32. Equation (10) was used to quantify the

improvement efficiency of color difference obtained from vari-ous orders of color corrections. The original color difference was 21.45, so the optimal improvement efficiencies of color correction achieved by polynomial transform and conformal mapping were 92.8 and 93.8% by using the eighth-order

equa-tion in color correcequa-tion, respectively. Figure 13 shows the

relationship between orders and color difference when the two color-correction approaches were applied in computing. The

order of color correction reached a critical point at∼2.5, and

the color difference of RICE images was∼2.2. When the order

of color correction was <2.5, the color correction effect of poly-nomial transform was superior to that of conformal mapping.

Fig. 10 Part of the duodenum images. The warped images were captured by RICE, and the unwrapped images (right) were obtained using polar coordinate conversion.

Fig. 11 Result of stitching intestine images.

Fig. 12 The RICE and spectrometer were used to simultaneously measure 285 color charts. (a) The color gamut of RICE and spectrometer showed that the color rendering indices were limited when com-pared with the color information measured by the spectrometer. (b) After measuring the NCS color circle using RICE, the obtained color information was reduced to the NCS color space. The black dots are concentrating toward the center, indicating that the color gamut obtained by RICE was compressed.

(9)

However, when the order of color correction was>2.5, the color correction effect of conformal mapping was superior to that of polynomial transform. Consequently, this characteristic can be applied in determining which approach must be adopted in color correction. When the system requires low color difference, con-formal mapping can be used. When the system requirement is lenient regarding color difference, polynomial transform can be used, which has a shorter operation time than that of conformal mapping and easily achieves real-time color correction. On the other hand, the color difference is <1.5 by using conformal map-ping with eighth-order equation; this is very meaningful because the color difference is imperceptible for human eye when it is

<1.5.19Figure14displays the color gamut after color correction

using eighth-order polynomial transform and conformal map-ping. The blue stars represent the color gamut measured using the spectrometer and the red stars represent the RICE color gamut after color correction. After color correction using the two algorithms, the color information was not overly centralized in certain areas compared with that obtained before color cor-rection. In addition, the color gamut of RICE was similar to that obtained by the spectrometer, suggesting that the expressed color information was richer after RICE images were color cor-rected and the disadvantages of the color information restricted by color filters were effectively improved.

EQ-TARGET;temp:intralink-;e010;326;488

Improvement efficiency

¼Original color difference− New color difference

Original color difference :

(10) After confirming that both polynomial transform and con-formal mapping can effectively correct color information, we directly applied this algorithm on real images to observe the differences between images before and after correction

(Fig.15). An eighth-order equation was applied, and the results

indicated that apparent differences existed between colors before and after color correction. Before color correction, the

color of the image was close to purple [Fig.15(a)]; the color

was close to skin color after color correction [Figs.15(b) and

Fig. 13 The relationship graph of the order of color correction and color difference shows that when the order of color correction is at ∼2.5 (a critical point), the color difference of RICE images is ∼2.2.

Fig. 14 The color gamut obtained after realizing color correction using (a) polynomial transform and (b) conformal mapping. The blue stars represent the color gamut measured by the spectrometer, and the red stars represent the color gamut obtained by RICE after color correction. These are the results of color correction obtained using an eighth-order equation.

Table 2 Comparison of different orders of color correction obtained using two color correction algorithms and improvement efficiency in color difference.

Order

Color difference after color correction Improvement efficiency (%) Conformal mapping Polynomial transform Conformal mapping Polynomial transform 2 3.30 2.63 84.6 87.7 3 1.48 2.16 91.7 89.9 4 1.45 2.00 91.9 90.8 5 1.40 1.86 92.4 91.3 6 1.35 1.56 93.1 92.7 7 1.33 1.54 93.8 92.8 8 1.32 1.53 93.8 92.8

(10)

15(c)]. However, the duodenum images did not exhibit great differences after color correction by using polynomial transform and conformal mapping, and these results corresponded with the

results shown in Table 2. When an eighth-order equation was

applied in color correction, similar improvement efficiencies of color difference were observed.

In order to understand how the primary colors R, G, and B are changed after color calibration, we analyze the intensity of

R, G, and B in the original stitched image [Fig. 15(a)] and

color-calibrated image [Fig.15(c)]. Figure16shows the results.

The mean ratios of R to G (Irg before) and R to B (Irb before) in the

image before color calibration are 1.40 0.12 and 1.55  0.26,

respectively. However, the mean ratios of R to G (Irg after) and R

to B (Irb after) increase to 1.45 0.10 and 2.01  0.54 in the

color-calibrated image, respectively. It is obvious that the inten-sity of R becomes stronger than the inteninten-sity of G and B after color calibration. This is very useful for blood detection if the intestinal images have a bleeding region, thus increasing the contrast of interesting area.

To realize the concept of an embedded system, we implement the aforementioned color-correction algorithms to the FPGA development board and applied ModelSim to test the correct-ness of the computation results. In addition, to realize real-time color correction, a third-order polynomial transform was used. Subsequently, after color correction was realized using

ModelSim and MATLAB®the errors were observed by

compar-ing the results. Table3shows the errors of using different

soft-ware for color correction, and only three pieces of color information were displayed. The R, G, and B values of the first piece of color information before color correction were 118, 128, and 108 (got from the raw data). The values of the

color after color correction using MATLAB®by the polynomial

transform were 105, 136, and 98, and those after color correc-tion using ModelSim were 102, 133, and 98. Therefore, com-putation errors were generated in the other two pieces of color information because different computing software was used, and quantization errors generally existed between digital and analog conversion. An FPGA is the logic design of digital circuits; thus, it uses the digital computing method, which contrasts with the

analog computation used in MATLAB®. Because digital

Fig. 15 An image of a duodenum: (a) before color correction, (b) after color correction using polynomial transform, and (c) after color correc-tion using conformal mapping.

Fig. 16 The averages of the ratio of R to G and R to B in the image before color calibration are1.40  0.12 and 1.55  0.26, respectively. However, the averages of the ratio of R to G and R to B increase to 1.45  0.10 and 2.01  0.54 in the color-calibrated image, respectively.

Table 3 Differences of color correction realized using MATLAB®and

ModelSim.

Software

(R,G,B)

Color 1 Color 2 Color 3 MATLAB® (105,136,98) (167,135,105) (206,254,132)

ModelSim (102,133,98) (162,135,108) (202,254,141)

Fig. 17 The corrected colorimetric values between MATLAB® and ModelSim.

(11)

computing methods do not compute floating-point numbers, the computing results of floating-point numbers can be rendered after multiplying numeric values by the significand. The preci-sion level and computation time increased as the decimal sig-nificand increased and vice versa. Currently, in ModelSim, 8-bit significand was applied in computing floating-point numbers, and the mean color difference of 30 pieces of color information between the digital and analog computing methods

was 0.97 0.03. Figure17shows the errors that have converted

the R, G, and B values to the colorimetric values. Although the

corrected colors are slightly different between MATLAB®and

ModelSim, this can be solved by increasing the length of data to express the floating-point numbers.

6

Conclusions and Discussions

In this study, under a D65 light source, we simultaneously cap-tured the same color charts by using a RICE and spectrometer. The color gamut clearly showed that the color expression of RICE was compressed because of the presence of color filters on the image sensor in RICE. The color filter limited color expression and thereby caused color difference. Because the light source of RICE also influences color gamut, we measured the LED in RICE using the spectrometer and found that consid-erable differences existed between the LED and D65 spectra, which also resulted in color difference. Thus, the color informa-tion captured by RICE must be corrected to attain accurate color information. Therefore, this study proposed two color-correc-tion algorithms: polynomial transform and conformal mapping.

The initial color difference of 21.45 1.09 can be reduced to

1.53 0.07 and 1.32  0.11 using polynomial transform and

conformal mapping, yielding optimal improvement efficiencies

of 92.8 and 93.8%, respectively. Figure13shows the applicable

algorithms and the order of color correction for attaining ideal color difference, which can be used as color-correction referen-ces for the RICE system. To facilitate the development of system chips, color-correction algorithms were written using Verilog syntax and were recorded on the FPGA development board to realize the concept of an embedded system. Subsequently, ModelSim was employed to simulate the results of color

correc-tion. The ModelSim results were compared with the MATLAB®

simulation results, demonstrating a mean color difference of

0.97 0.03.

Although this study focused on color correction when using RICE, the applications of the algorithms are not limited to RICE. The proposed color-correction methods can be extended to endoscopes or camera modules. In addition, regarding algo-rithm development, because the color of the interior of the human intestine is similar to the color of skin or blood, additional red and skin-hued color charts can be captured to increase the weighting of color correction. This can further decrease color difference and increase the accuracy of blood identification. Regarding hardware realization, we applied the third-order equation in real-time color correction, but achieved unsatisfactory results. Thus, in future, the pipeline framework can be applied to enhance the computation speed, and the equa-tion order number in the algorithms can be increased to mini-mize color difference and enhance the precision level of color images.

Acknowledgments

This paper was particularly supported by the Aim for the Top University Program of the National Chiao-Tung University, the

Ministry of Education of Taiwan, the Ministry of Science and Technology of Taiwan (NSC 102-2220-E-009-016), and the Industrial Technology Research Institute. The authors also want to thank them for providing experimental assistance and related information.

References

1. H. H. Hopkins and N. S. Kapany,“A flexible fiberscope, using static scanning,”Nature173(4392), 39–41 (1954).

2. G. Iddan et al.,“Wireless capsule endoscopy,”Nature405(6785), 417– 418 (2000).

3. D. Gunjan et al.,“Small bowel bleeding: a comprehensive review,”

Gastroenterol. Rep.2(4), 262–275 (2014).

4. C. Ell and A. May,“Mid-gastrointestinal bleeding: capsule endoscopy and push-and-pull enteroscopy,”Endoscopy38(1), 73–75 (2006). 5. B. L. Zhang, C. X. Chen, and Y. M. Li,“Capsule endoscopy

examina-tion identifies different leading causes of obscure gastrointestinal bleed-ing in patients of different ages,” Turk. J. Gastroenterol. 23(3), 220–225 (2012).

6. Z. Liao et al.,“Indications and detection, completion, and retention rates of small-bowel capsule endoscopy: a systematic review,”Gastrointest. Endosc.71(2), 280–286 (2010).

7. L. Baopu and M. Q. H. Meng,“Computer-aided detection of bleeding regions for capsule endoscopy images,” IEEE Trans. Biomed. Eng.

56(4), 1032–1039 (2009).

8. H. Daryanavard, G. Karimian, and S. M. R. Shahshahani,“A new IC designed inside capsule endoscope for detection of bleeding region,” in Iranian Conf. of Biomedical Engineering, pp. 1–4 (2010).

9. L. Phooi Yee and P. L. Correia,“Detection of bleeding patterns in WCE video using multiple features,” in 29th Annual Int. Conf. of the IEEE Engineering in Medicine and Biology Society, pp. 5601–5604 (2007).

10. M. Luckiesh, Visual Illusions: Their Causes, Characteristics and Applications, Chapter 9, Kessinger Publishing, New York (1922). 11. M. Ou-Yang and W. D. Jeng,“Design and analysis of radial imaging

capsule endoscope (RICE) system,”Opt. Express19(5), 4369–4383 (2011).

12. M. Ou-Yang and W.-D. Jeng,“Improving the uniformity of luminous system in radial imaging capsule endoscope system,”Opt. Eng.52(2), 023003 (2013).

13. M. Ou-Yang et al., “Image stitching and reconstructing image of intestines captured using radial imaging capsule endoscope (RICE),”

Opt. Eng.51(5), 057004 (2012).

14. G. Sharma, W. Wu, and E. N. Dalal,“The CIEDE2000 color-difference formula: implementation notes, supplementary test data, and math-ematical observations,”Color Res. Appl.30(1), 21–30 (2005). 15. P. Bodrogi et al.,“On the use of the sRGB colour space: the ‘Gamma’

problem,”Displays23(4), 165–170 (2002).

16. H. Wannous et al.,“Improving color correction across camera and illu-mination changes by contextual sample selection,”J. Electron. Imaging

21(2), 023015 (2012).

17. J. W. Brown and R. V. Churchill, Complex Variables and Applications, Chapter 9, McGraw-Hill, New York (2009).

18. T. Johnson,“Methods for characterizing colour scanners and digital cameras,”Displays16(4), 183–191 (1996).

19. International Commission on Illumination, Colorimetry, CIE Central Bureau, Vienna, Austria (2004).

Mang Ou-Yang received his BS degree in control engineering in 1991 and his MS and PhD degrees in electro-optical engineering in 1993 and 1998 from National Chiao-Tung University, Hsinchu, Taiwan. His research interests are related to optoelectronics industrial instrumen-tation development, including biomedical optics, microthermal sen-sors, readout electronics, and projection display technology. Wei-De Jeng received his BS degree from the Department of Electrical Engineering, National Taiwan Ocean University, Taiwan, in 2008 and his MS degree from the Department of Optics and Photonics Engineering, National Central University, Taiwan, in 2010. He is currently studying toward his PhD at National Chiao-Tung University. His research interest focuses on the biomedical field.

(12)

Chien-Cheng Lai is an engineer at the LIYO-Machinery Company Limited. He received his MS degree from the Institute of Electrical Control Engineering, National Chiao-Tung University, in 2011. His current research interests include image processing and color science.

Hsien-Ming Wu received his master’s degree in chemistry in 1971 and his PhD in chemical engineering from Tsing-Hua University, Taiwan, in 1986. From 1995 to 2001, his major research focus was on the conductive polymer, OLED, and MEMS. Until 2005, his research focus was on biomedical instruments, especially on the capsule endoscope and digital x-ray, DR and CR sensors.

Jyh-Hung Lin was an assistant research fellow in the Division of Biotechnology, Animal Technology Institute Taiwan. He received his MS degree from the Department of Veterinary Medicine, National Chung Hsing University and his PhD from the School of Veterinary Medicine, National Taiwan University. His current research interest is swine health status.

數據

Fig. 2 The color information of the NCS color charts were obtained using a spectrometer, endoscope, and RICE, and were subsequently compared in terms of color gamut
Table 1 Factors causing color difference in RICE.
Fig. 6 Conformal mapping of the z plane onto the w plane.
Fig. 7 . Initially, the system converted data to an RGB color
+5

參考文獻

相關文件

• Table 25.4 shows the usual symbols used in circuit diagrams... Resistors are color-coded for easy

Microphone and 600 ohm line conduits shall be mechanically and electrically connected to receptacle boxes and electrically grounded to the audio system ground point.. Lines in

look up BRDF for view, ρ integrate product of L, V, ρ set color of vertex. draw

sample values (grid of color pixels) from functions defined over continuous domains (incident radiance defined over the film plane) (incident radiance defined over the film plane)

To improve the quality of reconstructed full-color images from color filter array (CFA) images, the ECDB algorithm first analyzes the neighboring samples around a green missing

The purpose of this paper is to achieve the recognition of guide routes by the neural network, which integrates the approaches of color space conversion, image binary,

A digital color image which contains guide-tile and non-guide-tile areas is used as the input of the proposed system.. In RGB model, color images are very sensitive

For the application of large size flat panel display such as LCD TV, Notebook, Monitor etc, the correlation color temperature can be adjusted via the color image processing circuit