Skip to main content
. 2020 Jan 25;22(2):145. doi: 10.3390/e22020145
Algorithm 2: Extraction and recovery pseudocode
foreach block bi in T do
  if HmLm 4 then   /* non-embeddable block */
    Do nothing; 
  else if bi is first embeddable block then
    get the dictionary D number;
  else
    foreach pixel xi in bi do
      get the first Hm and Lm;
      if xi=Hm then
       Pv=xiHm;
      else
       Pv=xiLm;
      end
      find the symbol Sp in D;
      S=S+Sp;
    end
  end
end