prose.core.source.ExtendedSource.from_region#

classmethod ExtendedSource.from_region(region, keep_region: bool = False, **kwargs)#

Source from region

Parameters:
  • region (skimage.measure.RegionProperties) – An skimage RegionProperties containing the source

  • keep_region (bool, optional) – whether to keep region object in source

  • **kwargs – other sources attributes to set