Skip to main content
. 2022 Feb 11;8(2):43. doi: 10.3390/jimaging8020043
Algorithm 1 Single Input-Sequential Processing
  1. Read input image I(x, y)

  2. Compute the histogram h(i), i = 0, …., 255 for I(x, y)

  3. for t = 1: 255 do

  4. Compute μ1(t) using filtering approach ∈ technique (i) (see Figure 3).

  5. Compute μ2(t) using filtering approach ∈ technique (j) (see Figure 3)

  6. Compute the objective function n(t) in Equation (4).

  7. Find the optimal t* which minimize n(t).

  8. End for.

  9. return t*

  10. Output image g(x, y).

  • For other mean filters approaches:

Compute μ1(t) and μ2(t) according to their equations (see Table 2)