# FourierCrop
[](https://pypi.python.org/pypi/fouriercrop)
[](https://pypi.python.org/pypi/fouriercrop)
[](https://github.com/cryoetools/fouriercrop/actions?workflow=tests)
[](https://codecov.io/gh/cryoetools/fouriercrop)
[](https://fouriercrop.readthedocs.io/)
[](https://pypi.python.org/pypi/fouriercrop)
[](https://github.com/psf/black)
[](https://github.com/pre-commit/pre-commit)
[](https://www.contributor-covenant.org/version/2/1/code_of_conduct/)
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.
* GitHub repo:
* Documentation:
* Free software: Apache Software License 2.0
## 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
```bash
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
```bash
fouriercrop-gui
```
## Credits
This package was created with [Cookiecutter][cookiecutter] and the [fedejaure/cookiecutter-modern-pypackage][cookiecutter-modern-pypackage] project template.
[cookiecutter]: https://github.com/cookiecutter/cookiecutter
[cookiecutter-modern-pypackage]: https://github.com/fedejaure/cookiecutter-modern-pypackage