METHOD FOR X-RAY DENTAL IMAGE ENHANCEMENT

Information

  • Patent Application
  • 20240273694
  • Publication Number
    20240273694
  • Date Filed
    April 18, 2024
    7 months ago
  • Date Published
    August 15, 2024
    3 months ago
Abstract
Various examples are directed to apparatus and methods for enhancing an X-ray medical image. In one example, a method for X-ray dental images enhancement is provided. The method includes receiving an input image and applying the noise reduction trough Recursive Locally-Adaptive Wiener Filtration (RLA-WF) based on the sliding window, which is calculated following a recursive two-dimensional scheme; contrast enhancement to the filtered image, including using recursive Sliding Window Contrast Limited Adaptive Histogram Equalization (SW-CLAHE) utilizing a Truncation Threshold Surface (TTS) for calculation of the truncation threshold for the local histogram in each sliding window. The method also includes applying sharpness enhancement to the input image, including using Fast Recursive Adaptive Unsharp Masking (FRA-UM) utilizing a sliding window with two or one-dimensional recursion, to obtain a sharpened image. The contrast enhanced image is linearly mixed with the sharpened image using a control coefficient to obtain an output image, and the output image is provided to a display of a user.
Description
TECHNICAL FIELD

Embodiments described herein generally relate to X-ray medical image enhancement and, for example and without limitation, to algorithms, apparatus and systems for X-ray dental imaging enhancement.


BACKGROUND

X-ray medical images enable a practitioner to diagnose health problems and develop an appropriate treatment plan to address the diagnosed problems. Medical imaging covers a wide variety of applications. For example, in dental applications enhanced clarity in X-ray dental imaging can provide the practitioner with the best images available to perform an accurate diagnosis. Current methods for enhancing X-ray dental images may excessively amplify noise and result in image distortion. An improved process for X-ray dental imaging enhancement is needed.


SUMMARY

Disclosed herein, among other things, is method for enhancing X-ray dental images. The method includes receiving an input image and applying contrast enhancement to the input image, including using Recursive Locally-Adaptive Wiener Filtration (RLA-WF), Recursive Sliding Window Contrast Limited Histogram Equalization (RSW-CLAHE) utilizing a Truncation Threshold Surface (TTS), and a sliding window to obtain an enhanced input image. The method also includes applying sharpness enhancement to the input image, including using Fast Recursive Adaptive Unsharp Masking (FRA-UM) utilizing the sliding window, to obtain a sharpened image. The enhanced input image is linearly mixed with the sharpened input image using a control coefficient to obtain an output image, and the output image is provided to a display of a user, in various embodiments.


This Summary is an overview of some of the approaches of the present application and not intended to be an exclusive or exhaustive treatment of the present subject matter. Further details about the present subject matter are found in the detailed description and appended claims. The scope of the present invention is defined by the appended claims and their legal equivalents.





BRIEF DESCRIPTION OF THE DRAWINGS

The drawings illustrate generally, by way of example, various embodiments discussed in the present document.



FIG. 1 is a block diagram illustrating performance of an X-ray dental image enhancement method, according to an embodiment of the present subject matter.



FIG. 2 is a block diagram illustrating an RLA-WF algorithm, according to an embodiment of the present subject matter.



FIG. 3 is an illustration of a sliding window in a noisy input image, according to an embodiment of the present subject matter.



FIG. 4 is an illustration of a spatial arrangement of pixels used for a recursive calculation in a sliding window, according to an embodiment of the present subject matter.



FIG. 5 is an illustration of an algorithm for calculation of Truncation Threshold Surface (TTS), according to an embodiment of the present subject matter.



FIG. 6 is an illustration of converting a pixel from an input image to a pixel of an output image by SW-CLAHE, according to an embodiment of the present subject matter.



FIG. 7 is an illustration of a calculation of the TTS by bilinear interpolation, according to an embodiment of the present subject matter.



FIG. 8 is a block diagram illustrating an RSW-CLAHE algorithm, according to an embodiment of the present subject matter.



FIG. 9 is an illustration of two consecutive positions of a sliding window, according to an embodiment of the present subject matter.



FIG. 10 is a graphical representation of RSW-CLAHE for a current window, according to an embodiment of the present subject matter.



FIG. 11 is an illustration of setting the value of a threshold for a local histogram, according to an embodiment of the present subject matter.



FIG. 12 is an illustration of a recursive calculation of a histogram, according to an embodiment of the present subject matter.



FIG. 13 is an illustration of local histograms for execution of Histogram Equalization, according to an embodiment of the present subject matter.



FIG. 14 is an illustration of histograms for non-iterative SW-CLAHE and iterative SW-CLAHE, according to an embodiment of the present subject matter.



FIG. 15 is a block diagram of an FRA-UM algorithm, according to an embodiment of the present subject matter.



FIG. 16 is an illustration of a kernel of an unsharp masking 2D digital filter, according to an embodiment of the present subject matter.



FIG. 17 is an illustration of an example kernel of unsharp masking 2D digital filter, according to an embodiment of the present subject matter.



FIG. 18 is an illustration of a spatial arrangement of pixels in a sliding line used for a recursive calculation in horizontal direction, according to an embodiment of the present subject matter.



FIG. 19 is an illustration of a spatial arrangement of pixels in a sliding column used for the recursive calculation in vertical direction, according to an embodiment of the present subject matter.



FIGS. 20A-20D are illustrations of an example for X-ray dental image enhancement by the FRA-UM, according to an embodiment of the present subject matter. FIG. 20A shows an input X-ray dental image. FIG. 20B shows an enhanced X-ray dental image of FIG. 20A. FIG. 20C shows another input X-ray dental image. FIG. 20D shows an enhanced X-ray dental image of FIG. 20C.



FIGS. 21A-21C are illustrations of an example of an input X-ray dental image (FIG. 21A), an enhanced X-ray dental image by Contrast Limited Histogram Equalization (CLAHE) (FIG. 21B), and a non-iterative RSW-CLAHE+FRA-UM (FIG. 21C), according to an embodiment of the present subject matter.



FIGS. 22A-22C are illustrations of another example of an input X-ray dental image (FIG. 22A), an enhanced X-ray dental image by CLAHE (FIG. 22B), and the non-iterative RSW-CLAHE+FRA-UM (FIG. 22C), according to an embodiment of the present subject matter.



FIGS. 23A-23E are illustrations of an example of enhancement of a X-ray dental panoramic image. FIG. 23A shows an input. FIG. 23B shows an enhanced output image by CLAHE. FIG. 23C shows an enhanced output image by RSW-CLAHE. FIG. 23D shows another enhanced output image by RSW-CLAHE, using different parameter values. FIG. 23E shows an enhanced image by iterative RSW-CLAHE.



FIGS. 24A-24E are illustrations of an example of enhancement of a X-ray dental periapical image. FIG. 24A shows an input. FIG. 24B shows an enhanced output image by CLAHE. FIG. 24C shows an enhanced output image by RSW-CLAHE. FIG. 24D shows another enhanced output image by RSW-CLAHE, using different parameter values. FIG. 24E shows an enhanced image by iterative RSW-CLAHE.



FIG. 25 is an illustration of a mean value of MSDE for contrast evaluation through the non-iterative RSW-CLAHE according to an embodiment of the present subject matter, CLAHE, and Global Histogram Equalization (GHE).



FIG. 26 is an illustration of a mean value of SI for sharpness evaluation through the non-iterative RSW-CLAHE according to an embodiment of the present subject matter, CLAHE, and GHE.



FIG. 27 is an illustration of a mean value of PSNR for noise evaluation through the non-iterative RSW-CLAHE according to an embodiment of the present subject matter, CLAHE, and GHE.



FIG. 28 is a block diagram illustrating a machine in a form of a computer system, according to an embodiment of the present subject matter.





DETAILED DESCRIPTION

The following detailed description of the present subject matter refers to subject matter in the accompanying drawings which show, by way of illustration, specific aspects and embodiments in which the present subject matter may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the present subject matter. References to “an”, “one”, or “various” embodiments in this disclosure are not necessarily to the same embodiment, and such references contemplate more than one embodiment. The following detailed description is demonstrative and not to be taken in a limiting sense. The scope of the present subject matter is defined by the appended claims, along with the full scope of legal equivalents to which such claims are entitled.


An example of a method and apparatus for enhancement the quality of medical images [1] uses unsharp masking filter and piecewise enhancement function to obtain the sharpened image. After that the image is rescaled, to eliminate the outliers and the contrast is enhanced through the known method of Contrast Limited Adaptive Histogram Equalization (CLAHE) [8]. The application of the method is illustrated through an X-ray chest image. In this example is not given quantitative evaluation of the improved medical images, compared to other similar methods.


An example of a method for enhancing radiographic images [2] includes suppressing of the structural noise, selecting a Region Of Interest (ROI) and increasing its contrast by applying CLAHE and interpolation of the enhanced image for its visualization, recording, or transmission. The results of the processing of X-ray images are presented, which include: increasing the contrast of the whole image, emphasizing only the ribs, contrasting only the selected ROI, and others. The characteristics of this class of images differ significantly from those of the X-ray dental images, which is why different approaches are used for their processing.


The basic methods for quality improvement of X-ray dental images could be classified as follows [3,4]: based on processing in the spatial domain, in the frequency domain, and through nonlinear (morphological) processing. Here are analyzed only methods for image processing in the spatial (pixel) domain, because the processing in the frequency domain requires the use of: direct and inverse 2D Fast Fourier Transform (2D-FFT), 2D Discrete Wavelet Transform (2D-DWT) or 2D Morphological Filtration (2D-MF) (the last one needs multiple recursive processing). Compared to the methods in the first group, the second group of methods require much higher computational resource, which limits the areas in which they can be applied.


The main methods in the first group (processing in the image spatial domain) could be generalized as follows:


1. Histogram Equalization (HE) [5] is a computer image processing technique used to improve contrast in images. It accomplishes this by effectively spreading out the most frequent intensity values, i.e., stretching out the intensity range of the image. This method usually increases the global contrast of the image when its usable data is represented by close contrast values. This allows for areas of lower local contrast to gain a higher contrast. Global Histogram Equalization (GHE) works well when the distribution of pixel values is similar throughout the image. However, when the image contains regions that are significantly lighter or darker than most of the image, the contrast in those regions will not be sufficiently enhanced.


2. Adaptive Histogram Equalization (AHE) [6] differs from the ordinary histogram equalization in respect that the adaptive method computes several histograms, each corresponding to a distinct section of the image, and uses them to redistribute the gray level of the image. AHE is therefore suitable for improving the local contrast and enhancing the definitions of edges in an image region. Sliding Window Adaptive Histogram Equalization (SWAHE) [7] improves on Histogram Equalization by transforming each pixel with a transformation function derived from a neighborhood region. However, SWAHE has the shortcoming of excessively amplifying noise, which may result in image distortion. SWAHE does not use a limitation of the maximum value of the local histogram in the sliding window. Thus, black pixels get even darker and white pixels get even whiter, and information can be lost.


3. Contrast Limited Adaptive Histogram Equalization (CLAHE) [8-11]—the contrast amplification in the vicinity of a given pixel value is given by the slope of the transformation function. This value is proportional to the slope of the neighborhood Cumulative Distributed Function (CDF) and therefore to the value of the histogram at that pixel value. CLAHE limits the amplification by clipping the histogram at a predefined value before computing the CDF. The clipping limit (CL) defines the cutting-off level of the histogram and is a percent from its maximum. The coefficient CL is a real scalar in the range of [0,1]. The Default CL starts from 0.01 to 0.2.


However, in block based CLAHE, the contrast in the square tiles (contextual regions) will be different. The borders will contain errors because of the different contrasts in contextual regions. Bilinear Interpolation (BLI) is applied to resolve for this to the borders between the pixels so that the borders between the regions are not visible.


A major problem with using the CLAHE algorithm is the way to determine the optimal values of the CL parameters for each contextual region in the image. In [12] is proposed a learning-based parameters selection method for the CLAHE. The proposed supervised method was built and evaluated using contrast distortions from known image quality assessment datasets, containing over 6200 images with a large range of contrast and intensity variations. The disadvantage of this method is its significant computational complexity and the need to use an image database.


In [13] is applied Adaptive Enhancement of X-ray Images for contrast enhancement by CLAHE and morphological top and bottom hat operation for detail preservation capabilities. The disadvantage of this method is its high computational complexity.


In [14], a comparison of CLAHE with clip limit of 0.01 with the methods for histogram equalization, log transform and gamma correction for multiple gamma values with respect to the quality of X-ray dental periapical images, assessed by entropy criterion, was made. The results show that CLAHE maximizes the entropy in comparison with those algorithms. In the conclusion is claimed that the best enhancement is achieved by using the CLAHE method.


The clip limit CL will be determined at the point with maximum curvature on the entropy curve of the image [15]. However, to define the maximum curvature point, significant computational resource is needed.


4. One way to avoid the requirement of interpolation needed for the block based CLAHE is to use a sliding window approach instead [16]. In each step a histogram is created from a window around the pixel to be equalized. Only the center pixel is equalized and when sliding one pixel, the histogram can be incrementally updated, i.e. only the pixels in the sliding direction has to be added to the histogram and pixels behind removed. This approach makes it possible to skip the interpolation since windows are overlapping. Using a sliding window, the number of calculations for each window are fewer than for each tile in the block based version of CLAHE.


The disadvantage of this method is that a large number of arithmetic operations are required to calculate the parameter CL as a percentage of the maximum of the local histogram of the pixels in the sliding window for each of its positions in the image.


5. Specific for the X-ray dental image is that due to the process of its creation, the transitions are fuzzy. To improve the image quality are used algorithms, based on the linear Unsharp Masking (UM) technique [17, 18]. However, the transition enhancement through UM can result in the increasing of the noise level in the image. To avoid this, is used the algorithm Adaptive UM (AUM), used to detect the pixels placed on the transitions. In accordance with the method, for each of these pixels is executed transition enhancement, while on the remaining pixels is applied noise filtration.


One problem of the algorithm AUM is the growth of its computational complexity together with the size of the averaging sliding window used in the equation for sharpness enhancement. The size of the window is defined so that to frame the most frequent noise components which should be filtered.


6. The image contrast enhancement results in noise increasing in the processed X-ray dental images. Efficient methods for medical images denoising are known, based on the recurrent approach called Total Variation (TV) regularization, which needs large number of iterations [19].


One known method for noise reduction is the 2D Adaptive Wiener filter (2D-AWF) [20]. This filter is optimum, because in result is minimized the Mean Square Error (MSE), due to Gaussian white noise. The locally-adaptive 2D Wiener Filter (2D-WF) is more efficient than 2D-AWF [20]. One problem with the locally-adaptive Wiener filtration is the choice of the adaptation algorithm used to separate the pixels placed on the transitions from these in the homogenous areas of the image. The created filtration method is a combination of wavelet Wiener filter and adaptive weighted average spatial Wiener filter, and has high computational complexity.


In [21] a new method for optimal enhancement of the contrast of a medical image is proposed. The main idea is to improve the gamma correction to enhance the image information and the details based on the improved World Cup optimization (WCO) algorithm. This algorithm is used for optimal selection of the gamma value based on entropy criterion and edge content. The method needs at least 100 iterations which increases the execution time. The region of interest (ROI) in the processed images is manually classified by a dermatologist. No information is provided about dental images.


The present subject matter provides an improved process for X-ray dental imaging enhancement. In various embodiments, the process includes receiving an input image and applying contrast enhancement to the input image, including Recursive Locally-Adaptive Wiener Filtration (RLA-WF) of the noise and Recursive Sliding Window Contrast Limited Histogram Equalization (RSW-CLAHE) utilizing a Truncation Threshold Surface (TTS). The method also comprises applying sharpness enhancement to the input X-ray dental image, including using Fast Recursive Adaptive Unsharp Masking (FRA-UM) utilizing the sliding window, to obtain a sharpened image. The enhanced input image is linearly mixed with the sharpened input image using a control coefficient to obtain an output image, and the output image is provided to a display of a user, in various embodiments.


The present subject matter provides new method for X-ray dental image enhancement based on a sliding window moving one pixel at a time. This allows for the image enhancement to be adjusted more accurately based on the individual, smaller region characteristics.



FIG. 1 is a block diagram illustrating the performance of an X-ray dental image enhancement method, according to an embodiment of the present subject matter. In block 1 an X-ray dental image is obtained. According to the block diagram, the proposed method comprises: Recursive Locally-Adaptive Wiener Filtration (RLA-WF) for image de-noising (in block 2); Recursive Sliding Window Contrast Limited Adaptive Histogram Equalization (RSW-CLAHE) (in block 4) with individual threshold for each window position, based on Truncation Threshold Surface (TTS) (in block 3); Fast Recursive Adaptive Unsharp Masking (FRA-UM) (block 5) for edges enhancement and Linear Mixing (LM) (in block 6) for receiving of final enhanced image (in block 8)—combination between sharpened and contrasted image with reduced noise. In block 7, the parameters on which the operation of blocks 2, 4, 5 and 6 depends are controlled. The disclosures of each of these algorithms, and the connections between them are given below.


This Recursive Locally-Adaptive Wiener noise filtration (RLA-WF) algorithm is performed in block 2 of the scheme from FIG. 1. The filtration of the input image can be necessary because in the process of its formation on it is added a random noise generated by the X-rays conversion into electrical signals. In this case, the input noisy image is the matrix [X] of size M×N with pixels x(i,j) for i=1, 2, . . . , M and j=1, 2, . . . , N.



FIG. 2 is a block diagram illustrating the RLA-WF algorithm, according to an embodiment of the present subject matter.



FIG. 3 is an illustration of a sliding window W(i,j) in the noisy input image with pixels x(i,j), according to an embodiment of the present subject matter. In accordance with the algorithm for locally-adaptive Wiener filtration is performed the lexicographic scan of the image matrix [X] through a sliding window W(i,j) of size (2b+1)×(2h+1), as shown in FIG. 3. The locally-adaptive image filtration for reduction of additive Gaussian noise is performed in block 25 in accordance with the relation:













x
f

(

i
,
j

)

=

{








μ
x

(

i
,
j

)

+






σ
x





2


(

i
,
j

)

-

v





2





σ
x





2


(

i
,
j

)


[


x

(

i
,
j

)

-


μ
x

(

i
,
j

)


]



for




σ
x





2


(

i
,
j

)





v





2



;










μ
x

(

i
,
j

)



for




σ
x





2


(

i
,
j

)


<

v





2



,









(
1
)








where xf(i,j)—filtered input pixel









x

(

i
,
j

)

;



μ
x

(

i
,
j

)

=


(

1
/

N
W


)






m
=

-
b


b





n
=

-
h


h


x

(


i
+
m

,

j
+
n


)










—mean value of the pixels x(i,j) in the sliding window W(i,j) of size (2b+1)×(2h+1); Nw=(2b+1)×(2h+1)—number of pixels in the sliding window W(i,j) (it is recommended to use a square window W(i,j) of size (2c+1)×(2c+1) for b=h=c);


The value of px(i,j) is calculated in block 22 of FIG. 2;










σ
x





2


(

i
,
j

)

=


[


(

1
/

N
W


)






m
=

-
b


b





n
=

-
h


h



x





2


(


i
+
m

,

j
+
n


)




]

-


μ
x





2


(

i
,
j

)







—local variance of the pixels x(i,j) in the sliding window W(i,j). The value of σx2(i,j) is calculated in block 23;









v





2


=


(


1
/
M

×
N

)






i
=
1

M





j
=
1

N



σ
x





2


(

i
,
j

)









—mean noise variance in the image [X] of size M×N. It is calculated in block 24.


For the acceleration of the calculation of the mean value μx(i,j) for each pixel except these on the first row and first column of the input matrix [X], are used recursive relations, executed in blocks 25 and 26:













μ
x

(

i
,
j

)

=



μ
x

(


i
-
1

,
j

)

+


μ
x

(

i
,

j
-
1


)

-





μ
x

(


i
-
1

,

j
-
1


)

++




(

1
/

N
W


)

[





x

(


i
+
b

,

j
+
h


)

-

x

(


i
+
b

,

j
-
h
-
1


)

-







x


(


i
-
b
-
1

,

j
+
h


)


+

x


(


i
-
b
-
1

,

j
-
h
-
1


)






]







(
2
)









FIG. 4 is an illustration of spatial arrangement of pixels used for the recursive calculation of the mean value μx(i,j) in a sliding window W(i,j) of size (2b+1)×(2h+1), according to an embodiment of the present subject matter. The spatial positions of the pixels which participate in equation (2) above are shown on FIG. 4.


As a result, the mean value μx(i,j) is recursively calculated by only 7 operations instead of performing addition of all pixels in the sliding window, where the needed operations are (2b+1)×(2h+1)−1 (for example, if b=h=5, then (2b+1)×(2h+1)−1=120 and then the acceleration of the calculations of μx(i,j) is 120/7=17.14 times). This is the first advantage of the new approach, presented here. The second advantage of the offered RLA-WF compared to the known adaptive Wiener filtering [20], is that it is adaptive towards the level of the local variation compared to the global one, in result of which are retained the transitions in the image, while the noise is suppressed.


The Truncation Threshold Surface (TTS) algorithm is auxiliary and is used for the calculation of the truncation threshold for the local histogram in each sliding window. This algorithm is performed in bl. 3 of the scheme on FIG. 1.



FIG. 5 is a block diagram illustrating the TTS algorithm, according to an embodiment of the present subject matter. The matrix of the input filtered X-ray dental image [Xf] (in bl. 31) is of size M×N pixels xf(i,j) for i=1, 2, . . . , M, j=1, 2, . . . , N and m—the number of grey levels per pixel (resp. u=log2m—number of bits per pixel).


Step 1. In bl. 32, the image [Xf] is divided into (MN)/Q2 non-overlapping blocks Xf,u,v of size Q×Q pixels each, for Q=2d+1 and u=1, 2, . . . , (M/Q) (number of blocks in horizontal direction), and v=1, 2, . . . , N/Q (number of blocks in vertical direction).


For each block Xf,u,v, obtained in blocks 33 and 310, is calculated the corresponding individual threshold CLu,v (in block 35) on the basis of the analysis of the local histogram hu,v(k) (in block 34) of this block.













CL

u
,
v


(
q
)

=


q
×
max


{


h

u
,
v


(
k
)

}


=

q
×
max



{



n

u
,
v


(
k
)

/

Q





2



}




for







(
3
)













k
=
0

,
1
,
2
,


,

m
-
1

,





where










n

u
,
v


(
k
)

=




p
=

-
d


d





s
=

-
d


d


1



x
f

(


1
+
p

,

j
+
s


)

=
k









is the number of pixels in the level k of the block Xf,u,v; q—truncation coefficient for the maximum value of each histogram hu,v,(k) for u=1, 2, . . . , (M/Q) and v=1, 2, . . . , N/Q. The value of q is chosen in the range 0.00001≤q≤0.2 on the basis of the quality metrics of the processed image.


An alternative to (3) algorithm for determining the adaptive threshold CLu,vadap is proposed, the value of which does not depend on the parameter q, but on the distribution of the local histogram hu,v(k) of the block Xf,u,v. According to this algorithm, the threshold CLu,vadap is calculated so that the histogram hu,v(k) to divide in 2 parts of the same area with a value of 0.5. As a result of the application of SW-CLAHE with adaptive threshold, maximum contrast of the central pixel of the block Xf,u,v is provided due to the maximum linear stretching of its histogram without loss of gray levels.


The calculation of the value of the adaptive threshold CLu,vadap is performed using the following recursive iterative algorithm:


1. Calculation of CLu,vadap for initial image block Xf,u,v for u=v=0:















Let



CL

u
,
v

adap


=


x


with


inital


values


x

=


0


and


δ

=

0.01
.












St
.

1.



x

=

x
+
δ


;









St
.

2.





S

u
,
v


(
x
)


=





k
=
0


m
-
1




[



h

u
,
v




(
k
)


-
x

]



for




h

u
,
v


(
k
)




x


;







St
.

3.



If




S

u
,
v


(
x
)



{





>

0.5
-

return


in


step


1



,









0.5
-

go


to


step


4



;














St
.

4.



Stop


and



CL

u
,
v

adap


=
x

,







(
4
)








where hu,v(k) is the local histogram of the pixels in the block Xf,u,v; m—number of pixels gray level.


2. Recursive calculation of CLu+1,vadap for next neighbor image block, for example Xf,u+1,v, with local histogram hu+1,v(k):















Initial


value


for



CL


u
+
1

,
v

adap


=


CL

u
,
v

adap

=

x
.











St
.

1.



Calculation


of




S


u
+
1

,
v


(
x
)


=




k
=
0


m
-
1



[



h


u
+
1

,
v


(
k
)

-
x

]



;







St
.

2.



Check


of


the


conditions
:














if




S


u
+
1

,
v


(
x
)




0.5

go


to


step


3


;















if




S


u
+
1

,
v


(
x
)


>
0.5

,



then


x

=

x
+

δ


and


go


to


step


1



;















if




S


u
+
1

,
v


(
x
)


<
0.5

,



then


x

=

x
-

δ


and


go


to


step


1



;










St
.

3.



Stop


and



CL


u
+
1

,
v

adap


=

x
.








(
5
)








Depending on the position (u,v) of the current block Xf,u,v, image size M×N and the selected way of scanning the image blocks (scan type for example: progressive, meander, Peano-Hilbert, etc.) next neighboring block can be not only Xf,u+1,v, but also one of the blocks Xf,u,v+1 or Xf,u+1,v+1.


The recursive calculation of CL leads to its acceleration, which is due to the big correlation between the spatially adjacent blocks of the image. For this reason, the number of iterations required to calculate the CL for each block except the initial one is reduced.



FIG. 6 is an illustration of an example for converting the pixel x(i,j)=3 from the input image to the pixel g(i,j)=4 of the output image with m=8 gray levels via SW-CLAHE, according to an embodiment of the present subject matter. The example shows the contrast conversion of the central pixel x(i,j)=3 of a block with sizes 5×5 pixels using algorithms HE and SW-CLAHE with threshold CLu,v for fixed value of the parameter q.


For the example of FIG. 6 in Table 1 are presented all iterative steps for calculating the adaptive threshold CLu,vadap with initial value x=0 (for u=v=0) in accordance with algorithm (4).









TABLE 1







Description of the iterative calculation of CLi,jadap = x = 0.08 for S(x) = 0.48















hu,v(k)
x = 0.01
x = 0.02
x = 0.03
x = 0.04
x = 0.05
x = 0.06
x = 0.07
x = 0.08





0.12
0.11
0.10
0.09
0.08
0.07
0.06
0.05
0.04


0.24
0.23
0.22
0.21
0.20
0.19
0.18
0.17
0.16


0.16
0.15
0.14
0.13
0.12
0.11
0.10
0.09
0.08


0.20
0.19
0.18
0.17
0.16
0.15
0.14
0.13
0.12


0.16
0.15
0.14
0.13
0.12
0.11
0.10
0.09
0.08


0.08
0.07
0.06
0.05
0.04
0.03
0.02
0.01
0.00


0.04
0.03
0.02
0.01
0.00
0.00
0.00
0.00
0.00


0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00


S = 1.00
S = 0.93
S = 0.86
S = 0.79
S = 0.72
S = 0.66
S = 0.60
S = 0.54

custom-character 8











From the analysis of the histogram hu,v(k) for the example of FIG. 6 it follows that for k=1, hmax(k)=0.24. If we assume q=0.2 from expression (3) we get:










CL

u
,
v


(
q
)

=


0.2
×
0.24

=

0.05
.







This value of CLu,v is used in the non-iterative algorithm SW-CLAHE with a fixed value of q.


The choice of algorithm for calculating the threshold CLu,v is determined by the requirements of the specific application of SW-CLAHE: for visual evaluation of a tooth image of a given type or for automatic analysis, for example by an artificial intelligence system based on neural networks.


Step 2. Calculation in block 311 of the truncation thresholds surface—matrix [T] of size M×N, comprising the blocks Tu,v≡Xf,u,v. In the space, defined by the centers of each four spatially-neighboring blocks Tu,v, Tu+1,v, Tu,v+1, Tu+1,v+1, is defined the matrix [Tu,v] of size Q×Q with elements tu,v(α,β) for α,β=0, 1, . . . , Q−1.



FIG. 7 is an illustration of calculation of the TTS (a matrix [T] of size M×N) by bilinear interpolation, according to an embodiment of the present subject matter. The following symbols were accepted for the corner elements of the matrix [Tu,v], resp.: tu,v(0,0)=A, tu+1,v(Q,0)=B, tu,v+1(0,Q)=C, tu+1,v+1(Q,Q)=D, as shown in FIG. 7. In this case, A, B, C and D coincide with the thresholds CLu,v, CLu+1,v, CLu,v+1, CLu+1,v+1 for the group of four spatially-neighboring blocks Tu,v, Tu+1,v, Tu,v+1, Tu+1,v+1.


The remaining elements tu,v(α,β) of the matrix [Tu,v] are calculated in bl. 36 through BLI (Bilinear Interpolation) in correspondence with the relation:













t

u
,
v


(


α
0

,

β
0


)

=




(

1
/

Q





2



)


[



A

(

Q
-

α
0


)



(

Q
-

β
0


)


+


β
0



C

(

Q
-

α
0


)


+


α
0



B

(

Q
-

β
0


)


+


α
0



β
0


D


]





(
6
)








for α0, β0=0, 1, . . . , Q−1. Here (α00) are the local coordinates of the element tu,v00) of the matrix [Tu,v]=[tu,v00)].


To define the threshold CLij for the histogram truncation in the window W(i,j) for the pixel xf(i,j) in the global coordinate system (i,j) for i=0, 1, . . . , M−1 and j=0, 1, . . . , N−1, is necessary to take into account the displacement (Δiu,Δjv) of the origin of the local coordinate system of the block, related to the original. Then the needed local threshold CLu,v(i,j) (calculated in a block 311) for the pixel xf(i,j) from the block Tu,v, is defined by the relation:














CL

u
,
v


(

i
,
j

)

=



t

u
,
v


(



Δ


i
u


+
α

,


Δ


j
v


+
β


)

=




t

u
,
v


(

i
,
j

)



for


u

=
1



,
2
,


,


(

M
/
Q

)

;





(
7
)













v
=
1

,
2
,


,


(

N
/
Q

)

;

i
=
0


,
1
,


,


M
-
1

;

j
=
0


,
1
,


,


N
-
1

;












Δ


i
u


=
0

,
Q
,



2

Q

, .. ,


(

M
/
Q

)


-
1

;


Δ


j
v


=
0


,
Q
,


2

Q

, .. ,


(

N
/
Q

)


-
1.






The so presented algorithm for the definition of CLu,v(i,j) is executed before the SW-CLAHE algorithm. To simplify the explanations, in the description below the indices u,v of the local threshold CL(i,j), and respectively—of the element t(i,j) of the matrix [T] will not be used, because they are a function only of the variables (i,j).


The Recursive Sliding Window Contrast Limited Adaptive Histogram Equalization (RSW-CLAHE) algorithm is performed in block 4 of the scheme on FIG. 1. This algorithm is designed to enhance local contrast of each pixel of the input image based on the pixels in the sliding window that it covers. FIG. 8 is a block diagram illustrating the RSW-CLAHE algorithm, according to an embodiment of the present subject matter.


Step 1. The local histogram hi,j(k) is calculated in block 42 for the pixels in the sliding window W(i,j) whose central pixel is x(i,j):














h

i
,
j


(
k
)

=





n

i
,
j


(
k
)

/

N
W




for


k

=
0


,
1
,
2
,


,

m
-
1.





(
8
)








Here Nw=(2b+1)(2h+1) is the number of pixels in the sliding window W(i,j) of size (2b+1)×(2h+1) whose center coincides with the pixel xf(i,j) (it is recommended to use a square window W(i,j) of size (2c+1)×(2c+1) for b=h=c);










n

i
,
j


(
k
)

=




p
=

-
b


b





s
=

-
h


h


1



x
f

(


i
+
p

,

j
+
s


)

=
k









—the number of pixels with grey level k in the sliding window W(i,j), as shown in FIG. 9, which is an illustration of two consecutive positions of the sliding window W(i,j) and W(i+1,j), according to an embodiment of the present subject matter.


Step 2. The values of the local histogram hi,j(k) are separated into two parts (in block 43) by the individual threshold, CLi,j. The parts of the histogram are calculated in correspondence with the relations:













h

i
,
j









(
k
)

=

{








h

i
,
j


(
k
)

-


CL

i
,
j




for




h

i
,
j


(
k
)





CL

i
,
j



;








0
-


for




h

i
,
j


(
k
)



<

CL

i
,
j



;









(
9
)














h

i
,
j









(
k
)

=

{







CL

i
,
j




for




h

i
,
j


(
k
)




CL

i
,
j



,









h

i
,
j


(
k
)



for




h

i
,
j


(
k
)


<


CL

i
,
j


.











In this case h′i,j(k)+h″i,j (k)=hi,j(k). The value of the threshold CLi,j is in the range 0<CLi,j<1 and is calculated before the execution of the BLI algorithm.


Step 3. Calculation of the modified local histogram hi,jM(k) in block 44 for the sliding window W(i,j) in correspondence with the SW-CLAHE algorithm, shown on FIG. 10, which is a graphical representation of RSW-CLAHE for the current window, according to an embodiment of the present subject matter.














h

i
,
j






M


(
k
)

=



(


Δ

i
,
j


/
m

)

+


h

i
,
j









(
k
)


=



(

1
/
m

)






k
=
0


m
-
1




h

i
,
j









(
k
)



+


h

i
,
j









(
k
)




,




(
10
)








where









Δ

i
,
j









=



Δ

i
,
j


/
m

=


(

1
/
m

)






l
=
0


m
-
1




h

i
,
j









(
l
)









is the basic level of the modified local histogram hi,jM (k) as shown in FIG. 11, which is an illustration of setting the value of the threshold CLi,j for the local histogram hi,j(k), according to an embodiment of the present subject matter.


Step 4. Calculation of the modified local cumulative histogram Hi,jM (k) in block 45 for the pixel (i,j):













H

i
,
j






M


(
k
)

=





l
=
0

k



h

i
,
j






M


(
l
)


=



[

(

k
+

1
/
m



]






l
=
0


m
-
1




h

i
,
j









(
l
)



+




l
=
0

k




h

i
,
j









(
l
)



for








(
11
)













k
=
0

,
1
,
2
,


,

m
-
1.






Step 5. Calculation of the new grey level gk(i,j) of 10 bits in block 46 of the pixel (i,j) from the enhanced image, which replaces the grey level value k of the 8 bits/pixel xf(i,j) from the input filtered image, and is placed in the center of the sliding window W(i,j):













g
k

(

i
,
j

)

=

{






m
-

1


for







(

m
-
1

)




H

i
,
j






M


(
k
)


+
0.5





>

m
-
1


;











(

m
-
1

)



H

i
,
j






M




(
k
)


+
0.5



-


in


all


other



cases
.











(
12
)








In result is obtained the modified image with pixels gk(i,j), whose truncated histogram is equalized. By increasing the number of bits per pixel of the image with improved contrast, the appearance of false contours in areas with the same levels of gray is avoided. In the description below, the index k for the grey level of the pixel g(i,j) will not be used, because it depends only of the variables (i,j).


Step 6. The sliding window W(i,j) is moved one position ahead in horizontal direction, so that its center to coincide with the pixel x(i+1,j). For the new position of the window W(i+1,j) is calculated in block 44 recursively the corresponding local modified histogram hi+1,jM(k) shown in FIG. 12, which is an illustration of recursive calculation of the histogram hi+1,jM(k) based on hi,jM(k), according to an embodiment of the present subject matter:














h


i
+
1

,
j






M


(
k
)

=




h

i
,
j






M


(
k
)

-


h


i
-
b

,
j






M


(
k
)

+



h


i
+
b
+
1

,
j






M


(
k
)



for


k


=
0


,
1
,
2
,


,

m
-
1

,




(
13
)








where hi−b,jM(k) and hi+b+1,jM(k) are respectively the modified histograms with grey level k in the first column (i−b) of the window W(i,j) with center (i,j), and in the last column (i−b+1) of the window (i+1,j) with center (i+1,j). Here CLi+i,j is the value of the threshold for the histogram of the pixels in the window with center xf(i+1,j).


The modified histogram for the first column (i-b) of the window W(i,j) is:













h


i
-
b

,
j






M


(
k
)

=

{








Δ

i
,
j









+



h


i
-
b

,
j









(
k
)



for




h


i
-
b

,
j


(
k
)



<

CL

i
,
j



;









Δ

i
,
j











for




h


i
-
b

,
j


(
k
)




CL

i
,
j



,






where






(
14
)















h


i
-
b

,
j


(
k
)

=





n


i
-
b

,
j


(
k
)

/

(


2

h

+
1

)




for




n


i
-
b

,
j


(
k
)


=




s
=

-
h


h


1



x
f

(


i
-
b

,

j
+
s


)

=
k





;












Δ



i
,
j









=


(

1
/
m

)






l
=
0


m
-
1




h

i
,
j









(
l
)




;



h


i
-
b

,
j









(
k
)

=

{








h


i
-
b

,
j


(
k
)



for




h


i
-
b

,
j


(
k
)


<

CL

i
,
j



;








CL

i
,
j


-


for




h


i
-
b

,
j


(
k
)






CL

i
,
j


.












The modified histogram for the last column (i+b+1) of the window W(i+1,j) is:













h


i
+
b
+
1

,
j






M


(
k
)

=

{









Δ




i
+
1

,
j









+



h




i
+
b
+
1

,
j











(
k
)



for




h


i
+
b
+
1

,
j


(
k
)



<

CL


i
+
1

,
j



;










Δ




i
+
1

,
j











for




h


i
+
b
+
1

,
j


(
k
)




CL


i
+
1

,
j



,






where






(
15
)














h


i
+
b
+
1

,
j


(
k
)

=




n


i
+
b
+
1

,
j


(
k
)

/

(


2

h

+
1

)




for













n


i
+
b
+
1

,
j


(
k
)

=




s
=

-
h


h


1



x
f

(


i
+
b
+
1

,

j
+
s


)

=
k




;



Δ




i
+
1

,
j









=


(

1
/
m

)






l
=
0


m
-
1




h


i
+
1

,
j









(
l
)




;











h


i
+
b
+
1

,
j









(
k
)

=

{









h


i
+
b
+
1

,
j


(
k
)



for




h


i
+
b
+
1

,
j


(
k
)


<

CL


i
+
1

,
j



;









CL

i
,
j


-


for




h


i
+
b
+
1

,
j


(
k
)





CL


i
+
1

,
j



,




.







Step 7. For each next window position when i=b+2, b+3, . . . , M−b and j=h+2, h+3, . . . , N−h, the steps 3-6 are executed again in blocks 47 and 48. The initial position of the window is defined by the pixel xf(b+1,h+1) in bl. 41, and the window moves to the next position from left to right (in bl. 49) and to the next row below (in block 410).


Unlike the known CLAHE algorithm, the offered here algorithm RSW-CLAHE is using a sliding window placed around each pixel, whose histogram has an individual clipping factor, CL based on the TTS. The calculation of the local modified histogram is accelerated through a recursion.


For the example of FIG. 6 are built respectively local histograms h(k) and H(k) on the basis of which Histogram Equalization (HE) is performed. In this case, the pixel x(i,j)=3 is transformed according to the HE algorithm:










g

k
=
3


(

i
,
j

)

=





7



H

i
,
j


(
3
)


+
0.5



=





7
×
0.72

+
0.5



=
5.








FIG. 13 is an illustration of an example for the local histograms h(k) and H(k) for execution of HE, according to an embodiment of the present subject matter.



FIG. 14 is an illustration of histograms hM(k)−1, HM(k)−1 and hM(k)−2, HM(k)−2, respectively, for non-iterative SW-CLAHE-1 and iterative SW-CLAHE-2, according to an embodiment of the present subject matter. In FIG. 14 for the same example of FIG. 13 are given the corresponding local histograms hM(k) and HM(k) with index 1 for the non-iterative, and with index 2—for the iterative SW-CLAHE. After applying the corresponding algorithm:










g

k
=
3






M


(

i
,
j

)

=





7



H

i
,
j






M


(
3
)


+
0.5



=





7
×
0.53

+
0.5



=
4












for


non





iterative


SW




CLAHE



1











g

k
=
3






M


(

i
,
j

)

=





7



H

i
,
j






M


(
3
)


+
0.5



=





7
×
0.56

+
0.5



=
4












for


iterative


SW




CLAHE



2





The graphics of FIG. 13 for the corresponding pairs of histograms with indices 1 and 2 show their great proximity and better linearity compared to those in FIG. 14.


Conclusions from the analysis of the results presented in FIGS. 13 and 14:

    • As a result of the application of the new iterative algorithm for the adaptive CL calculation, the modified local histogram hM(k)−2 is equalized very good. The corresponding modified cumulative local histogram HM(k)−2 is linear in the region where hM(k)−2=const. Thus, the contrast of the original image is increased as a result of linear stretching of its histogram. The comparison of graphics H(k) and HM(k)−2 shows that for HE in the graphic H(k) is reached a saturation (which means that part of the grey levels in the processed image are lost), while in the iterative calculation of CL there is no loss of gray levels.
    • According to the proposed iterative algorithm, the value of CL takes into account the distribution of the whole local histogram, while according to the non-iterative algorithm, CL is determined only by the maximum value of the local histogram within the sliding window.
    • Compared to the non-iterative SW-CLAHE algorithm with fixed value of q, the new iterative algorithm does not require setting the value of q, because this parameter is not used for the adaptive calculation of the CL.


The Fast Recursive Adaptive Unsharp Masking (FRA-UM) algorithm is executed in block 5 of the scheme of FIG. 1. It is designed to increase the sharpness of the input X-ray image [X] without decreasing the steepness of the transitions. Instead of the known Unsharp Masking algorithm, a new recursive adaptive UM algorithm is applied here, which significantly speeds up its execution.


The FRA-UM algorithm uses a sliding window W(i,j) of size (2b+1)×(2h+1) to scan the input image [X] of size M×N, with pixels x(i,j) (i=1, 2, . . . , M, j=1, 2, . . . , N). FIG. 15 is a block diagram illustrating the FRA-UM algorithm, according to an embodiment of the present subject matter. It corresponds to the FRA-UM algorithm steps given as follows.


Non-recursive adaptive unsharp masking algorithm is calculated in bl. 54:












f

(

i
,
j

)

=

{









f








(

i
,
j

)



for





"\[LeftBracketingBar]"



x

(

i
,
j

)

-


μ
x

(

i
,
j

)




"\[RightBracketingBar]"




δ

,








x

(

i
,
j

)

-


in


all


other


cases


,






where
:






(
16
)

















f








(

i
,
j

)

=



x

(

i
,
j

)

+

λ
[


x

(

i
,
j

)

-


μ
x

(

i
,
j

)


]


=



x

(

i
,
j

)

+


λ
[


x

(

i
,
j

)

-


(

1
/

N
W


)






k
=

-
b


b





l
=

-
h


h


x

(


i
+
k

,

j
+
l


)





]

.







(
17
)








The value of f′(i,j) is calculated in block 53, and that of










μ
x

(

i
,
j

)

=


(

1
/

N
W


)






k
=

-
b


b





l
=

-
h


h


x

(


i
+
k

,

j
+
l


)









—in block 52; Nw=(2b+1)(2h+1)—the number of pixels in the sliding window W(i,j) of size (2b+1)×(2h+1); (it is recommended to use a square window W(i,j) of size (2c+1)×(2c+1) for b=h=c); f(i,j)—a pixel from the sharpened image (in block 55); k—a coefficient used to control the sharpness enhancement, whose value is chosen experimentally in the range 0.2<λ<0.9; δ—threshold, δ≥sσx for 0.2<s<0.9 and σx2—noise variance in the input image x(i,j). To reduce the calculations, expression (16) is transformed as follows:











f


(

i
,
j

)

=


(

λ
/

N
W


)

[



(



N
w

/
λ

+

N
w

-
1

)



x

(

i
,
j

)


-




k
=

-
a


a





1
=

-
b


b


x

(


i
+
k

,

j
+
1


)




]





(
18
)








for






(

k
+
1

)


0.




Then, in accordance with the above expression, the pixel f′(i,j) is the result of applying the convolution operation of the image with a kernel of two-dimensional (2D) digital filter, given in FIG. 16, which is an illustration for the kernel of the unsharp masking 2D digital filter of size, according to an embodiment of the present subject matter. Through suitable choice of X with respect to the Nw filtration is performed with a 2D kernel, which is an integer matrix. As a result, rounding errors of f′(i,j) are reduced and calculations are accelerated.


Example: 2D digital filter for unsharp masking with the kernel of size 7×7 (a=b=3, Nw=49) and λ=0.49 from relation (16) and FIG. 17, which is an illustration of the kernel of the unsharp masking 2D digital filter of size 7×7, according to an embodiment of the present subject matter. For the acceleration of the calculation of the mean value μx, in bl. 52 is used the 2D recursive relation (2).


From the above expression is the following recursive form of calculation in bl. 53:










(
19
)











f


(

i
,
j

)

=



(

1
+
λ

)



x

(

i
,
j

)


-




λ
[



μ
x

(


i
-
1

,
j

)

+



μ
x

(

i
,

j
-
1


)






-









μ
x

(


i
-
1

,

j
-
1


)





]

--





(

λ
/

N
W


)

[


x

(


i
+
b

,


j

+



h


)

-

x

(


i
+
b

,

j
-
h
-
1


)

-


x

(


i
-
b
-
1

,


j

+



h


)

+

x

(


i
-
b
-
1

,

j
-
h
-
1


)


]

.







The number of operations in the last equation is always 12 and does not depend on the filter window size. For the non-recursive case, the value f′(i,j) is calculated by (2b+1)×(2h+1)+4 operations. In case that b>>1 and h>>1, the reduced number ρ2D of arithmetic operations becomes:










ρ

2

D


=



(


1
/
1


2

)

[



(


2

b

+
1

)



(


2

h

+
1

)


+
4

]




0
.
3


3
×

bh
.







(
20
)







For example, if b=h=20 then ρ2D≈133, i.e., the number of summations necessary for the recursive filter is more than 133 times smaller. This is the advantage of the new approach, presented here.


For further simplification it is possible instead of applying one 2D mean filter, to apply two 1D mean filters—the first over the lines in the horizontal direction of the input image [X], and the second—over the columns in the vertical direction, in accordance with the expressions:












μ
1

(

i
,
j

)

=


x

(

i
,
j

)

+


λ
1

[


x

(

i
,
j

)

-


1

(


2

b

+
1

)







k
=

-
b


b


x

(


i
+
k

,
j

)




]



;




(
21
)










μ

(

i
,
j

)

=



μ
1

(

i
,
j

)

+



λ
2

[



μ
1

(

i
,
j

)

-


1

(

21
+
1

)







1
=

-
h


h



μ
1

(

i
,

j
+
1


)




]

.






Here λ=λ1×λ2 and u1(i,j) is the pixel (i,j) of the image obtained in result of the first filtration (in horizontal direction). The above two equations are presented in recursive form of calculation:












μ
1

(

i
,
j

)

=



μ
1

(


i
-
1

,
j

)

-



λ
1


(


2

b

+
1

)


[


x

(


i
-
b
-
1

,
j

)

-

x

(


i
+
b

,
j

)


]



;




(
22
)










μ

(

i
,
j

)

=


μ

(

i
,

j
-
1


)

-




λ
2


(


2

h

+
1

)


[



μ
1

(

i
,

j
-
h
-
1


)

-


μ
1

(

i
,

j
+
h


)


]

.






If λ120=√{square root over (λ)}, then the equation for the 2D recursive calculation of μ(i,j) is replaced by the following equations for 1D recursive calculation of μ(i,j) in bl. 52:












μ
1



(

i
,
j

)


=



μ
1



(


i
-
1

,
j

)


-



λ
0


(


2

b

+
1

)


[


x


(


i
-
b
-
1

,
j

)


-

x


(


i
+
b

,
j

)



]



;




(
23
)










μ

(

i
,
j

)

=


μ

(

i
,

j
-
1


)

-




λ
0


(


2

h

+
1

)


[



μ
1

(

i
,

j
-
h
-
1


)

-


μ
1

(

i
,

j
+
h


)


]

.







FIG. 18 is an illustration for spatial arrangement of pixels in a sliding line of size (2b+1)×(1) used for the recursive calculation of the value μ1(i,j) in horizontal direction, according to an embodiment of the present subject matter. FIG. 19 is an illustration for spatial arrangement of pixels in a sliding column of size (1)×(2h+1) used for the recursive calculation of the value μ(i,j) in vertical direction, according to an embodiment of the present subject matter. FIGS. 18 and 19 show the spatial positions of the pixels by which a 1D recursive calculation of the intermediate image μ1(i,j) and the final image μ(i,j) is performed according to the above expression. The reduced number of arithmetic operations is:











ρ

1

D


=



(

1
/
4

)

[


(


2

b

+
4

)

+

(


2

h

+
4

)


]

=



(

1
/
2

)



(

b
+
h

)


+
2



.




(
24
)







For example, if b=h=20, then ρ1D=22, i.e., in result of the recursive approach the number of summations is more than 22 times smaller. The algorithm efficiency is additionally enhanced in result of the double use of the same 1D filter.


A comparison of recursive 2D and 1D calculations of the pixel μ(i,j) shows that the 1D calculation is less computational complexity (b/3 times for b=h), but requires double scan of the image, which increases the overall time for filtration.


The algorithm for Linear Mixing (LM) of the filtered, contrasted, and sharpened images is performed in block 6 of the scheme of FIG. 1. The final image with pixels z(i,j) is a linear combination of the image with pixels g(i,j) with enhanced contrast and filtered noise, and the image with pixels f(i,j), whose sharpness was enhanced. In this case, the output image is calculated as follows:










z

(

i
,
j

)

=


αg

(

i
,
j

)

+


(

1
-
α

)



f

(

i
,
j

)







(
25
)







for i=b+2, b+3, . . . , M−b and j=h+2, h+3, . . . , N−h, where a is the control coefficient used for the mixing of pixels g(i,j) and f(i,j), whose value is chosen in the range 0<α<1.



FIGS. 20A-20D are images showing examples of X-ray dental image enhancement by the FRA-UM, including input X-ray dental image 1 (FIG. 20A), enhanced X-ray dental image 1 (FIG. 20B), input X-ray dental image 2 (FIG. 20C), and enhanced X-ray dental image 1 (FIG. 20D). The main parameters which define the output image, are: q, c, d, λ, α. Their values are defined in the process of testing the image database containing X-rays bitewing images. In the general case the values of these parameters are selected depending on the type and resolution of X-ray dental images and the specific requirements, related with reliable detection of various defects of the imaged teeth. The control of the values of the main parameters is performed in block 7 on the basis of the criteria described below for evaluation of the quality of the obtained image.


For the quantitative evaluation of the image quality enhancement are developed various criteria [22, 23] which correspond to different image classes, as photos, video sequences (grayscale and color), underwater, multispectral, and medical (ultrasound, computer tomography sequences, X-ray photos, etc.). For the evaluation of X-ray dental images were specially chosen the following quantitative metrics:


1. Metrics for contrast enhancement evaluation: Mean Square Difference Entropy (MSDE):










MSDE
=


Mean



(

Δ


E
2


)


=


(

1
/
MN

)






i
=
1

M





j
=
1

N



(


LE

x

1


(

i
,
j

)




-

LE

x

0


(

i
,
j

)





)

2






,




(
26
)







where








LE

i
,
j


=


-




k
=
0


m
-
1





h

i
,
j


(
k
)

×


log
2

[


h

i
,
j


(
k
)

]




-

Local


Entropy



(
LE
)



in


sliding


window



;




—Local Entropy (LE) in sliding window; x1(i,j) and x0(i,j) are the grey level values of pixels of the output (filtered) and the input (original) image, respectively.


2. Metrics for image sharpness evaluation: Sharpness Index (SI), based on the gradient vector G(i,j)=grad x(i,j):










SI
=


TGD

sharpened


image


f


/

TGD

original


image


x




,




(
27
)








where








TGD
=


(

1
/
MN

)






i
=
1

N





j
=
1

M


{



[


G
1

(

i
,
j

)

]

2

+


[


G
2

(

i
,
j

)

]

2


}








(
28
)







is Tenengrad gradient function which uses the Sobel operator to extract the horizontal and vertical gradient values:












G
1

(

i
,
j

)

=


[


x

(


i
-
1

,

j
-
1


)

+

2


x

(


i
-
1

,
j

)


+

x

(


i
-
1

,

j
+
1


)


]

-

[



x

(


i
+
1

,

j
-
1


)

+

2


x

(


i
+
1

,
j

)


+

x

(


i
+
1

,

j
+
1


)


]



,




(
29
)














G
2

(
ij
)

=


[


x

(

i
-

1

j

+
1

)

+

2


x

(

i
,

j
+
1


)


+

x

(


i
+
1

,

j
+
1


)


]

-


[


x

(


i
-
1

,

j
-
1


)

+

2


x

(

i
,

j
-
1


)


+

x

(


i
+
1

,

j
-
1


)


]

.






(
30
)







Metrics for noise reduction evaluation:

    • 1. Mean Squared Error (MSE):











ε
2

_

=


(

1
/
MN

)






i
=
1

M





j
=
1

N



[



x
1

(

i
,
j

)

-


x
0

(

i
,
j

)


]

2








(
31
)









    • 2. Signal to Noise Ratio (SNR):












SNR
=

10





log
10

[




i
=
1

M





j
=
1

N




[


x
1

(

i
,
j

)

]

2

/




i
=
1

M





j
=
1

N



[



x
1

(

i
,
j

)

-


x
0

(

i
,
j

)


]

2






]


[
dB
]






(
32
)









    • 3. Peak Signal to Noise Ratio (PSNR):













PSNR
=

10



log

1

0









(

m
-
1

)

2

/


ε
2

_





[
dB
]



,




(
33
)









    • where m is the number of gray level values, for example m=256 (8 bpp).





On the basis of the above-described criteria, corresponding algorithms for image quality assessment have been used for parameters control in block 7. The control is based on comparing the calculated parameters with preset values. The obtained deviations are used for iterative change of the parameters until they reach values close to the preset ones.


The comparison of the results obtained through applying the algorithm on X-ray dental images enhancement was done by using the Internet-accessible program codes. These results were obtained by non-iterative RSW-CLAHE and FRA-UM for the following values of the basic parameters: q=0.2, c=2, λ=0.4, α=0.4.


For visual evaluation and quality comparison of the improved X-ray bitewings images through applying the non-iterative RSW-CLAHE+FRA-UM and the CLAHE. FIGS. 21A-21C are images showing an example of an input X-ray dental image (FIG. 21A), an enhanced X-ray dental image by CLAHE (FIG. 21B), and an enhanced X-ray dental image by non-iterative RSW-CLAHE+FRA-UM (FIG. 21C) (sample 1). FIGS. 22A-22C are images showing another example of an input X-ray dental image (FIG. 22A), an enhanced X-ray dental image by CLAHE (FIG. 22B), and non-iterative RSW-CLAHE+FRA-UM (FIG. 22B)(sample 2).



FIGS. 23A-23E are images showing an example of enhancement of a dental X-ray panoramic image. FIG. 23A shows an input dental X-ray panoramic image. FIG. 23B shows enhanced output image by CLAHE, MSDE=4.20 bits. FIG. 23C shows enhanced image by non-iterative RSW-CLAHE for q=0.02 and c=16, MSDE=138.77 bits. FIG. 23D shows enhanced image by non-iterative RSW-CLAHE for q=0.0006 and c=16, MSDE=85.67 bits. FIG. 23E shows enhanced output image by iterative RSW-CLAHE for c=16 and MSDE=30.78 bits.


The visual evaluation of the images from FIGS. 23B, 23C, and 23D shows the advantages of RSW-CLAHE compared to CLAHE for the cases, when must be enhanced the contained information (the improved image c), or the local contract (the improved images d and e). The images from FIGS. 23A-23E could be quantitative evaluated trough the criterion MSDE (25). From the data shown on FIGS. 23B, 23C, 23D, and 23E is seen that for RSW-CLAHE, the corresponding values of MSDE are much higher than these for CLAHE. Besides, from the results shown on FIGS. 23C and 23D is seen that the values of the parameters q and c define the enhancement of the local contrast of the image. The choice of the values of these parameters correspond to the requirements of visual diagnostic.



FIGS. 24A-24E are images showing an example of enhancement of a dental X-ray periapical image. FIG. 24A shows an input dental X-ray periapical image. FIG. 24B shows enhanced output image by CLAHE, MSDE=1.57 bits. FIG. 24C shows enhanced image by non-iterative RSW-CLAHE for q=0.02, c=27, MSDE=82.69 bits. FIG. 24D shows enhanced image by non-iterative RSW-CLAHE for q=0.00001, c=16, MSDE=123.27 bits. FIG. 24E shows enhanced output image by iterative RSW-CLAHE for c=16 and MSDE=28.86 bits.


The results of the comparison of the proposed new algorithm for improvement of X-ray bitewings dental images with algorithms CLAHE and Global Histogram Equalization (GHE), are shown in Table 2.









TABLE 2







Metrics for image quality evaluation when using


the RSW-CLAHE, compared to CLAHE and GHE













RSW-





Evaluation metrics
CLAHE
CLAHE
GHE
















mean MSDE, bits
1.12
0.42
0.15



mean SI, bits
1.72
1.01
0.97



mean SNR, [dB]
29.54
17.17
13.97



mean PSNR, [dB]
34.70
21.90
18.67










The objective quality of the improved images is evaluated by using the metrics based on the criteria MSDE, SI and PSNR. A mean evaluation was done of the quality of 1868 test X-rays bitewing images, improved by applying the proposed RSW-CLAHE algorithm, CLAHE and GHE, based on the mean value of MSDE, SI, SNR and PSNR.


The obtained results are shown in FIGS. 25, 26, and 27. FIG. 25 is graph of mean value of MSDE for contrast evaluation through RSW-CLAHE, CLAHE, and GHE. FIG. 26 is graph of mean value of SI for sharpness evaluation through RSW-CLAHE, CLAHE, and GHE. FIG. 27 is graph of mean value of PSNR for noise evaluation through RSW-CLAHE, CLAHE, and GHE. The obtained quantitative results confirm the advantages of the proposed RSW-CLAHE compared to CLAHE and GHE in respect of criteria MSDE, SI and SNR, used for the evaluation of X-ray dental images.



FIG. 28 is a block diagram illustrating a machine in an example form of a computer system 500, according to an embodiment of the present subject matter. Within the computer system 500, a set or sequence of instructions may be executed to cause the machine to perform any one of the methodologies discussed herein, according to an example embodiment. In alternative embodiments, the machine operates as a standalone device or may be connected (e.g., networked) to other machines. In a networked deployment, the machine may operate in the capacity of either a server or a client machine in server-client network environments, or it may act as a peer machine in peer-to-peer (or distributed) network environments.


The machine may be a Personal Computer (PC), a tablet PC, a hybrid tablet, a Set-Top Box (STB), a Personal Digital Assistant (PDA), a mobile or cellular telephone such as a smart phone, a wearable device such as a smart watch, a web appliance, a network router, switch or bridge, or any machine capable of executing instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while only a single machine is illustrated, the term “machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.


Example computer system 500 may include one or more of the following: processor 502 (e.g., a Central Processing Unit (CPU), a Graphics Processing Unit (GPU) or both, processor cores, compute nodes, etc.), a main memory 504 and a static memory 506, which communicate with each other via a link 508 (e.g., bus). The computer system 500 may further include a video display unit 510, an alphanumeric input device 512 (e.g., a keyboard), and a User Interface (UI) navigation device 514 (e.g., a mouse). In one embodiment, the video display unit 510, input device 512 and UI navigation device 514 are incorporated into a touch screen display. The computer system 500 may additionally include a storage device 516 (e.g., a drive unit), a signal generation device 518 (e.g., a speaker), a network interface device 520, and one or more sensors (not shown), such as a Global Positioning System (GPS) sensor, compass, accelerometer, or other sensor.


The data storage device 516 includes a machine-readable medium 522 on which is stored one or more sets of data structures and instructions 524 (e.g., software) embodying or utilized by any one or more of the methodologies or functions described herein. The instructions 524 may include a machine learning system or algorithm, and may also reside, completely or at least partially, within the main memory 504, static memory 506, and/or within the processor 502 during execution thereof by the computer system 500, with the main memory 504, static memory 506, and the processor 502 also constituting machine-readable media.


While the non-transitory computer-readable storage medium 522 is illustrated in an example embodiment to be a single medium, the term “machine-readable medium” or “computer-readable medium” may include a single medium or multiple media (e.g., a centralized or distributed database, and/or associated caches and servers) that store the one or more instructions 524.


The term “machine-readable medium” shall also be taken to include any tangible medium that is capable of storing, encoding or carrying instructions (e.g., instructions 524) for execution by the machine and that cause the machine to perform any one or more of the methodologies of the present disclosure or that is capable of storing, encoding or carrying data structures utilized by or associated with such instructions. The term “machine-readable medium” shall accordingly be taken to include, but not be limited to, solid-state memories, and optical and magnetic media.


Specific examples of machine-readable media include non-volatile memory, including, but not limited to, by way of example, semiconductor memory devices (e.g., Electrically Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM)) and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks.


The instructions 524 may further be transmitted or received over a communications network 526 using a transmission medium via the network interface device 520 utilizing any one of a number of known Hypertext Transfer Protocols (e.g., HTTP).


Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), the Internet, mobile telephone networks, Plain Old Telephone System (POTS) networks, and wireless data networks (e.g., Wi-Fi, 3G, and 6G LTE/LTE-A or WiMAX networks). The term “transmission medium” shall be taken to include any intangible medium that is capable of storing, encoding, or carrying instructions for execution by the machine, and includes digital or analog communications signals or other intangible medium to facilitate communication of such software.


The above description is intended to be illustrative, and not restrictive. For example, the above-described examples (or one or more aspects thereof) may be used in combination with others. Other embodiments may be used, such as by one of ordinary skill in the art upon reviewing the above description. The Abstract is to allow the reader to quickly ascertain the nature of the technical disclosure, for example, to comply with 37 C.F.R. § 1.72(b) in the United States of America. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims.


Also, in the above Detailed Description, various features may be grouped together to streamline the disclosure. However, the claims may not set forth every feature disclosed herein as embodiments may feature a subset of said features. Further, embodiments may include fewer features than those disclosed in a particular example. Thus, the following claims are hereby incorporated into the Detailed Description, with a claim standing on its own as a separate embodiment.


This application is intended to cover adaptations or variations of the present subject matter. It is to be understood that the above description is intended to be illustrative, and not restrictive. The scope of the present subject matter should be determined with reference to the appended claims, along with the full scope of legal equivalents to which such claims are entitled.


One advantage of the present subject matter is that unlike the known methods, it is fully adaptive to the local statistical qualities of the analyzed X-ray dental images. This quality permits to achieve higher efficiency in the correction of the existing shortcomings of the kind:

    • Grey level transition blur which could vary in the central and peripheral areas of the image;
    • Low contrast with irregular distribution in the different parts of the image;
    • Irregularly distributed noise;
    • Irregularities in the image background;


One of the characteristics that this method distinguishes from known methods is its recursive scheme for calculation of the enhanced image. In result, the image processing is significantly accelerated.


Some of the differences and advantages of the new method in each of the described stages include:

    • Recursive Locally-Adaptive Wiener Filtration (RLA-WF) of pixels in the sliding window. To calculate the average value of these pixels, a two-dimensional recursive scheme is applied, which adds an advantage by speeding up the calculation of the filtered central pixel of the window. The second advantage of the RLA-WF compared to the known adaptive Wiener filtering is that it is adaptive towards the level of the local variation compared to the global one, in result of which are retained the transitions in the image, while the noise is suppressed;
    • Local contrast enhancement based on new algorithm, called Recursive Sliding Window Contrast Limited Adaptive Histogram Equalization (RSW-CLAHE)—iterative and non-iterative. The algorithm is adaptive towards the local statistics of the pixels framed by the sliding window. For this is first calculated the local histogram, its maximum is limited by using TTS and the so modified histogram is equalized, so that the contrast to be enhanced in a limited range of greyscale values. In comparison the known algorithm SWAHE (Sliding Window Adaptive Histogram Equalization) does not use a limitation of the maximum value of the local histogram in the sliding window. The difference between the offered algorithm and the known CLAHE (Contrast Limited Adaptive Histogram Equalization) is in the fact that CLAHE does not use a sliding window where the image quality to be enhanced in accordance with the local statistics of the framed part of the image. Instead, there are calculated the so-called “conceptual regions in the image” for which CLAHE is applied. The new algorithm RSW-CLAHE differs both from SWAHE and CLAHE in the performance: the calculations in RSW-CLAHE are based on new two-dimensional recursive scheme which accelerates the image processing;
    • Adaptation of RSW-CLAHE towards local statistics of the pixels framed by the sliding window through calculation of an individual threshold CL for clipping the local histogram of the pixels in the window. For this, bilinear interpolation (BLI) at 4 reference values is used to calculate a surface which to define the local threshold CL. The image is divided in advance into non-overlapping blocks and for each, the threshold CL is defined. For each 4 neighbor reference values is performed BLI. Determination of the threshold CL based on the pre-calculated interpolated threshold surface significantly reduces the computational complexity compared to the case where CL is calculated by analyzing the local histogram of the pixels in the sliding window;
    • Sharpness enhancement based on the Fast Recursive Adaptive Unsharp Masking (FRA-UM) method, which differs from the known methods according to the proposed new approaches for controlling the degree of sharpening depending on the local statistics of the pixels in the sliding window around the central pixel. The first scheme is based on two-dimensional recursion, and the second—on one-dimensional recursion, which is performed by a simple algorithm, but requires double scanning of the image. Another difference of the new approach is that it allows to control the sharpness enhancement based on the local statistics in the sliding window around the central pixel;
    • Linear Mixing (LM) the obtained two images is proposed: the first is with filtered noise and enhanced contrast, and the second—with enhanced sharpness. The image, obtained in result, could be with predominance of the first, or of the second image, depending on the users' requirements.


The presented sequence of processing stages is unique and is not used in existing methods.


The result obtained in accordance with the new method depends on the choice of several basic parameters. In this way, easy adaptation is possible to the processed image, which could be of various size and bits per pixel (bpp). Another difference and advantage is that this new method does not cause distortions in the edges of the image, which happen in many other prior art methods.


Due to its low computational complexity, the method could be implemented not only in software, but also in hardware or firmware. The stages of the processing related to the filtration and contrast enhancement on the one hand, and the sharpness enhancement on the other hand, could be executed in parallel, depending of the kind of the used computer platform.


The offered method could be used for single images and/or for each image in Computer Tomography Image (CTI) sequence by using the corresponding most suitable settings of the participating parameters.


Some non-limiting examples of the present subject matter are provided as follows:


In Example 1, a method for enhancing an X-ray dental image is provided. The method may include: applying noise filtration to an input X-ray dental image, including using Recursive Locally-Adaptive Wiener Filtration (RLA-WF) based on a sliding window calculated following a 2-dimensional (2D) recursive scheme; applying contrast enhancement to the input X-ray dental image, using Recursive Sliding Window Contrast Limited Adaptive Histogram Equalization (RSW-CLAHE) utilizing a Truncation Threshold Surface (TTS), and the sliding window to obtain an enhanced output image; applying sharpness enhancement to the input X-ray dental image, using Fast Recursive Adaptive Unsharp Masking (FRA-UM) utilizing the sliding window, to obtain a sharpened image by 2D recursive scheme or a 1-dimensional (1D) recursive scheme based on double scanning of the X-ray dental image; and linearly mixing (LM) the noise filtrated and contrast enhanced X-ray dental image with the sharpness enhanced X-ray dental image using a control coefficient in order to obtain an output X-ray dental image.


In Example 2, the subject matter of Example 1 may optionally further include some or all of:

    • a) calculating a locally-adaptive Wiener filtration based on sliding window and calculation following a new recursive 2D scheme;
    • b) calculating Truncation Threshold Surface (TTS), by which to determine an individual threshold for trimming of the local histogram of the pixels in the sliding window around each current pixel;
    • c) dividing the image into blocks whose size increases for high resolution image;
    • d) calculating an individual threshold for each block;
    • e) evaluating a surface of the individual threshold for each pixel based on bilinear interpolation from each four adjacent blocks, containing this pixel; f) calculating a local histogram of pixels of input image using a sliding window;
    • g) separating the local histogram into parts using a truncation threshold; h) calculating a modified histogram from the parts of the local histogram using an iterative or non-iterative RSW-CLAHE algorithm;
    • i) calculating a new recursive cumulative modified local histogram from the modified histogram;
    • j) calculating a grey level of a first pixel from an enhanced input image based on the recursive cumulative modified local histogram;
    • k) moving a sliding window one position ahead in a horizontal direction to a second pixel;
    • l) repeating the above steps (a-k) for the second and subsequent pixels of the image, wherein the truncation threshold is obtained by using the Truncation Threshold Surface;
    • m) applying a recursive algorithm for image sharpness enhancement using fast recursive adaptive Unsharp masking by new 2D recursive scheme or by simpler new 1D recursive scheme based on double scanning of the image;
    • n) selecting a type of recursion (2D or 1D) depend on the time limits for implementation of calculations;
    • o) performing a linear mixing of de-noised and contrast enhanced pixels and sharpened pixels with different weighting coefficients to obtain an pixels of the output image; and
    • p) selecting of the values of these coefficients by the user depending on his specific requirements.


This document is intended to cover adaptations or variations of the present subject matter. It is to be understood that the above detailed description is intended to be illustrative, and not restrictive. Other embodiments will be apparent to those of skill in the art upon reading and understanding the above description. The scope of the present subject matter should be determined with reference to the appended claims, along with the full scope of legal equivalents to which such claims are entitled.


REFERENCES



  • 1. A. Goharrizi, M. Rezaee, Method and Apparatus for Enhancing Medical Images, U. S. Patent Application Publication No. US 2014/0153793 A1, Jun. 5, 2014.

  • 2. Z. Huo, Z. Lao, F. Xu, Enhanced Visualization for Medical Images, United States Patent, U.S. Pat. No. 8,861,886 B2, Oct. 14, 2014.

  • 3. M. Roomi, G. Ganesan, A Review of Image Contrast Enhancement Methods and Techniques, Research Journal of Applied Sciences, Engineering and Technology 9(5): 309-326, 2015.

  • 4. K. Kamalanand, B. Thayumanavan, P. Mannar Jawahar, Computational Techniques for Dental Image Analysis, IGI Global Publisher, 2019, pages 334, DOI: 10.4018/978-1-5225-6243-6.

  • 5. R. Hummel, Image Enhancement by Histogram Transformation. Computer Graphics and Image Processing, 6, 1977, 184195.

  • 6. C. Rubini, N. Pavithra, Contrast Enhancement of MRI Images using AHE and CLAHE Techniques, International Journal of Innovative Technology and Exploring Engineering, Vol. 9 Issue 2, December 2019.

  • 7. T. Sund, A. Møystad, Sliding Window Adaptive Histogram Equalization of Intra-oral Radiographs: Effect on Diagnostic Quality. Dentomaxillofac Radiology, May 2006, 35(3), pp. 133-138.

  • 8. K. Zuiderveld, Contrast Limited Adaptive Histogram Equalization. In: P. Heckbert, Graphics Gems IV, Academic Press, 1994.

  • 9. H. Zhu, F. H. Chan, and F. K. Lam, Image Contrast Enhancement by Constrained Local Histogram Equalization, Computer Vision and Image Understanding, 1999, 73(2), pp. 281-290, DOI: 10.1006/cviu.1998.0723.

  • 10. Y. Mohamed Y. Abdallah and T. Algahtani. Research in Medical Imaging Using Image Processing Techniques, Book chapter in “Medical Imaging. Principles and Applications”, Y. Zhou (Ed.), IntechOpen, June 2019, DOI: 10.5772/intechopen.84360.

  • 11. S. Amiri, E. Moudi, Image quality enhancement in digital panoramic radiograph, Journal of AI and Data Mining, Vol. 2, No. 1, 2014, 1-6.

  • 12. G. Campos, S. Mastelini, G. Aguiar, R. Mantovani, L. Melo and S. Barbon. Machine learning hyper-parameter selection for Contrast Limited Adaptive Histogram Equalization, EURASIP Journal on Image and Video Processing, 2019, 2019:59, pp. 1-18, DOI: 10.1186/s13640-019-0445-4.

  • 13. V. Georgieva, R. Kountchev, I. Draganov, An Adaptive Enhancement of X-ray Images, Book chapter in “Advances in Intelligent Analysis of Medical Data and Decision Support Systems”, R. Kountchev and B. Iantovics (Eds.), Springer, 2014, pp. 79-88.

  • 14. H. Qassim, N. Basheer, M. Farhan, Brightness Preserving Enhancement for Dental Digital X-ray Images Based on Entropy and Histogram Analysis, Journal of Applied Science and Engineering, Vol. 22, No. 1, pp. 187-194, 2019, DOI: 10.6180/jase.201903_22(1).0019.

  • 15. B. Min, D. Lim, S. Kim, J. Lee, A Novel Method of Determining Parameters of CLAHE based on Image Entropy, International Journal of Software Engineering and Its Applications, Vol. 7, No. 5, 2013, pp. 113-120.

  • 16. K. Kokufuta, T. Maruyama. Real-Time Processing of Contrast Limited Adaptive Histogram Equalization on FPGA. Proceedings of the 2010 International Conference on Field Programmable Logic and Applications, pp. 155-158. IEEE, August 2010, http://ieeexplore.ieee.org/document/5694237/.

  • 17. A. Polesel, G. Ramponi, and V. Mathews. Image Enhancement via Adaptive Unsharp Masking. IEEE Trans. on Image Processing, 9.3. 2000, pp. 505-510.

  • 18. C. Westin, H. Knutsson, R. Kikinis, Adaptive Image Filtering, In “Handbook of Medical Imaging”, I. Bankman (Ed.), Academic Press, 2000, pp. 1-22.

  • 19. D. Thanh, V. Prasath, L. Hieu, A Review on CT and X-Ray Images Denoising Methods, Informatica, 43, 2019, pp. 151-159.

  • 20. F. Jin, P. Fieguth, L. Winger and E. Jernigan, Adaptive Wiener Filtering of Noisy Images and Image Sequences, Proceedings of the International Conference on Image Processing, 14-17 September 2003, Barcelona, Spain, DOI: 10.1109/ICIP.2003.1247253.

  • 21. Y. Zhou, C. Shi, B. Lai, G. Jimenez, Contrast enhancement of medical images using a new version of the World Cup Optimization algorithm, Quantitative Imaging in Medicine and Surgery, Vol 9, No 9 Sep. 2019, pp. 1528-1547, doi: 10.21037/qims.2019.08.19.

  • 22. Sharpness Evaluation Method without Reference Image (Evaluation Index for Image Sharpness) https://www.programmersought.com/article/6056166465.

  • 23. V. Jaya, R. Gopikakumari, IEM: A New Image Enhancement Metric for Contrast and Sharpness Measurements, International Journal of Computer Applications, Vol. 79, No. 9, October 2013, pp. 1-9.


Claims
  • 1. A method, comprising: receiving an input medical image;producing a noise filtrated image by applying recursive noise filtration to the received input medical image;producing a contrast enhanced image by applying recursive contrast enhancement to the received input medical image;producing a sharpened image by applying recursive sharpness enhancement to the received input medical image; andproducing an output medical image by linearly mixing the noise filtrated image and the contrast enhanced image with the sharpened image.
  • 2. The method of claim 1, wherein receiving the input medical image comprises receiving an X-ray image, and producing the output medical image comprises producing an enhanced X-ray image.
  • 3. The method of claim 2, wherein receiving the input medical image comprises receiving a sequence of computer tomography images, and producing the output medical image comprises producing an enhanced image for each image of the sequence of computer tomography images.
  • 4. The method of claim 2, wherein receiving the X-ray image comprises receiving an X-ray dental image, and producing the enhanced X-ray image comprises producing an enhanced X-ray dental image.
  • 5. The method of claim 1, further comprising performing the applications of the recursive noise filtration and the recursive contrast enhancement in parallel with performing the application of the recursive sharpness enhancement.
  • 6. The method of claim 1, wherein linearly mixing the noise filtrated image and the contrast enhanced image with the sharpened image comprises applying weighting coefficients to the noise filtrated image, the contrast enhanced image, and the sharpened image, the weighting coefficients determined based on requirements for the output medical image.
  • 7. The method of claim 1, wherein applying the recursive noise filtration to the received input medical image comprises applying Recursive Locally-Adaptive Wiener Filtration (RLA-WF) based on a sliding window calculated following a 2-dimensional (2D) recursive scheme.
  • 8. The method of claim 7, wherein applying the recursive contrast enhancement to the received input medical image comprises applying Recursive Sliding Window Contrast Limited Adaptive Histogram Equalization (RSW-CLAHE) using a Truncation Threshold Surface (TTS) and the sliding window.
  • 9. The method of claim 8, comprising producing a truncation threshold by calculating the TTS to determine an individual threshold for trimming of the local histogram in the sliding window around the current pixel.
  • 10. The method of claim 8, wherein applying the recursive sharpness enhancement to the received input medical image comprises applying Fast Recursive Adaptive Unsharp Masking (FRA-UM) using the sliding window to obtain the sharpened image by a 2-dimensional (2D) recursive scheme.
  • 11. The method of claim 8, wherein applying the recursive sharpness enhancement to the received input medical image comprises applying Fast Recursive Adaptive Unsharp Masking (FRA-UM) using the sliding window to obtain the sharpened image by 1-dimensional (1D) recursive scheme based on double scanning of the input medical image.
  • 12. An apparatus for enhancing medical images, the apparatus comprising a processor configured to: receive an input medical image;apply recursive noise filtration to the received input medical image to produce a noise filtrated image;apply recursive contrast enhancement to the received input medical image to produce a contrast enhanced image;apply recursive sharpness enhancement to the received input medical image to produce a sharpened image; andlinearly mix the noise filtrated image and the contrast enhanced image with the sharpened image to produce an output medical image.
  • 13. The apparatus of claim 12, wherein the processor is configured to apply Recursive Locally-Adaptive Wiener Filtration (RLA-WF) to the received input medical image to produce the noise filtrated image based on a sliding window calculated following a 2-dimensional (2D) recursive scheme.
  • 14. The apparatus of claim 13, wherein the processor is configured to apply Recursive Sliding Window Contrast Limited Adaptive Histogram Equalization (RSW-CLAHE) to the received input medical image to produce the contrast enhanced image using a Truncation Threshold Surface (TTS) and the sliding window.
  • 15. The apparatus of claim 14, wherein the processor is configured to apply Fast Recursive Adaptive Unsharp Masking (FRA-UM) using the sliding window to obtain the sharpened image by a 2-dimensional (2D) recursive scheme or a 1-dimensional (1D) recursive scheme, the 1D recursive scheme based on double scanning of the input medical image.
  • 16. A non-transitory computer-readable storage medium including instructions, which when executed by a machine, cause the machine to perform a method comprising: receiving an input medical image;producing a noise filtrated image by applying recursive noise filtration to the received input medical image;producing a contrast enhanced image by applying recursive contrast enhancement to the received input medical image;producing a sharpened image by applying recursive sharpness enhancement to the received input medical image; andproducing an output medical image by linearly mixing the noise filtrated image and the contrast enhanced image with the sharpened image.
  • 17. The non-transitory computer-readable storage medium of claim 16, wherein applying the recursive noise filtration to the received input medical image comprises applying Recursive Locally-Adaptive Wiener Filtration (RLA-WF) based on a sliding window calculated following a 2-dimensional (2D) recursive scheme.
  • 18. The non-transitory computer-readable storage medium of claim 17, wherein applying the recursive contrast enhancement to the received input medical image comprises applying Recursive Sliding Window Contrast Limited Adaptive Histogram Equalization (RSW-CLAHE) using a Truncation Threshold Surface (TTS) and the sliding window.
  • 19. The non-transitory computer-readable storage medium of claim 18, wherein applying the recursive sharpness enhancement to the received input medical image comprises applying Fast Recursive Adaptive Unsharp Masking (FRA-UM) using the sliding window to obtain the sharpened image by a 2-dimensional (2D) recursive scheme.
  • 20. The non-transitory computer-readable storage medium of claim 18, wherein applying the recursive sharpness enhancement to the received input medical image comprises applying Fast Recursive Adaptive Unsharp Masking (FRA-UM) using the sliding window to obtain the sharpened image by 1-dimensional (1D) recursive scheme based on double scanning of the input medical image.
CLAIM OF PRIORITY

This application is a continuation of U.S. patent application Ser. No. 17/446,942, filed September 2021, which claims the benefit of priority under 35 U.S.C. § 119(e) of U.S. Provisional Patent Application Ser. No. 62/706,727, filed on Sep. 4, 2020, U.S. Provisional Patent Application Ser. No. 63/200,131, filed on Feb. 16, 2021, and U.S. Provisional Patent Application Ser. No. 63/202,997, filed on Jul. 2, 2021, which are herein incorporated by reference in their entireties.

Provisional Applications (3)
Number Date Country
62706727 Sep 2020 US
63200131 Feb 2021 US
63202997 Jul 2021 US
Continuations (1)
Number Date Country
Parent 17446942 Sep 2021 US
Child 18639239 US