Skip to main content
. 2022 Oct 14;22(20):7812. doi: 10.3390/s22207812
Algorithm 1: MMKCF
  • Input: 

    The video frame, It; Initial bounding box of the target, bb;

  • Output:  

    The target position predicted by the tracker, p;

  •   1:

    whileItdo

  •   2:

        if t==1 then

  •   3:

            [a^0,X0]=initialize(I1,bb)

  •   4:

        else

  •   5:

            if 1<tγ then

  •   6:

               for i=size(It)×(1ε) to size(It)×(1+ε) do

  •   7:

                   [max_responsei,p(i)]=kernel_correlation_filter(It,a^t,Xt)

  •   8:

               end for

  •   9:

               a^t+1=1μa^t+μa^tXt+1=1μXt+μXt

  • 10:

               C+=maxmax_response

  • 11:

            else

  • 12:

               for i=size(It)*(1ε):size(It)*(1+ε) do

  • 13:

                   [max_responsei,p(i)]=kernel_correlation_filter(It,a^t,Xt)

  • 14:

               end for

  • 15:

               if maxmax_response(βt=θ·Ctt) then

  • 16:

                   a^t+1=a^tXt+1=Xt

  • 17:

               else

  • 18:

                   a^t+1=1μa^t+μa^tXt+1=1μXt+μXt

  • 19:

                   C+=maxmax_response

  • 20:

                   p=max(p)

  • 21:

               end if

  • 22:

            end if

  • 23:

        end if

  • 24:

    end while