Skip to main content
. 2021 Apr 13;21(8):2740. doi: 10.3390/s21082740
Algorithm 1: Translation process of the colors belonging to the set V
Inputs: The sets V, ΦV, CLD; Output: The set Vrec
Set |ΦV|0=|ΦV| and |CLD|0=|CLD|
While|ΦV|>0and|CLD|>0do
  •  1.

    Apply Equation (13) to estimate the vΦV with the highest rank.

  •  2.

    Apply Equation (14) to identify the confusion line LCLD, which is closer to v.

  •  3.

    Apply Equation (15) to translate the color v to its projection point v,tr lying on L.

  •  4.

    Apply Equation (16) to update the set ΦV

  •  5.

    Apply Equation (17) to update the set CLD

End While
  •  6.

    Apply Equation (18) to recolor the elements of V and form the recolored set Vrec in Equation (19)