Skip to content

Commit e356234

Browse files
committed
CAP-ADD: basic global fast registration done
1 parent bb5b266 commit e356234

File tree

4 files changed

+76
-4
lines changed

4 files changed

+76
-4
lines changed

src/diffCheck/registrations/DFGlobalRegistrations.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace diffCheck::registrations
2222
* @param target the target diffCheck point cloud
2323
* @param voxelize whether to voxelize the point clouds before computing the FPFHFeatures. A higher value will result in a more coarse point cloud (less resulting points).
2424
* @param voxelSize the size of the voxels used to downsample the point clouds. It is expressed relative to the point cloud size (0.01 means voxelSize = 1% of maxSize(pointCloud). A higher value will result in a more coarse point cloud (less resulting points).
25-
* @param radiusKDTreeSearch the radius used to search for neighbors in the KDTree.it is expressed relative to the point cloud size (0.01 means radiusKDTreeSearch = 1% of maxSize(pointCloud). It is used for the calculation of FPFHFeatures
25+
* @param radiusKDTreeSearch the radius used to search for neighbors in the KDTree.it is expressed relative to the point cloud size (0.01 means radiusKDTreeSearch = 1% of maxSize(pointCloud). It is used for the calculation of FPFHFeatures
2626
* @param maxNeighborKDTreeSearch the maximum number of neighbors to search for in the KDTree. It is used for the calculation of FPFHFeatures. A higher value will result in heavier computation but potentially more precise.
2727
* @param maxCorrespondenceDistance the maximum distance between correspondences. A higher value will result in more correspondences, but potentially include wrong ones.
2828
* @param iterationNumber the number of iterations to run the RanSaC registration algorithm. A higher value will take more time to compute but increases the chances of finding a good transformation. As parameter of the FastGlobalRegistrationOption options

src/gh/components/DF_global_registration/metadata.json

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,29 @@
22
"name": "DFMeshToCloud",
33
"nickname": "Geo2Pcd",
44
"category": "diffCheck",
5-
"subcategory": "Cloud",
6-
"description": "Sample a point cloud from a mesh.",
5+
"subcategory": "Registrations",
6+
"description": "Register two point clouds together if a fast global registration.",
77
"exposure": 4,
8-
"instanceGuid": "e8e5e122-40d0-45cd-9f93-cc756fd8b307",
8+
"instanceGuid": "cacd1868-5e8f-451c-b89a-51a075f332cd",
99
"ghpython": {
1010
"hideOutput": true,
1111
"hideInput": true,
1212
"isAdvancedMode": true,
1313
"marshalOutGuids": true,
1414
"iconDisplay": 2,
1515
"inputParameters": [
16+
{
17+
"name": "i_recompute",
18+
"nickname": "i_recompute",
19+
"description": "Connect a button to recompute the registration.",
20+
"optional": true,
21+
"allowTreeAccess": true,
22+
"showTypeHints": true,
23+
"scriptParamAccess": "item",
24+
"wireDisplay": "default",
25+
"sourceCount": 0,
26+
"typeHintID": "bool"
27+
},
1628
{
1729
"name": "i_cloud_source",
1830
"nickname": "i_cloud_source",
@@ -36,6 +48,66 @@
3648
"wireDisplay": "default",
3749
"sourceCount": 0,
3850
"typeHintID": "pointcloud"
51+
},
52+
{
53+
"name": "i_radius_kd_search",
54+
"nickname": "i_radius_kd_search",
55+
"description": "The radius used to search for neighbors in the KDTree.it is expressed relative to the point cloud size (0.01 means radiusKDTreeSearch = 1% of maxSize(pointCloud). It is used for the calculation of FPFHFeatures.",
56+
"optional": false,
57+
"allowTreeAccess": true,
58+
"showTypeHints": true,
59+
"scriptParamAccess": "item",
60+
"wireDisplay": "default",
61+
"sourceCount": 0,
62+
"typeHintID": "float"
63+
},
64+
{
65+
"name": "i_neighbours_kd_search",
66+
"nickname": "i_neighbours_kd_search",
67+
"description": "The maximum number of neighbors to search for in the KDTree. It is used for the calculation of FPFHFeatures. A higher value will result in heavier computation but potentially more precise.",
68+
"optional": false,
69+
"allowTreeAccess": true,
70+
"showTypeHints": true,
71+
"scriptParamAccess": "item",
72+
"wireDisplay": "default",
73+
"sourceCount": 0,
74+
"typeHintID": "int"
75+
},
76+
{
77+
"name": "i_max_corrspondence_dist",
78+
"nickname": "i_max_corrspondence_dist",
79+
"description": "The maximum distance between correspondences. A higher value will result in more correspondences, but potentially include wrong ones.",
80+
"optional": false,
81+
"allowTreeAccess": true,
82+
"showTypeHints": true,
83+
"scriptParamAccess": "item",
84+
"wireDisplay": "default",
85+
"sourceCount": 0,
86+
"typeHintID": "float"
87+
},
88+
{
89+
"name": "i_iteration_number",
90+
"nickname": "i_iteration_number",
91+
"description": "The number of iterations to run the RanSaC registration algorithm. A higher value will take more time to compute but increases the chances of finding a good transformation. As parameter of the FastGlobalRegistrationOption options.",
92+
"optional": false,
93+
"allowTreeAccess": true,
94+
"showTypeHints": true,
95+
"scriptParamAccess": "item",
96+
"wireDisplay": "default",
97+
"sourceCount": 0,
98+
"typeHintID": "int"
99+
},
100+
{
101+
"name": "i_max_tuple_count",
102+
"nickname": "i_max_tuple_count",
103+
"description": "The maximum number of tuples to consider in the FPFH hyperspace. A higher value will result in heavier computation but potentially more precise. As parameter of the FastGlobalRegistrationOption options.",
104+
"optional": false,
105+
"allowTreeAccess": true,
106+
"showTypeHints": true,
107+
"scriptParamAccess": "item",
108+
"wireDisplay": "default",
109+
"sourceCount": 0,
110+
"typeHintID": "int"
39111
}
40112
],
41113
"outputParameters": [
-12 KB
Binary file not shown.
-15.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)