standardize_moments#
- scarlet2.init.standardize_moments(g, obs)[source]#
Standardize the 2nd moments to match the model frame
Adjust the spatial coordinates and deconvolved from the observation PSF to mimic moments measured in the model frame.
- Parameters:
g (
Moments) – 2nd moments, measured in observed frameobs (
Observation) – The Observation instance to derive moments fromcenter (
tuple) – central pixel of the sourcefootprint (
array, optional) – 2D image with non-zero values for all pixels associated with this source (aka a segmentation map or footprint)bbox (
BBox, optional) – box to cut out source from observation, in pixel coordinates
- Returns:
2nd moments, deconvolved, and in the coordinates of the model frame
- Return type:
Moments