tomodrgn.commands.downsample.downsample_images#
- downsample_images(batch_original: Tensor, start: int, stop: int) Tensor [source]#
Downsample a batch of real space images by Fourier cropping.
- Parameters:
batch_original – tensor of real space images, shape (batchsize, boxsize_old, boxsize_old)
start – image pixel index at which to begin including Fourier frequencies in Fourier cropped output
stop – image pixel index at which to stop including Fourier frequencies in Fourier cropped output
- Returns:
tensor of real space images after downsampling, shape (batchsize, boxsize_new, boxsize_new)