This tool will identify all grid cells situated along the edges of patches or class features within an input raster (input
). Edge cells in the output raster (output
) will have the patch identifier value assigned in the corresponding grid cell. All non-edge cells will be assigned zero in the output raster. Patches (or classes) are designated by positive, non-zero values in the input image. Zero-valued and NoData-valued grid cells are interpreted as background cells by the tool.
def find_patch_edge_cells(self, raster: Raster) -> Raster: ...