prose.core.source.TraceSource.from_region#

classmethod TraceSource.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