diffusion_models.spine_dataset.spatial_transformer.gauss_gen3D

diffusion_models.spine_dataset.spatial_transformer.gauss_gen3D(n=10, s=5, sigma=3)[source]

Generate blur kernel.

Parameters:
  • n (int, optional) – mean of gaussian. Defaults to 10.

  • s (int, optional) – steps where value is defined. Defaults to 5.

  • sigma (int, optional) – sigma of the gaussian. Defaults to 3.

Returns:

blur_kernel

Return type:

torch.Tensor