fvc3d 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fvc3d-0.1.1/.gitignore +225 -0
- fvc3d-0.1.1/CITATION.cff +103 -0
- fvc3d-0.1.1/LICENSE +21 -0
- fvc3d-0.1.1/PKG-INFO +113 -0
- fvc3d-0.1.1/PYPI_README.md +81 -0
- fvc3d-0.1.1/README.md +180 -0
- fvc3d-0.1.1/configs/classes.yaml +50 -0
- fvc3d-0.1.1/configs/transfer_labels.yaml +36 -0
- fvc3d-0.1.1/examples/transfer_labels.py +78 -0
- fvc3d-0.1.1/pyproject.toml +84 -0
- fvc3d-0.1.1/src/fvc3d/__init__.py +61 -0
- fvc3d-0.1.1/src/fvc3d/classes.py +237 -0
- fvc3d-0.1.1/src/fvc3d/io.py +261 -0
- fvc3d-0.1.1/src/fvc3d/label_transfer.py +147 -0
- fvc3d-0.1.1/src/fvc3d/pipeline.py +391 -0
- fvc3d-0.1.1/src/fvc3d/quality_control.py +206 -0
- fvc3d-0.1.1/src/fvc3d/refinement.py +436 -0
- fvc3d-0.1.1/src/fvc3d/registration.py +226 -0
fvc3d-0.1.1/.gitignore
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
#env. name
|
|
2
|
+
fvc_structure
|
|
3
|
+
|
|
4
|
+
#folders to ignore
|
|
5
|
+
phase_3_models/binaryClasses/checkpoints
|
|
6
|
+
phase_3_models/lightning_logs/
|
|
7
|
+
assets/
|
|
8
|
+
libnabo/
|
|
9
|
+
libs/
|
|
10
|
+
phase_3_2D_imagery_prep/*
|
|
11
|
+
!phase_3_2D_imagery_prep/REPRODUCIBILITY.md
|
|
12
|
+
!phase_3_2D_imagery_prep/phase3_config.py
|
|
13
|
+
!phase_3_2D_imagery_prep/imagery_prep.py
|
|
14
|
+
!phase_3_2D_imagery_prep/configs/
|
|
15
|
+
phase_3_2D_imagery_prep/configs/*
|
|
16
|
+
!phase_3_2D_imagery_prep/configs/imagery_prep_job.example.yml
|
|
17
|
+
phase_4_3D_lidar_prep/configs/*.local.yml
|
|
18
|
+
phase_5_3d_cnn_training/configs/*.local.yml
|
|
19
|
+
!phase_3_2D_imagery_prep/tests/
|
|
20
|
+
raycloudtools/
|
|
21
|
+
|
|
22
|
+
# ForestFormer3D: keep code tracked, ignore generated artifacts/data
|
|
23
|
+
ForestFormer3D/.dist_test/
|
|
24
|
+
ForestFormer3D/work_dirs/
|
|
25
|
+
ForestFormer3D/predictions_global/
|
|
26
|
+
ForestFormer3D/data/ForAINetV2/forainetv2_instance_data/
|
|
27
|
+
ForestFormer3D/data/ForAINetV2/points/
|
|
28
|
+
ForestFormer3D/data/ForAINetV2/instance_mask/
|
|
29
|
+
ForestFormer3D/data/ForAINetV2/semantic_mask/
|
|
30
|
+
ForestFormer3D/data/ForAINetV2/forainetv2_oneformer3d_infos_train.pkl
|
|
31
|
+
ForestFormer3D/data/ForAINetV2/forainetv2_oneformer3d_infos_val.pkl
|
|
32
|
+
ForestFormer3D/data/ForAINetV2/forainetv2_oneformer3d_infos_test.pkl
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
app/static/css/
|
|
36
|
+
app/static/sass/
|
|
37
|
+
|
|
38
|
+
# Node artifact files
|
|
39
|
+
node_modules/
|
|
40
|
+
dist/
|
|
41
|
+
|
|
42
|
+
# Byte-compiled / optimized / DLL files
|
|
43
|
+
# phase_3_models/unet_model_5b/model/__pycache__
|
|
44
|
+
**/__pycache__/
|
|
45
|
+
*.py[cod]
|
|
46
|
+
*$py.class
|
|
47
|
+
|
|
48
|
+
# C extensions
|
|
49
|
+
*.so
|
|
50
|
+
|
|
51
|
+
# Distribution / packaging
|
|
52
|
+
.Python
|
|
53
|
+
build/
|
|
54
|
+
develop-eggs/
|
|
55
|
+
dist/
|
|
56
|
+
downloads/
|
|
57
|
+
eggs/
|
|
58
|
+
.eggs/
|
|
59
|
+
lib/
|
|
60
|
+
lib64/
|
|
61
|
+
parts/
|
|
62
|
+
sdist/
|
|
63
|
+
var/
|
|
64
|
+
wheels/
|
|
65
|
+
pip-wheel-metadata/
|
|
66
|
+
share/python-wheels/
|
|
67
|
+
*.egg-info/
|
|
68
|
+
.installed.cfg
|
|
69
|
+
*.egg
|
|
70
|
+
MANIFEST
|
|
71
|
+
|
|
72
|
+
# PyInstaller
|
|
73
|
+
# Usually these files are written by a python script from a template
|
|
74
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
75
|
+
*.manifest
|
|
76
|
+
*.spec
|
|
77
|
+
|
|
78
|
+
# Installer logs
|
|
79
|
+
pip-log.txt
|
|
80
|
+
pip-delete-this-directory.txt
|
|
81
|
+
|
|
82
|
+
# Unit test / coverage reports
|
|
83
|
+
htmlcov/
|
|
84
|
+
.tox/
|
|
85
|
+
.nox/
|
|
86
|
+
.coverage
|
|
87
|
+
.coverage.*
|
|
88
|
+
.cache
|
|
89
|
+
nosetests.xml
|
|
90
|
+
coverage.xml
|
|
91
|
+
*.cover
|
|
92
|
+
.hypothesis/
|
|
93
|
+
.pytest_cache/
|
|
94
|
+
|
|
95
|
+
#images
|
|
96
|
+
*.png
|
|
97
|
+
!docs/figures/phase1-dsm.png
|
|
98
|
+
!docs/figures/phase2-coregistration.png
|
|
99
|
+
!docs/figures/phase3-imagery-tiles.png
|
|
100
|
+
!docs/figures/phase3-label-quality.png
|
|
101
|
+
!docs/figures/phase4-height-model.png
|
|
102
|
+
!docs/figures/phase4-mask-points.png
|
|
103
|
+
!docs/figures/phase4-ground-height.png
|
|
104
|
+
!docs/figures/phase5-model-arrays.png
|
|
105
|
+
!docs/figures/segmentanytree-medium-l1-f1-coverage.png
|
|
106
|
+
!docs/figures/Logo_SotomayorStudio.png
|
|
107
|
+
|
|
108
|
+
# GIS extensions
|
|
109
|
+
*.aux.xml
|
|
110
|
+
*.aux
|
|
111
|
+
*.xml
|
|
112
|
+
.tif
|
|
113
|
+
*.tif
|
|
114
|
+
|
|
115
|
+
*.copc.laz
|
|
116
|
+
|
|
117
|
+
# Translations
|
|
118
|
+
*.mo
|
|
119
|
+
*.pot
|
|
120
|
+
|
|
121
|
+
# Django stuff:
|
|
122
|
+
*.log
|
|
123
|
+
local_settings.py
|
|
124
|
+
db.sqlite3
|
|
125
|
+
|
|
126
|
+
# Flask stuff:
|
|
127
|
+
instance/
|
|
128
|
+
.webassets-cache
|
|
129
|
+
|
|
130
|
+
# Scrapy stuff:
|
|
131
|
+
.scrapy
|
|
132
|
+
|
|
133
|
+
# Sphinx documentation
|
|
134
|
+
docs/_build/
|
|
135
|
+
|
|
136
|
+
# PyBuilder
|
|
137
|
+
target/
|
|
138
|
+
|
|
139
|
+
# Jupyter Notebook
|
|
140
|
+
.ipynb_checkpoints
|
|
141
|
+
|
|
142
|
+
# IPython
|
|
143
|
+
profile_default/
|
|
144
|
+
ipython_config.py
|
|
145
|
+
|
|
146
|
+
# pyenv
|
|
147
|
+
.python-version
|
|
148
|
+
!ForestFormer3D/.python-version
|
|
149
|
+
!ForestFormer3D/app_deploy/.python-version
|
|
150
|
+
|
|
151
|
+
# pipenv
|
|
152
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
153
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
154
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
155
|
+
# install all needed dependencies.
|
|
156
|
+
#Pipfile.lock
|
|
157
|
+
|
|
158
|
+
# celery beat schedule file
|
|
159
|
+
celerybeat-schedule
|
|
160
|
+
|
|
161
|
+
# SageMath parsed files
|
|
162
|
+
*.sage.py
|
|
163
|
+
|
|
164
|
+
# Environments
|
|
165
|
+
.env
|
|
166
|
+
.venv
|
|
167
|
+
env/
|
|
168
|
+
venv/
|
|
169
|
+
ENV/
|
|
170
|
+
env.bak/
|
|
171
|
+
venv.bak/
|
|
172
|
+
|
|
173
|
+
# Spyder project settings
|
|
174
|
+
.spyderproject
|
|
175
|
+
.spyproject
|
|
176
|
+
|
|
177
|
+
# Rope project settings
|
|
178
|
+
.ropeproject
|
|
179
|
+
|
|
180
|
+
# mkdocs documentation
|
|
181
|
+
/site
|
|
182
|
+
|
|
183
|
+
# mypy
|
|
184
|
+
.mypy_cache/
|
|
185
|
+
.dmypy.json
|
|
186
|
+
dmypy.json
|
|
187
|
+
|
|
188
|
+
# Pyre type checker
|
|
189
|
+
.pyre/
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
# models to ignore
|
|
193
|
+
*.ckpt
|
|
194
|
+
*.yaml
|
|
195
|
+
!configs/transfer_labels.yaml
|
|
196
|
+
!configs/classes.yaml
|
|
197
|
+
*checkpoint*
|
|
198
|
+
*.tfevents.*
|
|
199
|
+
*events.out*
|
|
200
|
+
|
|
201
|
+
*.txt*
|
|
202
|
+
*.pt*
|
|
203
|
+
*.parquet
|
|
204
|
+
*.json*
|
|
205
|
+
!.zenodo.json
|
|
206
|
+
*.csv*
|
|
207
|
+
*.html*
|
|
208
|
+
|
|
209
|
+
!ForestFormer3D/app_deploy/requirements.txt
|
|
210
|
+
!ForestFormer3D/app_deploy/runtime.txt
|
|
211
|
+
!ForestFormer3D/app_deploy/index.html
|
|
212
|
+
!ForestFormer3D/requirements.txt
|
|
213
|
+
!ForestFormer3D/runtime.txt
|
|
214
|
+
!docs/index.html
|
|
215
|
+
!docs/forest-qualitative-viewer.html
|
|
216
|
+
|
|
217
|
+
*.npy*
|
|
218
|
+
*.ply*
|
|
219
|
+
*.bin
|
|
220
|
+
*.npz
|
|
221
|
+
*.las
|
|
222
|
+
*.db
|
|
223
|
+
|
|
224
|
+
# Weights & Biases
|
|
225
|
+
wandb/
|
fvc3d-0.1.1/CITATION.cff
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: >-
|
|
3
|
+
If you use this software, please cite the paper that describes it
|
|
4
|
+
(preferred citation below).
|
|
5
|
+
title: "fvcStructureRangeland3D: 2D-to-3D label transfer and 3D vegetation model benchmarking for rangelands"
|
|
6
|
+
type: software
|
|
7
|
+
authors:
|
|
8
|
+
- family-names: Sotomayor
|
|
9
|
+
given-names: Laura N.
|
|
10
|
+
orcid: "https://orcid.org/0000-0001-9791-2193"
|
|
11
|
+
affiliation: University of Tasmania
|
|
12
|
+
version: "0.1.1"
|
|
13
|
+
date-released: "2026-11-28"
|
|
14
|
+
abstract: >-
|
|
15
|
+
Python software and workflow for transferring 2D vegetation growth-form
|
|
16
|
+
labels into georeferenced 3D UAS LiDAR point clouds (fvc3d package), and for
|
|
17
|
+
preparing the labelled tiles used to benchmark 3D vegetation models in
|
|
18
|
+
semi-arid rangelands.
|
|
19
|
+
license: MIT
|
|
20
|
+
repository-code: "https://github.com/LNSOTOM/fvc_structure"
|
|
21
|
+
url: "https://lnsotom.github.io/fvc_structure/"
|
|
22
|
+
keywords:
|
|
23
|
+
- UAS LiDAR
|
|
24
|
+
- label transfer
|
|
25
|
+
- 3D point cloud segmentation
|
|
26
|
+
- ForestFormer3D
|
|
27
|
+
- rangeland
|
|
28
|
+
references:
|
|
29
|
+
- type: data
|
|
30
|
+
title: "Calperum rangeland 3D dataset and pre-trained ForestFormer3D models in paper entitled \"From 2D labels to 3D structure: Scalable label transfer and benchmarking of 3D vegetation models in rangeland ecosystems\""
|
|
31
|
+
authors:
|
|
32
|
+
- family-names: Sotomayor
|
|
33
|
+
given-names: Laura N.
|
|
34
|
+
orcid: "https://orcid.org/0000-0001-9791-2193"
|
|
35
|
+
- family-names: Lucieer
|
|
36
|
+
given-names: Arko
|
|
37
|
+
orcid: "https://orcid.org/0000-0002-9468-4516"
|
|
38
|
+
- family-names: Turner
|
|
39
|
+
given-names: Darren
|
|
40
|
+
orcid: "https://orcid.org/0000-0002-3029-6717"
|
|
41
|
+
- family-names: Barthélemy
|
|
42
|
+
given-names: Johan
|
|
43
|
+
orcid: "https://orcid.org/0000-0002-7800-5309"
|
|
44
|
+
- family-names: Kattenborn
|
|
45
|
+
given-names: Teja
|
|
46
|
+
orcid: "https://orcid.org/0000-0001-7381-3828"
|
|
47
|
+
year: 2026
|
|
48
|
+
doi: "10.5281/zenodo.24431573"
|
|
49
|
+
publisher:
|
|
50
|
+
name: Zenodo
|
|
51
|
+
- type: data
|
|
52
|
+
title: "Fractional Vegetation Cover Mapping - UAS RGB and Multispectral Imagery, CNN algorithms, Semi-Arid Australian Ecosystems Coverage"
|
|
53
|
+
authors:
|
|
54
|
+
- family-names: Sotomayor
|
|
55
|
+
given-names: Laura N.
|
|
56
|
+
orcid: "https://orcid.org/0000-0001-9791-2193"
|
|
57
|
+
- family-names: Lewis
|
|
58
|
+
given-names: Megan
|
|
59
|
+
- family-names: Lamsal
|
|
60
|
+
given-names: Krishna
|
|
61
|
+
- family-names: Hoyer
|
|
62
|
+
given-names: Sophia
|
|
63
|
+
orcid: "https://orcid.org/0009-0004-0942-4624"
|
|
64
|
+
- family-names: Marshall
|
|
65
|
+
given-names: Molly
|
|
66
|
+
- family-names: Barros
|
|
67
|
+
given-names: Agustina
|
|
68
|
+
orcid: "https://orcid.org/0000-0002-6810-2391"
|
|
69
|
+
- family-names: Rossi
|
|
70
|
+
given-names: Sebastian
|
|
71
|
+
orcid: "https://orcid.org/0000-0002-2303-2094"
|
|
72
|
+
- family-names: Lucieer
|
|
73
|
+
given-names: Arko
|
|
74
|
+
orcid: "https://orcid.org/0000-0002-9468-4516"
|
|
75
|
+
year: 2025
|
|
76
|
+
doi: "10.5281/zenodo.15036860"
|
|
77
|
+
publisher:
|
|
78
|
+
name: Zenodo
|
|
79
|
+
preferred-citation:
|
|
80
|
+
type: article
|
|
81
|
+
status: preprint
|
|
82
|
+
title: "From 2D labels to 3D structure: Scalable label transfer and benchmarking of 3D vegetation models in rangeland ecosystems"
|
|
83
|
+
authors:
|
|
84
|
+
- family-names: Sotomayor
|
|
85
|
+
given-names: Laura N.
|
|
86
|
+
orcid: "https://orcid.org/0000-0001-9791-2193"
|
|
87
|
+
- family-names: Lucieer
|
|
88
|
+
given-names: Arko
|
|
89
|
+
orcid: "https://orcid.org/0000-0002-9468-4516"
|
|
90
|
+
- family-names: Turner
|
|
91
|
+
given-names: Darren
|
|
92
|
+
orcid: "https://orcid.org/0000-0002-3029-6717"
|
|
93
|
+
- family-names: Barthelemy
|
|
94
|
+
given-names: Johan
|
|
95
|
+
orcid: "https://orcid.org/0000-0002-7800-5309"
|
|
96
|
+
- family-names: Kattenborn
|
|
97
|
+
given-names: Teja
|
|
98
|
+
orcid: "https://orcid.org/0000-0001-7381-3828"
|
|
99
|
+
year: 2026
|
|
100
|
+
doi: "10.31223/X5948M"
|
|
101
|
+
publisher:
|
|
102
|
+
name: EarthArXiv
|
|
103
|
+
url: "https://doi.org/10.31223/X5948M"
|
fvc3d-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Laura N. Sotomayor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
fvc3d-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: fvc3d
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Transfer 2D vegetation growth-form labels into georeferenced 3D UAS LiDAR point clouds.
|
|
5
|
+
Project-URL: Documentation, https://lnsotom.github.io/fvc_structure/
|
|
6
|
+
Project-URL: Source, https://github.com/LNSOTOM/fvc_structure
|
|
7
|
+
Project-URL: Issues, https://github.com/LNSOTOM/fvc_structure/issues
|
|
8
|
+
Project-URL: Releases, https://github.com/LNSOTOM/fvc_structure/releases
|
|
9
|
+
Project-URL: Paper, https://doi.org/10.31223/X5948M
|
|
10
|
+
Author: Laura N. Sotomayor
|
|
11
|
+
License-Expression: MIT
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: LiDAR,UAS,label transfer,point cloud,rangeland,vegetation structure
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Requires-Dist: laspy[lazrs]>=2.0
|
|
25
|
+
Requires-Dist: numpy>=1.24
|
|
26
|
+
Requires-Dist: pyproj>=3.6
|
|
27
|
+
Requires-Dist: pyyaml>=6.0
|
|
28
|
+
Requires-Dist: rasterio>=1.3
|
|
29
|
+
Requires-Dist: scikit-image>=0.22
|
|
30
|
+
Requires-Dist: scipy>=1.11
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# fvc3d
|
|
34
|
+
|
|
35
|
+
Transfer 2D vegetation growth-form labels into georeferenced 3D UAS LiDAR
|
|
36
|
+
point clouds.
|
|
37
|
+
|
|
38
|
+
`fvc3d` implements the label-transfer method of Sotomayor et al. (2026),
|
|
39
|
+
[*From 2D labels to 3D structure: Scalable label transfer and benchmarking of
|
|
40
|
+
3D vegetation models in rangeland ecosystems*](https://doi.org/10.31223/X5948M):
|
|
41
|
+
class height priors, voxel label transfer, watershed crown detection,
|
|
42
|
+
crown-centric polar refinement and consolidation, in one call.
|
|
43
|
+
|
|
44
|
+
## Install
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pip install fvc3d
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Python 3.10 or newer.
|
|
51
|
+
|
|
52
|
+
## Quick start
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from fvc3d import transfer_labels
|
|
56
|
+
|
|
57
|
+
result = transfer_labels(
|
|
58
|
+
labels="growth_forms.tif", # 2D label raster (GeoTIFF)
|
|
59
|
+
point_cloud="lidar.laz", # co-registered LAS/LAZ, same CRS
|
|
60
|
+
output="labelled_vegetation.laz",
|
|
61
|
+
validate_alignment=True, # CRS, overlap and canopy-offset check
|
|
62
|
+
)
|
|
63
|
+
print(result.summary())
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The output LAS/LAZ holds each point's `classification`, its height above
|
|
67
|
+
ground (`Z_norm`) and a `treeID` for each mallee crown.
|
|
68
|
+
|
|
69
|
+
## Classes
|
|
70
|
+
|
|
71
|
+
The defaults are the paper's five growth forms:
|
|
72
|
+
|
|
73
|
+
| Growth form | Raster ID | LAS code | Name in `fvc3d` |
|
|
74
|
+
|---|---|---|---|
|
|
75
|
+
| Forb | 0 | 64 | `forb` |
|
|
76
|
+
| Woody debris | 1 | 65 | `woody_debris` |
|
|
77
|
+
| Grass hummock | 2 | 66 | `hummock` |
|
|
78
|
+
| Shrub | 3 | 67 | `shrub` |
|
|
79
|
+
| Mallee | 4 | 68 | `mallee` |
|
|
80
|
+
|
|
81
|
+
- `class_map="paper"` reads the published rasters, which use the raster IDs.
|
|
82
|
+
- `classes="my_classes.yaml"` uses your own classes; see the
|
|
83
|
+
[template](https://github.com/LNSOTOM/fvc_structure/blob/main/configs/classes.yaml).
|
|
84
|
+
- `classes="FOR-instanceV2"` writes FOR-instanceV2's ground, wood and leaf
|
|
85
|
+
classes, as used for ForestFormer3D.
|
|
86
|
+
|
|
87
|
+
## Try it on the paper's data
|
|
88
|
+
|
|
89
|
+
The [workflow guide](https://lnsotom.github.io/fvc_structure/#api-try) shows
|
|
90
|
+
how to download one tile from the paper's
|
|
91
|
+
[Zenodo record](https://doi.org/10.5281/zenodo.24431573), run it, and compare
|
|
92
|
+
the result with the published labels.
|
|
93
|
+
|
|
94
|
+
## Links
|
|
95
|
+
|
|
96
|
+
- Guide: https://lnsotom.github.io/fvc_structure/
|
|
97
|
+
- Source and research workflow: https://github.com/LNSOTOM/fvc_structure
|
|
98
|
+
- Paper (preprint): https://doi.org/10.31223/X5948M
|
|
99
|
+
- Data and models: https://doi.org/10.5281/zenodo.24431573 ·
|
|
100
|
+
UAS imagery and labels: https://doi.org/10.5281/zenodo.15036860
|
|
101
|
+
|
|
102
|
+
## Citation
|
|
103
|
+
|
|
104
|
+
If you use `fvc3d`, please cite the paper:
|
|
105
|
+
|
|
106
|
+
> Sotomayor, L.N., Lucieer, A., Turner, D., Barthelemy, J., Kattenborn, T.
|
|
107
|
+
> (2026). From 2D labels to 3D structure: Scalable label transfer and
|
|
108
|
+
> benchmarking of 3D vegetation models in rangeland ecosystems. EarthArXiv
|
|
109
|
+
> (preprint). https://doi.org/10.31223/X5948M
|
|
110
|
+
|
|
111
|
+
## Licence
|
|
112
|
+
|
|
113
|
+
MIT.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# fvc3d
|
|
2
|
+
|
|
3
|
+
Transfer 2D vegetation growth-form labels into georeferenced 3D UAS LiDAR
|
|
4
|
+
point clouds.
|
|
5
|
+
|
|
6
|
+
`fvc3d` implements the label-transfer method of Sotomayor et al. (2026),
|
|
7
|
+
[*From 2D labels to 3D structure: Scalable label transfer and benchmarking of
|
|
8
|
+
3D vegetation models in rangeland ecosystems*](https://doi.org/10.31223/X5948M):
|
|
9
|
+
class height priors, voxel label transfer, watershed crown detection,
|
|
10
|
+
crown-centric polar refinement and consolidation, in one call.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pip install fvc3d
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Python 3.10 or newer.
|
|
19
|
+
|
|
20
|
+
## Quick start
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
from fvc3d import transfer_labels
|
|
24
|
+
|
|
25
|
+
result = transfer_labels(
|
|
26
|
+
labels="growth_forms.tif", # 2D label raster (GeoTIFF)
|
|
27
|
+
point_cloud="lidar.laz", # co-registered LAS/LAZ, same CRS
|
|
28
|
+
output="labelled_vegetation.laz",
|
|
29
|
+
validate_alignment=True, # CRS, overlap and canopy-offset check
|
|
30
|
+
)
|
|
31
|
+
print(result.summary())
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The output LAS/LAZ holds each point's `classification`, its height above
|
|
35
|
+
ground (`Z_norm`) and a `treeID` for each mallee crown.
|
|
36
|
+
|
|
37
|
+
## Classes
|
|
38
|
+
|
|
39
|
+
The defaults are the paper's five growth forms:
|
|
40
|
+
|
|
41
|
+
| Growth form | Raster ID | LAS code | Name in `fvc3d` |
|
|
42
|
+
|---|---|---|---|
|
|
43
|
+
| Forb | 0 | 64 | `forb` |
|
|
44
|
+
| Woody debris | 1 | 65 | `woody_debris` |
|
|
45
|
+
| Grass hummock | 2 | 66 | `hummock` |
|
|
46
|
+
| Shrub | 3 | 67 | `shrub` |
|
|
47
|
+
| Mallee | 4 | 68 | `mallee` |
|
|
48
|
+
|
|
49
|
+
- `class_map="paper"` reads the published rasters, which use the raster IDs.
|
|
50
|
+
- `classes="my_classes.yaml"` uses your own classes; see the
|
|
51
|
+
[template](https://github.com/LNSOTOM/fvc_structure/blob/main/configs/classes.yaml).
|
|
52
|
+
- `classes="FOR-instanceV2"` writes FOR-instanceV2's ground, wood and leaf
|
|
53
|
+
classes, as used for ForestFormer3D.
|
|
54
|
+
|
|
55
|
+
## Try it on the paper's data
|
|
56
|
+
|
|
57
|
+
The [workflow guide](https://lnsotom.github.io/fvc_structure/#api-try) shows
|
|
58
|
+
how to download one tile from the paper's
|
|
59
|
+
[Zenodo record](https://doi.org/10.5281/zenodo.24431573), run it, and compare
|
|
60
|
+
the result with the published labels.
|
|
61
|
+
|
|
62
|
+
## Links
|
|
63
|
+
|
|
64
|
+
- Guide: https://lnsotom.github.io/fvc_structure/
|
|
65
|
+
- Source and research workflow: https://github.com/LNSOTOM/fvc_structure
|
|
66
|
+
- Paper (preprint): https://doi.org/10.31223/X5948M
|
|
67
|
+
- Data and models: https://doi.org/10.5281/zenodo.24431573 ·
|
|
68
|
+
UAS imagery and labels: https://doi.org/10.5281/zenodo.15036860
|
|
69
|
+
|
|
70
|
+
## Citation
|
|
71
|
+
|
|
72
|
+
If you use `fvc3d`, please cite the paper:
|
|
73
|
+
|
|
74
|
+
> Sotomayor, L.N., Lucieer, A., Turner, D., Barthelemy, J., Kattenborn, T.
|
|
75
|
+
> (2026). From 2D labels to 3D structure: Scalable label transfer and
|
|
76
|
+
> benchmarking of 3D vegetation models in rangeland ecosystems. EarthArXiv
|
|
77
|
+
> (preprint). https://doi.org/10.31223/X5948M
|
|
78
|
+
|
|
79
|
+
## Licence
|
|
80
|
+
|
|
81
|
+
MIT.
|