tutorials:using-point-cloud-to-validate-model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:using-point-cloud-to-validate-model [2024/11/04 10:36] – [Idea] tim | tutorials:using-point-cloud-to-validate-model [2024/11/06 15:42] (current) – [Steps] tim | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Idea ===== | ===== Idea ===== | ||
- | The idea is to use a point cloud of a measured tree and "move it over" | + | The idea is to take a point cloud of a measured tree and 'move it over' it on the simulated |
|{{ : | |{{ : | ||
Line 12: | Line 12: | ||
===== Steps ===== | ===== Steps ===== | ||
- | - Import the point cloud as a graph into the growth model. (see [[groimp-platform:pointcloud#import|here]]) | + | - Import the point cloud as a graph into the growth model. (see [[tutorials:pointcloud-io|here]]) |
- Grow the model to the right size (e.g. the age of the measured plant) | - Grow the model to the right size (e.g. the age of the measured plant) | ||
- | - Building | + | - Build the mathematical volume of the simulated plant |
- Querying the points of the point cloud to estimate the coverage of the model | - Querying the points of the point cloud to estimate the coverage of the model | ||
===== Generating a volume ===== | ===== Generating a volume ===== | ||
- | A volumes | + | A volume |
<code java> | <code java> | ||
Volume v = volume(first((*F*))); | Volume v = volume(first((*F*))); | ||
Line 29: | Line 29: | ||
===== 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 37: | 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 be used with bounding boxes or more abstract shapes. | + | This approach can easily be extended to bounding boxes or more abstract shapes. |
tutorials/using-point-cloud-to-validate-model.1730713006.txt.gz · Last modified: 2024/11/04 10:36 by tim