function E = edges(L, s)

for j = 1:size(L, 1)
  for k = 1:size(L, 2)
    if abs(L(j, k)) < s
      E(j, k) = 2;
    else
      E(j, k) = 1;
    end
  end
end
