Skip to main content

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.

Project description

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

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

Credits

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fouriercrop-2.0.0.tar.gz (778.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fouriercrop-2.0.0-py3-none-any.whl (777.4 kB view details)

Uploaded Python 3

File details

Details for the file fouriercrop-2.0.0.tar.gz.

File metadata

  • Download URL: fouriercrop-2.0.0.tar.gz
  • Upload date:
  • Size: 778.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fouriercrop-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0677decfb298380f140f1066e2b2dea30524665d0e541e5e02e2e6b5ec1e0e4d
MD5 2f5f090c4f0d535976b009c59968ffc0
BLAKE2b-256 dcf77e2779a4e9af15bbcb850a6d935e0898db44661cb5f2c5cfd18735cbe718

See more details on using hashes here.

Provenance

The following attestation bundles were made for fouriercrop-2.0.0.tar.gz:

Publisher: python-publish.yml on cryoetools/fouriercrop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fouriercrop-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: fouriercrop-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 777.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fouriercrop-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9706902679e489d121757f1bcd6f3022d75347338efb19ee2fc432b9f8e93d3
MD5 5d38cd5b9efa588ca678b6f9cfe0287b
BLAKE2b-256 285c99f60600cd4eb97b7519cc5e0066205688e3f542d602cd753e1f128514e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fouriercrop-2.0.0-py3-none-any.whl:

Publisher: python-publish.yml on cryoetools/fouriercrop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page