image_gather_facets
- ska_sdp_func_python.image.gather_scatter.image_gather_facets(image_list: List[Image], im: Image, facets=1, overlap=0, taper=None, return_flat=False)[source]
Gather a list of subimages back into an image using the image_raster_iterator.
If the overlap is greater than zero, we choose to keep all images the same size so the other ring of facets is ignored. So if facets=4 and overlap > 0 then the gather expects \((facets-2)^2 = 4\) images.
To normalise the overlap we make a set of flats, gather that and divide. The flat may be optionally returned instead of the result.
- Parameters:
image_list – List of subimages
im – Output Image
facets – Number of image partitions on each axis (2)
overlap – Overlap between neighbours in pixels
taper – Taper at edges None or ‘linear’ or ‘Tukey’
return_flat – Return the flat
- Returns:
list of subimages