Skip to main content
. 2017 Oct 25;17(11):2442. doi: 10.3390/s17112442
Algorithm 1 Sequence matching using feature CSLBP++GIST.
Inputs:
  {Ijtrain}j=1Ntrain {training images}; {Iitest}i=1Ntest {testing images };
  Ntrain,Ntest {training and testing images numbers}; Llength {Sequence length};
Outputs:
  D{distance matrix};
Algorithm:
  / TRAINING PHASE /
  for j← 1 to Ntrain/Llength do
  FjtrainfCSLBP++fGIST;//Feature of training sequence.
  end for
  / TESTING PHASE /
  /∗ Sequence matching based on feature sequences; Section 3.2 ∗/
  for i← 1 to Ntest/Llength do
  FitestfCSLBP++fGIST;//Feature of testing sequence.
  for j← 1 to Ntrain/Llength do
   Di,jk((Fitest)k(Fjtrain)k)2|(Fitest)k+(Fjtrain)k|; //k is the index of the components of feature vector (See Equation (7)).
  end for
  end for