Visualization (radionets.plotting.visualization)#
Visualization submodule of radionets.plotting.
Reference/API#
radionets.plotting.visualization Module#
Functions#
|
|
|
Check wether the absolute of the maxmimum or the minimum is bigger. |
|
Compute the ratio of the areas of truth and prediction. |
|
|
|
|
|
Create nice colorbars with bigger label size for every axis in a subplot. |
|
interface of ms-ssim Args: X (torch.Tensor): a batch of images, (N,C,[T,]H,W) Y (torch.Tensor): a batch of images, (N,C,[T,]H,W) data_range (float or int, optional): value range of input images. (usually 1.0 or 255) size_average (bool, optional): if size_average=True, ssim of all images will be averaged as a scalar win_size: (int, optional): the size of gauss kernel win_sigma: (float, optional): sigma of normal distribution win (torch.Tensor, optional): 1-D gauss kernel. if None, a new kernel will be created according to win_size and win_sigma weights (list, optional): weights for different levels K (list or tuple, optional): scalar constants (K1, K2). Try a larger K2 constant (e.g. 0.4) if you get a negative or NaN results. Returns: torch.Tensor: ms-ssim results. |
|
|
|
|
|
Plotting image of the dataset |
|
Plotting the sky image with the fitted gaussian distributian and the related parameters. |
|
|
|
Plot input images, prediction and true image. |
|
Plot input images, prediction, true and diff image of the overall prediction. |
|
|
|
|
|
Reshape 1d arrays into 2d ones. |
|
|
|
|
|
|
|
Visualizes how the target variables are displayed in fourier space. |
|
Visualizing, if the target variables are displayed in fourier space. |