hpmcm.footprint module
- class hpmcm.footprint.Footprint(image, slices)[source]
Bases:
objectWraps the slices returns by ndimage.find_objects
- Parameters:
image (np.ndarray)
slices (tuple[slice, slice])
- image
Original image
- Type:
np.ndaray
- slice_x
Slice of footprint in X
- Type:
slice
- slice_y
Slice of footprint in Y
- Type:
slice
- cutout
Image cutout
- Type:
np.ndaray
- class hpmcm.footprint.FootprintSet(image, fp_key, footprints)[source]
Bases:
objectWraps Footprints detected by photutils.segmentation.detect_sources
- Parameters:
image (np.ndarray)
fp_key (np.ndarray)
footprints (list[Footprint])
- image
Original image
- Type:
np.ndarray
- fp_key
Map of footprint associations: -1 -> no association
- Type:
np.ndarray
- classmethod detect(image)[source]
Create a FootprintSet from a countsMap
- Return type:
- Parameters:
image (ndarray) – Original image (counts map of source positions)
- Return type:
Newly created FootprintSet