{"name":"napari-aphid","display_name":"Aphid","visibility":"public","icon":"","categories":[],"schema_version":"0.2.0","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"napari-aphid.process_segmentation","title":"Segmentation","python_name":"napari_aphid._widget:process_function_segmentation","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-aphid.save_modification_task","title":"Save annotation","python_name":"napari_aphid._widget:save_modification","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-aphid.process_function_classification","title":"Classification","python_name":"napari_aphid._widget:process_function_classification","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":null,"writers":null,"widgets":[{"command":"napari-aphid.process_segmentation","display_name":"Segmentation","autogenerate":false},{"command":"napari-aphid.save_modification_task","display_name":"Save annotation","autogenerate":false},{"command":"napari-aphid.process_function_classification","display_name":"Classification","autogenerate":false}],"sample_data":null,"themes":null,"menus":{},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.1","name":"napari-aphid","version":"1.1.7","dynamic":null,"platform":null,"supported_platform":null,"summary":"A plugin to classify aphids by stage of development.","description":"# napari-aphid\n\n[![License BSD-3](https://img.shields.io/pypi/l/napari-aphid.svg?color=green)](https://github.com/hereariim/napari-aphid/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-aphid.svg?color=green)](https://pypi.org/project/napari-aphid)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-aphid.svg?color=green)](https://python.org)\n[![tests](https://github.com/hereariim/napari-aphid/workflows/tests/badge.svg)](https://github.com/hereariim/napari-aphid/actions)\n[![codecov](https://codecov.io/gh/hereariim/napari-aphid/branch/main/graph/badge.svg)](https://codecov.io/gh/hereariim/napari-aphid)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-aphid)](https://napari-hub.org/plugins/napari-aphid)\n\nA plugin to classify aphids by stage of development.\n\n----------------------------------\n\nThis [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.\n\n\n\n## Installation\n\nYou can install `napari-aphid` via [pip]:\n\n pip install napari-aphid\n\nTo install latest development version :\n\n pip install git+https://github.com/hereariim/napari-aphid.git\n\n## Description\n\nThis plugin is a tool to count the number of aphids from two models developed on ilastik. Implemented in napari, this tool allows the correction of pixels and labels that are not well \npredicted. \n\nIn this plugin we find our two main parts of the aphid counting model presented in two widgets. A third widget allows to save the updates applied on the segmentation mask.\n\nThis plugin is an use cas, dedicated to private use of french laboratory.\n\n## Plugin input\n\n### Segmentation\n\nThe user must give two objects as input:\n\n- Compressed file in .zip format\n- Ilastik pixel classification model in .ilp format\n\nIn particular, compressed file must be organized as follows:\n\n```\n.\n└── Country.zip\n └── Country\n ├── Area1\n │ ├── Area1.im_1.tif\n │ ├── Area1.im_1.h5\n │ ├── Area1.im_2.tif \n │ ├── Area1.im_2.h5 \n │ ├── Area1.im_3.tif\n │ ├── Area1.im_3.h5\n │ ...\n │ ├── Area1.im_n.tif\n │ └── Area1.im_n.h5\n │\n ├── Area2\n │ ├── Area2.im_1.tif\n │ ├── Area2.im_1.h5\n │ ├── Area2.im_2.tif\n │ ├── Area2.im_2.h5\n │ ├── Area2.im_3.tif\n │ ├── Area2.im_3.h5\n │ ...\n │ ├── Area2.im_n.tif\n │ └── Area2.im_n.h5\n │\n ...\n │\n └── Arean\n ├── Arean.im_1.tif\n ├── Arean.im_1.h5\n ├── Arean.im_2.tif\n ├── Arean.im_2.h5\n ├── Arean.im_3.tif\n ├── Arean.im_3.h5\n ...\n ├── Arean.im_n.tif\n └── Arean.im_n.h5\n```\n\nIn each folder Area1, Area2, ..., Arean, we notice that **each tif image is accompanied by its h5 version**. The images in h5 format were generated by the Export h5 widget of the Ilastik plugin in the ImageJ software.\n\n### Classification\n\nThe user must give the Ilastik object classification model in .ilp format.\n\n## Widget: Image segmentation\n\nThis widget is a tool to segment a set of images. It takes as input a compressed file of images and an ilastik segmentation model. A Run button is used to start the image segmentation process. In the background, the console presents the progress status. This widget returns a menu which is a list of processed images. This list allows an RGB image and its segmentation mask to be displayed in the napari window.\n\n![segmentation_cpe](https://user-images.githubusercontent.com/93375163/212323051-bc84d597-a9ff-46ca-b897-cb18a0e77b4c.png)\n\n**User conduct :** In this widget, the user corrects the image with the annotation tools (brush and eraser only). With the brush, he/she has to add the same colour presented in the image. To obtain this colour, the user can take the color with the color picker tool. With the eraser, he/she erase colour not well predicted. Tous les annotations appliquées dans l'image doit être sauvegarder avec le bouton *Save* du widget **Save modification**\n\n## Widget: Save modification\n\nThis is the backup of the segmentation mask. It saves updates applied to the mask.\n\n## Widget: Object classification\n\nThis widget is a tool to classify segmented images. It takes as input an ilastik object classification model. A Run button is used to start the classification process. In the background, the console shows the progress of the image processing. This widget returns a menu that lists the processed images. This list provides two elements. The first is the display of the selected image in the window. The second is the display of a table that shows the predicted classes for each object.\n\n![classification_cpe](https://user-images.githubusercontent.com/93375163/212323369-32423622-4f41-4dcb-800b-39ff66be67f9.png)\n\n**User conduct :** In this widget, the user corrects labels not well predicted in the table at the bottom right. He must not forget to save his correction with the Save button.\nWhen the user has finished with all his images, he uses the Export button to import a quantitative table. This table contains for each image, the name of the aphid type and its size in pixels.\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-aphid\" 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[Cookiecutter]: https://github.com/audreyr/cookiecutter\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[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\n\n[file an issue]: https://github.com/hereariim/napari-aphid/issues\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":"https://github.com/hereariim/napari-aphid","download_url":null,"author":"Herearii Metuarea","author_email":"herearii.metuarea@gmail.com","maintainer":null,"maintainer_email":null,"license":"BSD-3-Clause","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.8","Programming Language :: Python :: 3.9","Programming Language :: Python :: 3.10","Topic :: Scientific/Engineering :: Image Processing"],"requires_dist":["napari","numpy","magicgui","qtpy","opencv-python-headless","scikit-learn","scikit-image","h5py","matplotlib","pandas","scipy","tox ; extra == 'testing'","pytest ; extra == 'testing'","pytest-cov ; extra == 'testing'","pytest-qt ; extra == 'testing'","napari ; extra == 'testing'","pyqt5 ; extra == 'testing'"],"requires_python":">=3.8","requires_external":null,"project_url":["Bug Tracker, https://github.com/hereariim/napari-aphid/issues","Documentation, https://github.com/hereariim/napari-aphid#README.md","Source Code, https://github.com/hereariim/napari-aphid","User Support, https://github.com/hereariim/napari-aphid/issues"],"provides_extra":["testing"],"provides_dist":null,"obsoletes_dist":null},"npe1_shim":false}