for   𝑖 = 1 to 𝑊   do
for   𝑗 = 1 to 𝑊   do
  if   𝐁 𝑙 𝑖 , 𝑗 𝐁 𝑟 𝑖 , 𝑗   then
   set   𝐁 𝑖 , 𝑗   to 1
  end if
end for
end for
Algorithm 2: The final binary map calculation.