tfmri.image

Image processing operations.

Classes

Functions

extract_glimpses

Extract glimpses (patches) from a tensor at the given offsets.

gmsd

Computes the gradient magnitude similarity deviation (GMSD).

gmsd2d

Computes the gradient magnitude similarity deviation (GMSD).

gmsd3d

Computes the gradient magnitude similarity deviation (GMSD).

gradient_magnitude

Computes the gradient magnitude (GM) of an image.

image_gradients

Computes image gradients.

phantom

Generates a phantom image.

psnr

Computes the peak signal-to-noise ratio (PSNR) between two N-D images.

psnr2d

Computes the peak signal-to-noise ratio (PSNR) between two 2D images.

psnr3d

Computes the peak signal-to-noise ratio (PSNR) between two 3D images.

ssim

Computes the structural similarity index (SSIM) between two N-D images.

ssim2d

Computes the structural similarity index (SSIM) between two 2D images.

ssim2d_multiscale

Computes the multiscale SSIM (MS-SSIM) between two 2D images.

ssim3d

Computes the structural similarity index (SSIM) between two 3D images.

ssim3d_multiscale

Computes the multiscale SSIM (MS-SSIM) between two 3D images.

ssim_multiscale

Computes the multiscale SSIM (MS-SSIM) between two N-D images.

total_variation

Calculate and return the total variation along the specified axes.