Skip to main content
. 2024 Jul 29;24(15):4909. doi: 10.3390/s24154909
Algorithm 2 Information filling.
  • 1:

    if |indexj1,k1indexj2,k2|>threshold3 then

  • 2:

       for every pixel pixpj,pk belongs to Bj1,k1 or Bj2,k2 do

  • 3:

         The corresponding pixel value in every source image is vi,pj,pk

  • 4:

         if ppj,pk belongs to Bj1,k1 then

  • 5:

            d=pixindexpj,pk; x=indexj2,k2

  • 6:

            if vd,pj,pk<threshold4 AND vd,pj,pk<vx,pj,pk then

  • 7:

              pixindexpj,pk=x

  • 8:

            end if

  • 9:

         else

  • 10:

            d=pixindexpj,pk; x=indexj1,k1

  • 11:

            if vd,pj,pk<threshold4 AND vd,pj,pk<vx,pj,pk then

  • 12:

              pixindexpj,pk=x

  • 13:

            end if

  • 14:

         end if

  • 15:

       end for

  • 16:

    end if