compare_orig_wt_masks
- hybrid_learning.experimentation.fuzzy_exp.fuzzy_exp_vis.compare_orig_wt_masks(img_t, masks, masks_trafo=None, label=None, fig_scale=3, verbose=False, axes=None, save_as=None, show_fig=True)[source]
Plot a figure comparing the original
img_t
with the created masks (values in [0,1]). If the list of axes to plot the masks into is given, it must have the length ofmasks
(plus one for the original image ifimg_t
is notNone
).- Parameters
masks_trafo (Optional[Transform]) – transformation to be applied to
masks
before plottingaxes (Optional[List[Axes]]) – list of (column) axes into which to plot the images and masks
save_as (Optional[str]) – see
show_and_save_plot()
show_fig (bool) – see
show_and_save_plot()
img_t (Tensor) –
fig_scale (float) –
verbose (bool) –
- Returns
the plotted figure (the one of
axes
if these are given)- Return type
Figure