Background removal starts from matching pixels on the four image borders and traverses four-connected neighbors within the configured RGB tolerance. Only the connected region becomes transparent; a disconnected interior region with the same color remains intact.
When transparentAsEmpty is enabled, transparent pixels become -1 cells in
the project grid.