원시데이터 수집 시스템
선정목록으로

Research on Real‐Time Detail Enhancement Algorithm for Endoscopic Video Images and Hardware Implementation

관련 필름·전자재료 · (15) 디스플레이 패널재료

기본 정보

저자
  1. Tianci Wu
  2. Yu Pang
  3. Yuanfa Wang
  4. W. Su
DOI
10.1049/cds2/4098208
저널
IET Circuits Devices & Systems
발행년도
2025
발행기관
Institution of Engineering and Technology
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1049/cds2/4098208
토픽
Color Science and Applications
OpenAlex ID
W4412393767

평가 내용

관련도
관련
사업분야
필름·전자재료 · (15) 디스플레이 패널재료
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 디스플레이 패널재료' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In order to solve the problems of low contrast and weak detail information of endoscope images, the image adaptive histogram detail enhancement algorithm is presented. Although the adaptive histogram equalization (AHE) algorithm has been studied in some depth, the detail enhancement algorithm is relatively complicated and difficult to implement in endoscope hardware. In order to realize the real‐time and adaptive enhancement of endoscope image details on the hardware system, the AHE algorithm is improved to reduce the hardware resource consumption and time complexity. The improved algorithm selects the segmentation condition suitable for real‐time image, the threshold interception, and the pipeline structure to process the low contrast endoscopic image. Xilinx’s Artix‐7 chip is used to implement the hardware circuit and process images with a resolution of 640 x 480 in real time at a rate of up to 160 frames per second. The design utilizes 25K look‐up tables (LUTs), 6K flip–flops, and 33 block RAMS. The experimental results show that the improved algorithm has the characteristics of fast processing speed, good detail enhancement effect, and strong portability, which can meet the requirements of real‐time video processing in endoscopy.

본문 46,206자

본문 펼치기
Wiley IET Circuits, Devices & Systems Volume 2025, Article ID 4098208, 14 pages https://doi.org/10.1049/cds2/4098208 # Research Article Research on Real-Time Detail Enhancement Algorithm for Endoscopic Video Images and Hardware Implementation Tianci Wu, Yu Pang, Yuanfa Wang, and Wenpeng Su School of Optoelectronic Engineering, Chongqing University of Posts and Telecommunications, Chongqing, China Correspondence should be addressed to Yuanfa Wang; [wangyf@cqupt.edu.cn](mailto:wangyf@cqupt.edu.cn) Received 27 July 2024; Accepted 2 June 2025 Academic Editor: Shashikant Patil Copyright © 2025 Tianci Wu et al. IET Circuits, Devices & Systems published by John Wiley & Sons Ltd. This is an open access article under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited. In order to solve the problems of low contrast and weak detail information of endoscope images, the image adaptive histogram detail enhancement algorithm is presented. Although the adaptive histogram equalization (AHE) algorithm has been studied in some depth, the detail enhancement algorithm is relatively complicated and difficult to implement in endoscope hardware. In order to realize the real-time and adaptive enhancement of endoscope image details on the hardware system, the AHE algorithm is improved to reduce the hardware resource consumption and time complexity. The improved algorithm selects the segmentation condition suitable for real-time image, the threshold interception, and the pipeline structure to process the low contrast endoscopic image. Xilinx’s Artix-7 chip is used to implement the hardware circuit and process images with a resolution of 640 x 480 in real time at a rate of up to 160 frames per second. The design utilizes 25K look-up tables (LUTs), 6K flip–flops, and 33 block RAMS. The experimental results show that the improved algorithm has the characteristics of fast processing speed, good detail enhancement effect, and strong portability, which can meet the requirements of real-time video processing in endoscopy. Keywords: adaptive histogram equalization; detail enhancement; endoscope; FPGA; real-time 1. Introduction Image detail enhancement algorithms have been the subject of significant research in the fields of machine vision, image processing, and image analysis, which aim to highlight the details and texture information in an image to make it clearer and easier to analyze [1]. Traditional image detail enhancement algorithms are generally applied to medical image analysis, satellite image processing, security monitoring, digital photography, and other fields [2–7]. In the medical field, endoscopes are used to examine the internal cavities and tissue structures of the human body. The observation and diagnosis of internal organs, blood vessels, tissues, and so on can be achieved through endoscopes. The principle of medical endoscope imaging mainly relies on optical imaging. The lens section of an endoscope usually contains optical elements such as lenses or fiber optics that collect light signals that are reflected or transmitted to the surface of the organ. These light signals are refracted and focused by the optical system to eventually form an enlarged, clear image [8]. The use of endoscopes not only seeks clarity of images but also requires a high degree of real-time performance. During endoscopic surgery, due to insufficient or uneven lighting conditions and low resolution in the process of endoscopic image acquisition, the image details will be lost, resulting in medical personnel’s inadequate grasp of the detailed information in the human body, resulting in misjudgment of pathological information, increased inspection time and serious medical accidents. Although image detail enhancement techniques have been researched to some extent, traditional detail enhancement algorithms have high complexity and are consumed with high resources when implemented in hardware, as well as poor real-time performance. Therefore, endoscopic video image detail enhancement algorithms are treated as a hot research topic by intelligent medical systems [9–14]. 2 IET Circuits, Devices & Systems TABLE 1: Algorithm complexity and efficiency comparison. <u>Algorithm</u> <u>HE</u> <u>AHE</u> <u>Bilateral filters</u> <u>Retinex</u> <u>CLAHE</u> O (M × N × R <sup>2</sup> ), where R is the size of the filtering window Loss of edge information, difficulty in parameter selection, <u>etc.</u> Computational complexity Effectiveness O (M × N), where M is the image width and N is the image height Due to information loss caused by intensity saturation, etc. O (M × N × K), where K is the number of blocks Introducing block effects, loss of detail information, etc. Halo effects, color distortion, etc. O (M <sup>2</sup> × N <sup>2</sup> ) O (M × N × K) Effectively enhance detail information Currently, the traditional image detail enhancement algorithms mainly include histogram equalization (HE), adaptive HE (AHE), bilateral filtering algorithm, and Retinex algorithm. HE, which was mentioned in [15–17], although its algorithm is simple in principle and easy to implement in hardware, leads to over-enhancement of contrast in local areas, as well as sensitivity to noise and high computational complexity. AHE mentioned in [18, 19] is an algorithm in which the traditional HE has been improved, and although it is able to perform HE in local areas of the image, thus improving the detail information and contrast, it is exceptionally sensitive to noise, and it is very easy to amplify the noise information when the contrast is low, and at the same time, there are problems of edges and blocking artifacts. The bilateral filtering algorithm studied in [20], although it can effectively retain the edge information in order to eliminate the edge blurring problem, it has difficulty in selecting the two parameters, namely, the spatial kernel and the standard deviation of the gray scale kernel, and excessive smoothing will lead to loss of detail information. Although the Retinex algorithm is used in [21] to handle both global and local contrast simultaneously, its parameter setting is rather difficult and will introduce the problem of color distortion. Although the AHE algorithm [22] with limited contrast has a good effect on improving the detailed information, the traditional algorithm has a large number of problems, such as calculation process and artifacts, and its fixed contrast limit value does not improve the details significantly when processing images with different brightness information. In terms of hardware implementation, traditional algorithms have problems, such as high resource consumption and long computing time due to their complex computing process. The comparison of computational complexity and effectiveness of various image enhancement algorithms is shown in Table 1. Field programmable gate arrays (FPGAs) are widely used due to their parallel processing capabilities, low latency, and high customizability, making them ideal for real-time image processing tasks such as endoscopic video enhancement. In previous work, although there have been improvements in the hardware implementation of the CLAHE algorithm, it is based on a fixed algorithm model and fundamental performance, consuming at least 10K look-up tables (LUTs), while the consumption of flip–flops and block RAM reaches 13K and 56 [23], respectively. However, by optimizing the computation process, it is possible to meet the requirements for real-time image data processing in the hardware system, increase scene adaptability, and reduce the consumption of flip–flops and block RAM. This design is based on the AHE algorithm with limited contrast, which solves the problem of overexposure in the HE algorithm. Meanwhile, it optimizes the problems of the fixed number of image blocks and the contrast limit threshold of the traditional CLAHE algorithm, enabling the algorithm to be flexibly applied to different scenarios for enhancing the details of endoscopes. It has a faster processing speed and lower computational complexity compared with the methods based on deep learning. At the same time, a high-pipeline architecture is implemented for the traditional algorithm, making it more suitable for hardware implementation. Experimental results show that the improved algorithm can be implemented on a hardware system, and with a clock speed of 100 MHz, it can process image data with a resolution of 640 x 480 at a speed of up to 160 frames per second. 2. Introduction to Algorithms In image detail enhancement technology, the contrast-limiting AHE algorithm [24, 25] is improved based on the HE algorithm. The principle of HE is to stretch the gray scale histogram so that the gray scale distribution of the image tends to be uniform. The AHE algorithm for limiting contrast is based on the HE algorithm with the addition of image chunking, limit value selection, over-limit value assignment, and artifact elimination. The algorithm is designed to avoid noise over-amplification and enhance detailed information by adaptively limiting the sub-block contrast. The flowchart of the algorithm is shown in Figure 1. 1. Fixed chunking of the image is performed by dividing the image I with height Hand width W into 64 subchunks of the same size, each of which has a height of h ¼ H=8 and a width of w ¼ W=8. 2. The histogram of each small block is calculated by block: i ¼ imgðx; yÞ ð1Þ Numð Þ ¼i Numð Þ þi 1; ð2Þ where i stands for gray level and its value range is ½0; 255� :; imgðx; yÞ : stands for pixels with coordinate position ðx; yÞ <sup>:</sup> ; NumðiÞ <sup>:</sup> stands for the number of pixels with gray level i. IET Circuits, Devices & Systems 3 Input image Split image based on channel R,G,B Block processing and statistical sub-block histogram Num ( _i_ ) Calculate the limit threshold Num ( _i_ ) CLimit _i_ _i_ Output image Merge channels R,G,B Elimination artifact Subhistogram equalization Histogram interception and overlimit allocation Num ( _i_ ) totalExcess Num ( _i_ ) CLimit CLimit _i_ _L_ _i_ FIGURE 1: Algorithm flowchart. 3. To limit the contrast of the histogram, the specific steps are as follows: Set a fixed contrast limit CLimit, if the histogram amplitude (i.e., number of gray levels) is higher than CLimit, directly set its value to CLimit; otherwise, its value remains unchanged: Calculate the sum of the parts of the histogram that are higher than the contrast limit value totalExcess: ( Numð Þi ; Numð Þi ≤ CLimit Numð Þ ¼i : ð3Þ CLimit; Numð Þi >CLimit ( totalExcess; Numð Þi ≤ CLimit totalExcess þ ðNumð Þi - CLimitÞ; Numð Þi >CLimit: totalExcess ¼ ð4Þ Calculate the over-limit for the average L of the total pixel values: L ¼ <sup><u>totalExcess</u></sup> ; ð5Þ N where N represents the pixel gray level. The mean value L is assigned to all gray levels of each subblock to obtain a redistributed histogram, and then each subblock is histogram equalized. numð Þ ¼i numð Þ þi L; ð6Þ where numðiÞ <sup>:</sup> is the new statistic value of pixels with gray level i. The total number of pixels per block is: total ¼ h × w: ð7Þ 4. Use interpolation to eliminate artifacts of the image: When the image is processed into blocks, if the pixels in the sub-block are transformed only through the mapping function in the block, the result will appear as block artifacts. Therefore, interpolation processing is adopted, that is, the image is divided into four sub-blocks first, and the value of each pixel is carried out different interpolation operations according to its subblock position. As shown in Figure 2. In the picture, the pixel in the green area is directly transformed by its mapping function to get the corresponding value. The value of the pixel in the orange area needs to be transformed by two adjacent sub-block mapping functions, respectively, to obtain two mapping values, and then the two values are linearly interpolated. Calculate its cumulative distribution histogram: i numð Þ ¼i ∑ k¼0 <u>NumðkÞ</u> ð8Þ total 4 IET Circuits, Devices & Systems _b_ 0 _b_ 1 _m_ m n _n_ _b_ 0 _r_ _b_ _o_ _q_ _o_ _b_ 2 _p_ _b_ 3 _b_ 1 Target pixel FIGURE 2: Interpolation operation model. I2 ¼ w <sup><u>n</u></sup> w <sup><u>n</u></sup> <sup>× b0 þ</sup> <sup><u>m</u></sup> w ð9Þ <sup><u>m</u></sup> w <sup>× b1;</sup> In order to improve the control of detailed information in different situations, the number of image blocks is aggrandized to increase the contrast of detailed information in the face of high detail requirements. On the contrary, when the requirements for detail are relatively low, the number of blocks will be reduced, reducing the consumption of resources. It is the optimization of a fixed number of 8 × 8 chunks into an adaptive number of N × N chunks. In the setting of adaptive block parameters, the number of blocks is determined based on the size of the area of detail information to be enhanced. For example, if the pixel area requiring detail enhancement is X × Y, for the convenience of subsequent calculations in the experiment, we only consider the column pixel values of the area. The number of blocks is set to (M/X) × (M/X), where M is the number of column pixels in the original image. In the subsequent experimental verification phase, the effectiveness of the original algorithm’s number of blocks on enhancing image details can be verified first. Then, a slight increase in the number of blocks (e.g., increasing to 10 × 10) can be made to observe whether the detail effect of the image improves further. Finally, a larger increase in the number of blocks (e.g., doubling the original algorithm’s number of blocks) should be made to observe whether the significant increase in the number of blocks meets the requirements for detail enhancement and whether any distortion occurs in the image. The basic principle is shown in Figure 3. 3.2. Adaptive Threshold Selection. The traditional limited contrast HE algorithm limits the noise amplification of the image by limiting the brightness of the local histogram. When the local image is dark, the fixed contrast limit value will cause the local image to be too dark, thus losing the detailed information. Therefore, in the face of the dimmer local sub-blocks, the limit threshold should be reduced to minimize the loss of brightness information. This results in better overall image enhancement. In the design, identify the maximum value in the histogram and then set the contrast limit based on this maximum value. This approach allows for the enhancement of image details under different brightness conditions. Threequarters of the maximum histogram statistic based on the experimental contrast limit value CLimit works best, equation expressing the following: CLimit ¼ <sup><u>3</u></sup> f g; i ¼ 0; 1; ⋯; 255: ð11Þ 4 <sup>max</sup> <sup>numð Þi</sup> 4. Hardware System Implementation In terms of hardware selection, both FPGA and GPU have wide applications in image processing. FPGA is a reconfigurable hardware platform that excels in parallel computing and lowlatency applications. Compared to GPUs, FPGAs offer better parallel processing capabilities and are more advantageous in low-latency and high-throughput applications. Additionally, FPGAs provide higher customizability, making hardware structure optimization more convenient. Considering the above advantages, the hardware platform chosen for implementing the endoscopic detail enhancement algorithm in this where I2 is the pixel for linear interpolation, w represents the width of the sub-block, m and n, respectively represent the distance between the pixel in the orange region in the figure and the middle line of the two columns of sub-blocks, b0 and b1 respectively represent the mapping function of the corresponding sub-block in the figure. The values of the pixels in the blue area need to be transformed by the mapping functions of the four surrounding subblocks, respectively to obtain four mapping values, and then the four values are interpolated bilinearly. I4 ¼ w <sup><u>q</u></sup> w <sup><u>q</u></sup> <sup>×</sup> h <sup><u>p</u></sup> h <sup><u>p</u></sup> <sup>× b0 þ</sup> w <sup><u>q</u></sup> w <sup><u>q</u></sup> <sup>×</sup> h <sup><u>r</u></sup> h <sup><u>r</u></sup> <sup>× b1 þ</sup> w <sup><u>o</u></sup> w <sup><u>o</u></sup> <sup>×</sup> h <sup><u>p</u></sup> h <sup><u>p</u></sup> <sup>× b2 þ</sup> w <sup><u>o</u></sup> w <sup><u>o</u></sup> <sup>×</sup> h <sup><u>r</u></sup> h <sup><u>r</u></sup> <sup>× b3;</sup> ð10Þ where I4 is the pixel point that needs bilinear interpolation, h represents the height of the sub-block. o; p; q; r, respectively represent the position of the pixel point in the figure to each center line. b0; b1; b2; b3, respectively represent the mapping function of the four sub-blocks in the figure. 3. Algorithm Optimization In the traditional algorithm, because the parameters are fixed, it is difficult for the traditional limited contrast HE to meet the requirements when the details and contrast need to be enhanced to different degrees. 3.1. Adaptive Partitioning. In the face of the traditional algorithm for image segmentation processing, the image is fixed into 8 × 8 small blocks, which is difficult to meet the requirements when the detailed information needs to be further improved. For example, in endoscopic surgery, the doctor needs to obtain more details through the endoscope, because the human body tissue is small, if the number of segmentation is small, the obtained detailed enhanced information will be relatively less, resulting in the doctor’s grasp of the disease condition is reduced, more difficult to get accurate detection results. IET Circuits, Devices & Systems 5 10 16 10 16 8 Primitive parameter mode 8 _N_ Optimized parameter mode _N_ FIGURE 3: Image block mode. design is FPGA. The optimized image detail enhancement algorithm is designed by Verilog HDL language and implemented by FPGA platform. The acquired image with endoscope is input into FPGA to realize detail enhancement. The designed endoscope image detail enhancement module is divided into a parameter configuration module, an image block module, a histogram statistics module, a contrast limit and over-limit allocation module, HE module, and an artifact elimination module. The overall block diagram of the hardware system can be shown in Figure 4. For the contrast-limited AHE algorithm, after the RGB channel data is separated, the primary goal is to perform block-based processing on the image. Therefore, in the hardware system implementation, the first step is to design the number of blocks suitable for the current input image. Because the number of blocks will affect the effect of image detail enhancement, different blocks should be selected according to different situations. Therefore, in order to facilitate hardware design, the number of blocks can be parameterized, and the number of image blocks can be set to N × N. When the detail enhancement requirements are high, the parameter N value can be increased. Otherwise, the value of parameter N is reduced. At the same time, the boundary information of each block can be calculated by a parameter configuration module according to the N value. The principle of image block processing is to calculate the row information and column information of the input pixel, determine the specific position of the pixel in the image according to the configured sub-block boundary information, and store the pixel in the corresponding RAM. Its principle is shown in Figure 5. In order to reduce the complexity of hardware implementation, block processing and histogram statistics can be carried out simultaneously. After determining the location of the input pixel, the gray value of the input pixel is used as the address value of RAM. Since RAM cannot be read and written at the same time during hardware implementation, it is necessary to take out the histogram statistic value of the pixel address and add one, and then write the new histogram statistic value into the pixel address. Therefore, the input pixel value is stored in the register and used as the write address in the next clock cycle, and the write enable also lags behind the read enable one cycle to ensure that the correct histogram statistics can be performed. The data processing flow can be shown in Figure 6. The second step is mainly to achieve contrast limits. First, find the maximum value in the histogram statistics, and take three-quarters of the maximum value as the threshold to limit the contrast. Then, the address counter is used as the histogram to count the read address and write address of RAM. The count range of the address counter is 0 to the maximum gray level. Take out the data of the address according to the address, compare the number of pixels of the grayscale level with the size of the limit value, if the limit value is greater than the limit value, CLimit is written into the address, otherwise the value remains unchanged. At the same time, the part that is greater than the limit value (that is, the over-limit value) is counted into the register. When the extraction of the RAM value is completed, the statistics of total over-limits are realized. Finally, the total over-limit of statistics is averaged into the data of each address of the RAM, that is, the contrast limit is completed. The data processing flow is shown in Figure 7. The third step is to achieve HE. In the process of HE, the implementation of the division operation is essential, because the direct use of the division operation in FPGA consumes a lot of resources, so it is necessary to design a binary division unit. Its principle is to obtain quotient by subtracting the contents of the dividend register until the remaining numbers are less than the divisor. Its structure is shown in Figure 8, where words represent the numbers loaded into the division unit; GTE, Dividend_is_0, and Divisor_is_0 indicate whether the dividend 6 IET Circuits, Devices & Systems Endoscopic image acquisition FPGA RGB channel separation R [7:0] G [7:0] B [7:0] CLAHE data processing Parameter setting module Image block module Statistic histogram module Contrast limit module Excess value assignment module Histogram equalization module Linear interpolation module Bilinear interpolation module Details enhanced image FIGURE 4: Hardware overall block diagram. Col Row Pixel_in _N_ × _N_ _N_ × _N_ -1 _N_ × _N_ -2 1 0 Block memory generator FIGURE 5: Block processing principle. IET Circuits, Devices & Systems 7 RAM w_addr Pixel_input Reg r_addr Wen w_en r_en Ren w_en r_en w_data r_data 1 w_data r_data Data_out Reg FIGURE 6: Histogram statistics data processing flow. RAM totalExcess _d_ out-CLimit Yes _d_ out > CLimit No Addr_cnt Reg w_addr r_addr Wen w_en r_en Ren w_en r_en Yes w_data r_data _d_ <u>out</u> _d_ out = _d_ out FIGURE 7: Contrast limits the data processing flow. is greater than the divisor, whether the dividend is 0, and whether the divisor is 0, respectively. Quotient_Pre represents the quotient of the result of the last operation. After implementing the division unit, the cumulative statistics of pixel gray levels are carried out. The blocks after completing the contrast limit are histogram equalized, and the enhanced block image can be obtained. The fourth step is to eliminate the artifacts between blocks. After the HE after contrast restriction is completed, the image will show artifacts between blocks. The reason is that the statistical condition of pixels to realize the histogram mapping of sub-block images is divided into blocks, and the mapping function of each image is different, resulting in artifacts between blocks. The method of eliminating the artifacts between blocks is to perform different interpolation operations according to the different positions of the pixels. When the pixel is located at the four corners, no processing is done on the pixel, and the mapping value is directly output. When a pixel is located on four boundaries, linear interpolation is performed on that pixel. Take the pixel point located between the first row and the second row sub-blocks on the left boundary as an example. In the hardware implementation, it is difficult to directly determine the value of m. It can be obtained by using the difference between the row number, where the current pixel is located and the row number where the center of the first row sub-block is located; similarly, the value of n can be obtained by using the difference between the row number where the center of the second row sub-block is located and the row number where the current pixel is located. The data processing flow is shown in Figure 9. In Figure 9, d0 and d1 represent the mid-line of the subblock of the first row and the sub-block of the second row, row represents the number of rows, where the current pixel is located, and r0_b0 and r1_b0 represent the mapping function of the first sub-block of the first row and the mapping function of the first sub-block of the second row. Similarly, the data flow of bilinear interpolation can be obtained by taking the pixels in the blue area located in the four sub-blocks in the upper left corner as an example, as shown in Figure 10. In Figure 10, col and row, respectively represent the number of columns and rows in which the current pixel is located. r_d0, r_d1, c_d0, and c_d1 indicate the middle line of the first sub-block, the middle line of the second sub-block, the middle line of the first column, and the middle line of the second subblock, respectively. r0_b0, r0_b1, r1_b0, and r1_b1 represent the mapping functions of the first sub-block of the first row, the second sub-block of the first row, the first sub-block of the second row, and the second sub-block of the second row, respectively. 8 IET Circuits, Devices & Systems Dividend Subtractor Comparator <mark>Reg</mark> <mark>Reg</mark> Divisor Start Ready Error Clk Reset Parameter setting module r1_b0 <mark>Reg</mark> Control unit <u>Words</u> <u>Sub</u> <u>GTE</u> Dividend_is_0 <u>Divisor_is_0</u> <mark>Reg</mark> << Adder Remainder <mark>Reg</mark> Quotient <mark>Reg</mark> Quotient_Pre 1 FIGURE 8: Division unit. Linear interpolation d0 <mark>Reg</mark> Subtractor Division unit Multiplier Row _h_ r0_b0 <mark>Reg</mark> <mark>Reg</mark> <mark>Reg</mark> Adder Pixel_out <mark>Reg</mark> <mark>Reg</mark> <mark>Reg</mark> Multiplier Division unit <mark>Reg</mark> d1 Subtractor FIGURE 9: Linear interpolation data processing flow. Bilinear Interpolation r1_b1 <mark>Reg</mark> <mark>Reg</mark> _r_ Subtractor Division _r_ Multiplier unit Subtractor Subtractor r0_b0 _h_ <mark>Reg</mark> <mark>Reg</mark> Parameter setting module r_d0 Row r_d1 c_d0 Col c_d1 <mark>Reg</mark> <mark>Reg</mark> <mark>Reg</mark> _p_ _o_ Division unit Division unit Adder Pixel_out <mark>Reg</mark> _w_ <mark>Reg</mark> r1_b0 <mark>Reg</mark> Multiplier Multiplier Multiplier _w_ r1_b0 _q_ Division unit <mark>Reg</mark> Subtractor r0_b1 <mark>Reg</mark> FIGURE 10: Bilinear interpolation data processing flow. IET Circuits, Devices & Systems 9 ðaÞ ðbÞ ðcÞ ðdÞ FIGURE 11: Software blocks results. (a) Original image, (b) block 8 × 8, (c) block 10 × 10, and (d) block 16 × 16. ðaÞ ðbÞ ðcÞ ðdÞ FIGURE 12: Artifact cancelation effect. (a) Original image, (b) block 8 × 8, (c) block 10 × 10, and (d) block 16 × 16. 10 IET Circuits, Devices & Systems ðaÞ ðbÞ ðcÞ ðdÞ FIGURE 13: Comparison effect of different thresholds. (a) Original image, (b) CLimit = 1/5 max, (c) CLimit = 3/4 max, and (d) CLimit = 9/10 max. 5. Result The designed FPGA-based endoscopic image detail enhancement system is capable of real-time detail enhancement for video images, allowing the captured video to be better applied in endoscopy. Due to the characteristics of implementing the algorithm in hardware, the same pixel needs to be processed multiple times. Therefore, processed data cannot be output immediately after the first frame and requires one frame of delay. Additionally, the algorithm has a large computational load, and even after optimization, it still consumes nearly 26K of lookup tables. However, the delay time for one frame of data is in the millisecond range, which does not significantly impact the real-time performance of the entire system. After completing the optimization of the system algorithm, in order to verify the stability and detail enhancement effect of the designed system, the software implementation, software and hardware implementation comparison, and color image hardware implementation effect were recorded respectively. 5.1. Software Implementation Effect. Firstly, the limit threshold is fixed, and according to the different blocking conditions, the different effects applied to the general image, fogged image, and endoscope image detail enhancement before artifact elimination are recorded in the software. The comparison results are shown in Figure 11, where the upper image is from a general environment, the lower image is an endoscopic image, (a) is the original image, (b) is the result of block number 8 × 8, (c) is the result of block number 10 × 10, and (d) is the result of block number 16 × 16. The results indicate that as the number of blocks increases, the enhancement effect of detailed information in both general images and endoscopic images improves. Then, the different effects of detail enhancement in general image, fogged image, and endoscope image after artifact elimination were recorded. The comparison results are shown in Figure 12, where (a) is the original image, (b) is the result of block number 8 × 8, (c) is the result of block number 10 × 10, and (d) is the result of block number 16 × 16. It can be seen from the results that the system can eliminate artifacts well. Finally, record the detailed enhancement effects on general images, fogged images, and endoscopic images under the same number of blocks but different limit thresholds. The comparison results are shown in Figure 13, where (a) is the original image, (b) is the result of the threshold value being 1/5 of the maximum value, (c) is the result of the threshold value being 3/4 of the maximum value, and (d) is the result of the threshold value being 9/10 of the maximum value. It can be seen from the results that with the increase of the threshold value. The enhancement effect of image detail information is better, but the enhancement effect of image detail is not obvious when it exceeds 3/4 of the maximum value in histogram statistics. 5.2. Hardware Implementation Effect. When implementing the contrast-limited HE algorithm in hardware, this algorithm can be applied to general images, X-ray images, and endoscopic images. Below are the results of the software and hardware implementations for the three different types of images. Figure 14 shows the comparison effect, where (a) is the original image, (b) is the software implementation result, and (c) is the hardware implementation result. IET Circuits, Devices & Systems 11 ðaÞ ðbÞ ðcÞ FIGURE 14: Software and hardware to achieve the comparison effect. (a) Original image, (b) software effect, and (c) hardware effect. 5.3. Color Image Hardware Effect. Figure 15 shows the hardware implementation effects of contrast-limited AHE for color images on general images and endoscopic images, where (a) is the original image and (b) is the hardware implementation effect. 5.4. Performance Analysis. On the FPGA platform of Xilinx Company’s Artix-7 chip, the resource consumption of this system compared with other systems is shown in Table 2. The comparison of the processing speed of this algorithm on different systems is shown in Table 3. As shown in Table 2, the LUT, BRAM, and FF consumed by this design are 25, 33, and 6K, respectively, significantly lower than 44K LUT and 192 BRAM in literature [26] and 99K LUT and 9K FF in literature [28]. Although the LUT used in this design is higher than that in the literature [23] and [27], the use of BRAM and FF is significantly reduced. It can be seen from the data in the table that the system has greatly improved in terms of resource consumption. In terms of processing speed, as shown in Table 3, compared with the 33.1 ms processing speed in CPU and 19.6ms processing speed in OpenCV, the 6.3 ms processing speed in this design has been doubled and can be better applied to the actual application environment of real-time processing. However, there are still some improvements for the two hardware systems in literature [23] and literature [27]. From the above information, it can be known that during the hardware deployment process, block processing requires caching the histogram of each sub-block. The histogram of 64 subblocks (256 gray levels × 32 bits) requires approximately 8 KB of storage resources.. When the resolution is high (such as 1080p), the on-chip memory of the FPGA may be exhausted, and an external DDR needs to be relied on. When processing high-resolution images, the introduction of 1-frame data delay may have an impact on practical applications. In order to verify the processing effect of the hardware system, the stability and reliability of the system are verified by the endoscope image. Meanwhile, the structural similarity index (SSIM), peak signal-to-noise ratio (PSNR), and processing time of the system under different block numbers and thresholds were recorded, as shown in Table 4. Among them, the PSNR reflects the noise level of the image. In this study, the PSNR value decreases with the increase of the contrast limit value, indicating that the increase of CL amplifies the noise. However, this cost exchange for a significant improvement in detail, which can make microvessels clearer in medical endoscope image processing. Meanwhile, the PSNR value increases with the increase of the number of blocks, indicating that the introduction of noise can be suppressed with the increase of the number of blocks. The SSIM is used to evaluate the structural fidelity of the image. It can be known from the data analysis in Table 4 that the change of the number of blocks has little influence on the structural characteristics of the image. However, when the contrast limit value changes from 0.2 to 0.75, the SSIM value decreases significantly, indicating that the image structure changes obviously and can better ensure the identifiability of the lesion boundary. It is not difficult to see from the data in the table that as the number of blocks keeps increasing, the processing time of the image is significantly prolonged. Therefore, a clinically acceptable balance needs to be achieved when choosing the number of blocks. As shown in Figure 16, 12 IET Circuits, Devices & Systems ðaÞ ðbÞ FIGURE 15: Color diagram hardware effect. (a) Original image and (b) hardware effect. TABLE 2: FPGA resource consumption. <u>Resource</u> <u>LUT</u> <u>Block</u> <u>RAM</u> <u>FF</u> <u>DSP</u> Literature [26] 43,915 192 - Literature [23] 10,560 56 13,376 30 Literature [27] 10,815 88 12,121 Literature [28] 98,945 8 7840 <u>This article</u> <u>25,882</u> <u>33</u> <u>6274</u> <u>16</u> TABLE 3: Parameter comparison of different systems. <u>Different system</u> <u>Times (ms)</u> OpenCV (cortex-A9) 19.6 CPU 33.1 Literature [26] 6.6 Literature [23] 4.6 Literature [27] 3.1 <u>This article</u> <u>6.3</u> TABLE 4: PSNR and SSIM comparison. Number of image blocks (N), SSIM PSNR Time (ms) <u>contrast limitation</u> <u>(CL)</u> N = 8, CL = 0.2 max 0.72 17.57 N = 8, CL = 0.75 max 0.58 14.27 6.3 <u>N = 8, CL = 0.9 max</u> <u>0.52</u> <u>13.12</u> N = 10, CL = 0.2 max 0.71 17.59 N = 10, CL = 0.75 max 0.62 14.38 9.8 <u>N = 10, CL = 0.9 max</u> <u>0.56</u> <u>13.12</u> N = 16, CL = 0.2 max 0.72 18.39 N = 16, CL = 0.75 max 0.56 14.51 22.6 <u>N = 16, CL = 0.9 max</u> <u>0.49</u> <u>13.28</u> FIGURE 16: FPGA detail enhancement. the left side is the original endoscope image with low contrast of detailed information and a blurred image outline. On the right is the image after the hardware system detailed enhancement. The contrast of detailed information is enhanced, the image outline is clear, and the overall visual effect of the image is greatly improved. 6. Conclusion Compared to existing FPGA implementations, this work advances real-time endoscopic image enhancement by (1) introducing adaptive block partitioning to replace fixed-size blocks, (2) dynamically adjusting contrast thresholds based on local histogram statistics, and (3) reducing resources through an optimized pipeline. These improvements address key limitations in [23] (fixed blocks) and [27] (high BRAM usage). The FPGA implementation of video image detail enhancement is completed for the endoscope image. The design system optimizes the traditional HE algorithm with limited contrast and implements the improved algorithm on the hardware to obtain better detail enhancement effect of the IET Circuits, Devices & Systems 13 endoscope image. The system can perform real-time detail enhancement at 160 frames per second for endoscopic images with an input resolution of 640 x 480 at a clock frequency of 100 MHz, achieving the expected effect. At the same time, this system can be applied to various medical imaging techniques, such as X-ray images, ultrasound images, and magnetic resonance imaging (MRI), providing clinicians with medical images that have more pronounced detailed information for accurate medical diagnosis. However, there are still some challenges in the FPGA implementation. When dealing with highresolution image processing, it may lead to the exhaustion of hardware storage resources and the need to reference external storage resources, thereby introducing new delays. Moreover, there is a data delay of one frame in this design. In scenarios with a high requirement for the number of blocks, due to the long processing time of one frame, it will lead to an increase in data delay and affect the subsequent use of images. So in the future, research and optimization will be conducted on parallel processing rates and key detail information, with the aim of further reducing resource consumption, enhancing the effect, and accelerating processing speed. Data Availability Statement All data included in this study are available upon request by contact with the corresponding author. Conflicts of Interest The authors declare no conflicts of interest. Funding This work was partly supported by the Science and Technology Research Program of Chongqing Municipal Education Commission under Grant KJQN202300637. Acknowledgments This work was partly supported by the Science and Technology Research Program of Chongqing Municipal Education Commission under Grant KJQN202300637. References [1] S. Yang, Y. Tian, M. Zheng, Y. Du, H. Chen, and F. Song, “A Review of Image Enhancement Technology Research,” in 2021 3rd International Conference on Machine Learning, Big Data and Business Intelligence (MLBDBI), (China: IEEE, 2021), 715–720. [2] S. K. Meena, A. Potnis, M. Mishra, P. Dwivedy, and S. Soofi, “Review and Application of Different Contrast Enhancement Technique on Various Images,” in 2017 1st International Conference on Electronics, Materials Engineering and NanoTechnology (IEMENTech), (Kolkata, India: IEEE, 2017), 1–6. [3] M. Alavi and M. Kargari, “A New Contrast Enhancement Method for Color Dark and Low-Light Images,” in 2022 9th Iranian Joint Congress on Fuzzy and Intelligent Systems (CFIS), (Bam, Iran: IEEE, 2022), 1–7. [4] C. Ma, C. Xu, P. Zhou, and Y. Zhang, “Low-Light Aerial Image Enhancement Algorithm Based on Retinex Theory,” in 2023 International Conference on Image Processing, Computer Vision and Machine Learning (ICICML), (Chengdu, China: IEEE, 2023), 138–142. [5] S. Jin, P. Qu, Y. Zheng, W. Zhao, and W. Zhang, “Color Correction and Local Contrast Enhancement for Underwater Image Enhancement,” IEEE Access 10 (2022): 119193–119205. [6] L. Zhao, X. Gong, K. Liu, J. Wang, B. Zhao, and Y. Liu, “Color Channel Fusion Network For Low-Light Image Enhancement,” in 2021 IEEE International Conference on Image Processing (ICIP), (Anchorage, AK, USA: IEEE, 2021), 1654– 1658. [7] A. Kumari, N. Jain, and V. Kumar, “Enhancement of Liver Ultrasound Images by Guided Image Filtering Technique,” in 2000 International Conference on Signal and Information Processing (IConSIP), (Pune, India: IEEE, 2022), 1–5. [8] Z. Fu, Z. Jin, C. Zhang, et al., “The Future of Endoscopic Navigation: A Review of Advanced Endoscopic Vision Technology,” IEEE Access 9 (2021): 41144–41167. [9] H. Li, W. An, Z. Zheng, L. Huang, L. Liu, and Z. Z. Li, “Development of an Electronic Target-Type Optical Performance Calibration Device for Medical Rigid Endoscopes,” in 2024 IEEE International Conference on Manipulation, Manufacturing and Measurement on the Nanoscale (3MNANO), (Zhongshan, China: IEEE, 2024), 649–652. [10] Y. Li, J. Fan, D. Ai, H. Song, Y. Wang, and J. Yang, “A General Endoscopic Image Enhancement Method Based on PreTrained Generative Adversarial Networks,” in 2020 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), (Seoul, Korea (South): IEEE, 2020), 2403–2408. [11] B. Sdiri, M. Kaaniche, F. A. Cheikh, A. Beghdadi, and O. J. Elle, “Efficient Enhancement of Stereo Endoscopic Images Based on Joint Wavelet Decomposition and Binocular Combination,” IEEE Transactions on Medical Imaging 38, no. 1 (2019): 33–45. [12] M. Long, Z. Li, X. Xie, G. Li, and Z. Wang, “Adaptive Image Enhancement Based on Guide Image and Fraction-Power Transformation for Wireless Capsule Endoscopy,” IEEE Transactions on Biomedical Circuits and Systems 12, no. 5 (2018): 993–1003. [13] M. Long, Z. Lan, X. Xie, G. Li, and Z. Wang, “Image Enhancement Method Based on Adaptive Fraction Gamma Transformation and Color Restoration for Wireless Capsule Endoscopy,” in 2018 IEEE Biomedical Circuits and Systems Conference (BioCAS), (Cleveland, OH, USA: IEEE, 2018), 1–4. [14] S. Zou, M. Long, X. Wang, X. Xie, G. Li, and Z. Wang, “A CNN-Based Blind Denoising Method for Endoscopic Images,” in 2019 IEEE Biomedical Circuits and Systems Conference (BioCAS), (Nara, Japan: IEEE, 2019), 1–4. [15] D. Zhang, “Research on Road Image Enhancement Based on Histogram Equalization,” in 2023 IEEE 2nd International Conference on Electrical Engineering, Big Data and Algorithms (EEBDA), (Changchun, China: IEEE, 2023), 178–183. [16] S. Singh, M. Sahil, B. Kumar, and H. Singh, “Performance Evaluation of Various Histogram Equalization Techniques on Thermal Images,” in 2023 IEEE International Conference on Computer Vision and Machine Intelligence (CVMI), (Gwalior, India: IEEE, 2023), 1–6. [17] M. F. Fadillah, R. R. Nurmalasari, L. Kamelia, and Mursidin, “The Combination of Contrast Stretching and Histogram Equalization Methods to Optimizing Radiology Image Quality,” in 2023 9th International Conference on Wireless and Telematics (ICWT), (Solo, Indonesia: IEEE, 2023), 1–5. [18] V. Dubey and R. Katarya, “Adaptive Histogram Equalization based Approach for SAR Image Enhancement: A Comparative 14 IET Circuits, Devices & Systems Analysis,” in 2021 5th International Conference on Intelligent Computing and Control Systems (ICICCS), (Madurai, India: IEEE, 2021), 878–883. [19] Q. Lu, X. Liao, and Y. Huang, “Adaptive Local Repair Based on Histogram Equalization Image Enhancement Algorithm,” in 2024 2nd International Conference on Algorithm, Image Processing and Machine Vision (AIPMV), (Zhenjiang, China: IEEE, 2024), 121–126. [20] H. Zhang, “An Efficient High-definition Real-Time Hardware Design for Bilateral Filtering,” in 2023 6th International Conference on Electronics Technology (ICET), (Chengdu, China: IEEE, 2023), 960–964. [21] Y. Gao, C. Su, and Z. Xu, “Color Image Enhancement Algorithm Based on Improved Retinex Algorithm,” in 2022 Asia Conference on Algorithms, Computing and Machine Learning (CACML), (Hangzhou, China: IEEE, 2022), 234–238. [22] H. Lee, H. Choo, D. T. Le, and J. Bum, “Chest Radiographs Enhancement With Contrast Limited Adaptive Histogram,” in 2023 17th International Conference on Ubiquitous Information Management and Communication (IMCOM), (Seoul, Korea: IEEE, 2023), 1–2. [23] K. Honda, K. Wei, M. Arai, and H. Amano, “CLAHE Implementation on a Low-End FPGA board by High-Level Synthesis,” in 2020 Eighth International Symposium on Computing and Networking Workshops (CANDARW), (Naha, Japan: IEEE, 2020), 282–285. [24] Z. Yuan, J. Zeng, Z. Wei, et al., “CLAHE-Based Low-Light Image Enhancement for Robust Object Detection in Overhead Power Transmission System,” IEEE Transactions on Power Delivery 38, no. 3 (2023): 2240–2243. [25] I. G. N. A. Pawana, I. M. O. Widyantara, M. Sudarma, L. Linawati, and N. Wirastuti, “Image Enhancement Using CLAHE and Noise Removal for Shoreline Detection Framework,” in 3rd International Conference on Smart Cities, Automation & Intelligent Computing Systems (ICON-SONICS), (Bali, Indonesia: IEEE, 2023), 183–188. [26] K. Kokufuta and T. Maruyama, “Real-Time Processing of Contrast Limited Adaptive Histogram Equalization on FPGA,” in 2010 International Conference on Field Programmable Logic and Applications, (Milan, Italy: IEEE, 2010), 155– 158. [27] C. Zhang, Z. Zhang, J. Liu, Y. Gao, L. Huang, and Y. Fan, “High Throughput and Low Latency Hardware of Contrast Limited Adaptive Histogram Equalization Algorithm,” in 2022 IEEE 16th International Conference on Solid-State & Integrated Circuit Technology (ICSICT), (Nangjing, China: IEEE, 2022), 1–3. [28] D. Kim, J. Hyun, and B. Moon, “Memory-Efficient Architecture for Contrast Enhancement and Integral Image Computation,” in 2020 International Conference on Electronics, Information, and Communication (ICEIC), (Barcelona, Spain: IEEE, 2020), 1–4.

섹션 본문

섹션 본문이 없습니다.

참고문헌 28건

  1. Real-Time Processing of Contrast Limited Adaptive Histogram Equalization on FPGA 2010 10.1109/fpl.2010.37
  2. Review and application of different contrast enhancement technique on various images 2017 1st International Conference on Electronics, Materials Engineering and Nano-Technology (IEMENTech) · 2017 10.1109/iementech.2017.8076993
  3. Efficient Enhancement of Stereo Endoscopic Images Based on Joint Wavelet Decomposition and Binocular Combination IEEE Transactions on Medical Imaging · Institute of Electrical and Electronics Engineers · 2018 10.1109/tmi.2018.2853808
  4. Adaptive Image Enhancement Based on Guide Image and Fraction-Power Transformation for Wireless Capsule Endoscopy IEEE Transactions on Biomedical Circuits and Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tbcas.2018.2869530
  5. Image Enhancement Method Based on Adaptive Fraction Gamma Transformation and Color Restoration for Wireless Capsule Endoscopy 2022 IEEE Biomedical Circuits and Systems Conference (BioCAS) · 2018 10.1109/biocas.2018.8584793
  6. A CNN-Based Blind Denoising Method for Endoscopic Images 2022 IEEE Biomedical Circuits and Systems Conference (BioCAS) · 2019 10.1109/biocas.2019.8918994
  7. Memory-Efficient Architecture for Contrast Enhancement and Integral Image Computation 2020 International Conference on Electronics, Information, and Communication (ICEIC) · 2020 10.1109/iceic49074.2020.9051296
  8. A General Endoscopic Image Enhancement Method Based on Pre-trained Generative Adversarial Networks 2021 IEEE International Conference on Bioinformatics and Biomedicine (BIBM) · 2020 10.1109/bibm49941.2020.9313443
  9. CLAHE implementation on a low-end FPGA board by high-level synthesis 2020 10.1109/candarw51189.2020.00061
  10. The Future of Endoscopic Navigation: A Review of Advanced Endoscopic Vision Technology IEEE Access · Institute of Electrical and Electronics Engineers · 2021 10.1109/access.2021.3065104
  11. Adaptive Histogram Equalization based Approach for SAR Image Enhancement: A Comparative analysis 2022 6th International Conference on Intelligent Computing and Control Systems (ICICCS) · 2021 10.1109/iciccs51141.2021.9432287
  12. Color Channel Fusion Network For Low-Light Image Enhancement 2022 IEEE International Conference on Image Processing (ICIP) · 2021 10.1109/icip42928.2021.9506305
  13. A new contrast enhancement method for Color dark and low-light images 2022 10.1109/cfis54774.2022.9756426
  14. A Review of Image Enhancement Technology Research 2021 3rd International Conference on Machine Learning, Big Data and Business Intelligence (MLBDBI) · 2021 10.1109/mlbdbi54094.2021.00141
  15. Color image enhancement algorithm based on improved Retinex algorithm 2022 Asia Conference on Algorithms, Computing and Machine Learning (CACML) · 2022 10.1109/cacml55074.2022.00046
  16. High Throughput and Low Latency Hardware of Contrast Limited Adaptive Histogram Equalization Algorithm 2022 IEEE 16th International Conference on Solid-State &amp; Integrated Circuit Technology (ICSICT) · 2022 10.1109/icsict55466.2022.9963186
  17. Color Correction and Local Contrast Enhancement for Underwater Image Enhancement IEEE Access · Institute of Electrical and Electronics Engineers · 2022 10.1109/access.2022.3221407
  18. Enhancement of Liver Ultrasound Images by Guided Image Filtering Technique 2022 10.1109/iconsip49665.2022.10007499
  19. Chest Radiographs Enhancement with Contrast Limited Adaptive Histogram 2023 17th International Conference on Ubiquitous Information Management and Communication (IMCOM) · 2023 10.1109/imcom56909.2023.10035649
  20. Research on road image enhancement based on histogram equalization 2023 10.1109/eebda56825.2023.10090505
  21. CLAHE-Based Low-Light Image Enhancement for Robust Object Detection in Overhead Power Transmission System IEEE Transactions on Power Delivery · Institute of Electrical and Electronics Engineers · 2023 10.1109/tpwrd.2023.3269206
  22. An Efficient High-definition Real-Time Hardware Design for Bilateral Filtering 2023 10.1109/icet58434.2023.10211965
  23. The Combination of Contrast Stretching and Histogram Equalization Methods to Optimizing Radiology Image Quality 2023 10.1109/icwt58823.2023.10335190
  24. Low-Light Aerial Image Enhancement Algorithm Based on Retinex Theory 2022 International Conference on Image Processing, Computer Vision and Machine Learning (ICICML) · 2023 10.1109/icicml60161.2023.10424790
  25. Image Enhancement using CLAHE and Noise Removal for Shoreline Detection Framework 2023 10.1109/icon-sonics59898.2023.10435197
  26. Performance Evaluation of Various Histogram Equalization Techniques on Thermal Images 2023 10.1109/cvmi59935.2023.10464646
  27. Adaptive Local Repair Based on Histogram Equalization Image Enhancement Algorithm 2024 10.1109/aipmv62663.2024.10692203
  28. Development of an Electronic Target-Type Optical Performance Calibration Device for Medical Rigid Endoscopes 2024 10.1109/3m-nano61605.2024.10769708