-
craftutils.observation.epoch.ImagingEpoch.frame_class.generate_segmap(ext: int =
0, threshold: float =4, method='sep', margins: tuple =(None, None, None, None), min_area: int =5, output_path: str | None =None, **background_kwargs) Generate a segmentation map of the image in which the image is broken into segments according to detected sources. Each source is assigned an integer, and the segmap has the same spatial dimensions as the input image.