Skip to main content

Individual tree segmentation

Project description

🌳 Segtree

License BSD-3 PyPI Python Version tests codecov napari hub npe2 Copier

Segtree is a plugin designed for the segmentation of individual trees from imagery. It isolates tree in ovelapping tree context.

Input: RGB images or preprocessed point clouds.

Output: Binary masks of segmentated tree.

alt text

How it works

The user provides as input a color image and, optionally, a trunk detector mask. With a single click, the plugin automatically places prompt points on the detected trunk labels. These prompts are then used by SAM2 HQ (Segment Anything Model v2, High Quality mode) to segment the tree foliage associated with each trunk.

alt text

Article : Individual Segmentation of Intertwined Apple Trees in a Row via Prompt Engineering

METUAREA, Herearii, LAURENS, François, GUERRA, Walter, et al. Individual Segmentation of Intertwined Apple Trees in a Row via Prompt Engineering. Sensors, 2025, vol. 25, no 15, p. 4721.

Citing segtree

If you find segtree useful in your research, please star ⭐ this repository and consider citing 📝:

@article{metuarea2025individual,
  title={Individual Segmentation of Intertwined Apple Trees in a Row via Prompt Engineering},
  author={Metuarea, Herearii and Laurens, Fran{\c{c}}ois and Guerra, Walter and Lozano, Lidia and Patocchi, Andrea and Van Hoye, Shauny and Dutagaci, Helin and Labrosse, Jeremy and Rasti, Pejman and Rousseau, David},
  journal={Sensors},
  volume={25},
  number={15},
  pages={4721},
  year={2025},
  publisher={MDPI}
}

Installation

You can install segtree via pip:

pip install segtree

To install latest development version :

pip install git+https://github.com/hereariim/segtree.git

Contact

Imhorphen team, bioimaging research group

42 rue George Morel, Angers, France

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "segtree" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

orchardseg-0.0.1.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

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

orchardseg-0.0.1-py3-none-any.whl (6.2 MB view details)

Uploaded Python 3

File details

Details for the file orchardseg-0.0.1.tar.gz.

File metadata

  • Download URL: orchardseg-0.0.1.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for orchardseg-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8120d2f3a05680d681ae299e845f4671459543b8fd62a996285ef09eaf5eac2d
MD5 333b7cb277c576e219ae5e8bd28abf0f
BLAKE2b-256 07c3d282b7ea6b064799c6b3c295437383114e396640f7616731da507989930a

See more details on using hashes here.

File details

Details for the file orchardseg-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: orchardseg-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for orchardseg-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75ec3188c040f9a8128a7c09c9c480577c8893c78f14ad85d5dec4f325b76e56
MD5 150e2a0479592103c47f78b092ea0fa4
BLAKE2b-256 68139dfce63b628d64e73f21e0e5a393be5aee7555d82f5c9b99da5c22505fae

See more details on using hashes here.

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