
Identify background range polygons
Source:R/giotto_structures.R
dot-identify_background_range_polygons.Rdfunction to remove background polygon by comparing individual
polygon vertex xy ranges against the overall SpatVector extent. Each
SpatVector that this function is run on MUST contain only those polygons
that were generated as part of the same FOV. This is because the individual
polygons are compared against the overall extent which is assumed to be
roughly that of the original mask image.