{"name":"napari-ft","display_name":"Explore fourier transform","visibility":"public","icon":"","categories":[],"schema_version":"0.2.1","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"napari-ft.fourier_transform_widget","title":"Interactive Fourier Transform Filter","python_name":"napari_ft:FourierTransformWidget","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":null,"writers":null,"widgets":[{"command":"napari-ft.fourier_transform_widget","display_name":"Fourier Transform Filter","autogenerate":false}],"sample_data":null,"themes":null,"menus":{},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.4","name":"napari-ft","version":"0.1.0","dynamic":["license-file"],"platform":null,"supported_platform":null,"summary":"A simple plugin to interact with images Fourier transforms","description":"# napari-ft\n\n[![License BSD-3](https://img.shields.io/pypi/l/napari-ft.svg?color=green)](https://github.com/jules-vanaret/napari-ft/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-ft.svg?color=green)](https://pypi.org/project/napari-ft)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-ft.svg?color=green)](https://python.org)\n[![tests](https://github.com/jules-vanaret/napari-ft/workflows/tests/badge.svg)](https://github.com/jules-vanaret/napari-ft/actions)\n[![codecov](https://codecov.io/gh/jules-vanaret/napari-ft/branch/main/graph/badge.svg)](https://codecov.io/gh/jules-vanaret/napari-ft)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-ft)](https://napari-hub.org/plugins/napari-ft)\n[![npe2](https://img.shields.io/badge/plugin-npe2-blue?link=https://napari.org/stable/plugins/index.html)](https://napari.org/stable/plugins/index.html)\n[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json)](https://github.com/copier-org/copier)\n\nA napari plugin for interactive Fourier transform filtering\n\n----------------------------------\n\nThis [napari] plugin was generated with [copier] using the [napari-plugin-template] (None).\n\n## Features\n\n**Interactive Fourier Transform Filter Widget**\n\nThis widget allows you to:\n- Select a 2D image from the napari viewer\n- View its FFT-shifted Fourier transform (log magnitude) in the widget\n- Interactively draw rectangular or circular regions on the Fourier transform\n  - **Left-click and drag**: Create inclusion regions (frequencies to keep)\n  - **Right-click and drag**: Create exclusion regions (frequencies to remove)\n  - **Middle-click and drag**: Pan the view\n  - **Mouse wheel**: Zoom in/out\n- Toggle between rectangle and circle shape modes\n- Apply inverse Fourier transform with frequency masking\n- See real-time updates of the filtered image as you draw new regions\n- Reset boxes or view independently\n\nThe filtered image automatically updates as you draw, providing immediate visual feedback. The widget tracks changes to the source image data and scale, keeping everything synchronized.\n\n### How to Use\n\n1. Load a 2D image into napari viewer\n2. Open the widget: `Plugins -> napari-ft -> Fourier Transform Filter`\n3. Select your image from the dropdown menu\n4. The FFT-shifted Fourier transform appears in the widget\n5. Draw regions on the Fourier transform:\n   - Left-click and drag to select frequencies to keep\n   - Right-click and drag to exclude specific frequencies\n   - Use \"Shape\" button to toggle between rectangles and circles\n6. The filtered image appears automatically and updates in real-time\n7. Use mouse wheel to zoom, middle-click to pan\n8. Click \"Reset Boxes\" to clear all regions or \"Reset View\" to reset zoom/pan\n\n## Installation\n\nYou can install `napari-ft` via [pip]:\n\n```\npip install napari-ft\n```\n\nIf napari is not already installed, you can install `napari-ft` with napari and Qt via:\n\n```\npip install \"napari-ft[all]\"\n```\n\n## Testing\n\nTo test the widget, run the included test script:\n\n```bash\npython test_ft_widget.py\n```\n\nThis will open napari with a test image containing multiple frequency components.\n\n\n\n## Contributing\n\nContributions are very welcome. Tests can be run with [tox], please ensure\nthe coverage at least stays the same before you submit a pull request.\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"napari-ft\" is free and open source software\n\n## Issues\n\nIf you encounter any problems, please [file an issue] along with a detailed description.\n\n[napari]: https://github.com/napari/napari\n[copier]: https://copier.readthedocs.io/en/stable/\n[@napari]: https://github.com/napari\n[MIT]: http://opensource.org/licenses/MIT\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\n[napari-plugin-template]: https://github.com/napari/napari-plugin-template\n\n[napari]: https://github.com/napari/napari\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n","description_content_type":"text/markdown","keywords":null,"home_page":null,"download_url":null,"author":"jules-vanaret","author_email":"jules.vanaret@epfl.ch","maintainer":null,"maintainer_email":null,"license":"Copyright (c) 2025, jules-vanaret\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of copyright holder nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","classifier":["Development Status :: 2 - Pre-Alpha","Framework :: napari","Intended Audience :: Developers","License :: OSI Approved :: BSD License","Operating System :: OS Independent","Programming Language :: Python","Programming Language :: Python :: 3","Programming Language :: Python :: 3 :: Only","Programming Language :: Python :: 3.10","Programming Language :: Python :: 3.11","Programming Language :: Python :: 3.12","Programming Language :: Python :: 3.13","Topic :: Scientific/Engineering :: Image Processing"],"requires_dist":["numpy","magicgui","qtpy","scikit-image","napari[all]; extra == \"all\""],"requires_python":">=3.10","requires_external":null,"project_url":null,"provides_extra":["all"],"provides_dist":null,"obsoletes_dist":null},"npe1_shim":false}