calculate_image_list_frequency_moments
- ska_sdp_func_python.image.taylor_terms.calculate_image_list_frequency_moments(im_list: List[Image], reference_frequency=None, nmoment=1) Image [source]
Calculate frequency weighted moments of an image list.
The frequency moments are calculated using:
\[w_k = \left(\left(\nu - \nu_{ref}\right) / \nu_{ref}\right)^k\]Note that the spectral axis is replaced by a MOMENT axis.
For example, to find the moments and then reconstruct from just the moments:
moment_cube = calculate_image_frequency_moments(model_multichannel, nmoment=5) reconstructed_cube = calculate_image_from_frequency_moments(model_multichannel, moment_cube)
- Parameters:
im_list – List of images
reference_frequency – Reference frequency (default None uses average)
nmoment – Number of moments to calculate
- Returns:
Moments Image