tutorials:using-point-cloud-to-validate-model
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorials:using-point-cloud-to-validate-model [2024/10/29 18:25] – created tim | tutorials:using-point-cloud-to-validate-model [2024/11/06 15:42] (current) – [Steps] tim | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | The idea is to use a point cloud of a measured tree and "move it over" the simulate tree to see how similar the tree and the measurements are. In the following the point cloud ware artificially created and fits the tree therefore very well. | ||
- | ====== Generating a volume ====== | + | ===== Idea ===== |
- | A volumes | + | The idea is to take a point cloud of a measured tree and 'move it over' it on the simulated tree to see how similar the tree and the measurements are. In the following, the point cloud (shown in the figure below) has been artificially created and therefore fits the tree very well. |
+ | |||
+ | |{{ : | ||
+ | |Generated example point cloud and two models with 99% and 85% accuracy| | ||
+ | |||
+ | The example model can be found in the [[https:// | ||
+ | ===== Steps ===== | ||
+ | |||
+ | - Import the point cloud as a graph into the growth model. (see [[tutorials: | ||
+ | - Grow the model to the right size (e.g. the age of the measured plant) | ||
+ | - Build the mathematical volume of the simulated plant | ||
+ | - Querying the points of the point cloud to estimate the coverage of the model | ||
+ | ===== Generating a volume ===== | ||
+ | |||
+ | A volume | ||
<code java> | <code java> | ||
Volume v = volume(first((*F*))); | Volume v = volume(first((*F*))); | ||
Line 14: | Line 27: | ||
- | ====== Counting the points | + | ===== Counting the points ===== |
- | A volume in GroIMP comes with contains function, that checks if a point is included | + | A volume in GroIMP comes with a contains function that checks if a point is contained |
- | This can be used in a XL query to count all point included | + | This can be used in an XL query to count all points contained |
<code java> | <code java> | ||
long inside = count((*p: | long inside = count((*p: | ||
Line 24: | Line 37: | ||
</ | </ | ||
- | Therefore the output from the last line above creates | + | The output from the last line above produces |
- | + | ||
- | + | ||
+ | This approach can easily be extended to bounding boxes or more abstract shapes. |
tutorials/using-point-cloud-to-validate-model.1730222731.txt.gz · Last modified: 2024/10/29 18:25 by tim