Visualisation routine#
Code author: Wilfried Mercier - LAM <wilfried.mercier@lam.fr>
Visualization routine of the ouput of substructure detection.
- plot_im_residuals(image, res, mask, segmap, band, idd, z, bg_mask=None, cmap='plasma', plotPath='', zoom_bounds=None, bulge_params=[])[source]#
Code author: Wilfried Mercier - LAM <wilfried.mercier@lam.fr>
Produce a plot with image, model, and residuals, showing the substructure segmentation map.
- Parameters:
image (NDArray) – image of the galaxy in the given band
res (NDArray) – residual image
mask (NDArray) – segmentation mask with
Truecorresponding to the galaxy andFalseoutside of the galaxysegmap (NDArray) – substructure segmentation map
band (
str) – band for this imageidd (
int) – ID of the galaxyz (
float) – redshift of the galaxybg_mask (NDArray) – mask with
Truefor the background pixels andFalseotherwisecmap (
stror Colormap) – colormap used for the image and modelplotPath (
str) – output path for the figurezoom_bounds (
(int, int, int, int)orNone) – list of bounds (ymin, ymax, xmin, xmax) to zoom-in on the plots. IfNone, there is no zoom.bulge_params (
list) – list of parameters to plot the bulge mask on top of the image. Parameters are: [x position, y position, radius in \(\rm pixels\)]
- Return type:
None