FourierCrop#

PyPI - Version PyPI - Python Version Tests Codecov Read the Docs PyPI - License

Black pre-commit Contributor Covenant

FourierCrop is a Python package that enables downsampling and other operations using Fourier domain cropping techniques. These operations can be used for tasks like reducing resolution or resizing while maintaining spatial coherence.

Features#

  • FFT-based downsampling: Performs cropping in the frequency domain to achieve efficient resizing.

  • Flexible padding options: Allows for center cropping, padding, or combination of both.

  • Multidimensional support: Efficiently handles 2D image or 3D volumetric data.

Quickstart#

Install#

conda create -n fouriercrop python=3.10.13 -y
conda activate fouriercrop
pip install -U fouriercrop
conda install -c conda-forge tk=*=xft_* -y

GUI#

fouriercrop-gui

Credits#

This package was created with Cookiecutter and the fedejaure/cookiecutter-modern-pypackage project template.