@@ -17,9 +17,49 @@ namespace kinfu {
17
17
18
18
struct CV_EXPORTS_W Params
19
19
{
20
- /* * @brief Default parameters
21
- A set of parameters which provides better model quality, can be very slow.
22
- */
20
+
21
+ CV_WRAP Params (){}
22
+
23
+ /* *
24
+ * @brief Constructor for Params
25
+ * Sets the initial pose of the TSDF volume.
26
+ * @param volumeIntialPoseRot rotation matrix
27
+ * @param volumeIntialPoseTransl translation vector
28
+ */
29
+ CV_WRAP Params (Matx33f volumeIntialPoseRot, Vec3f volumeIntialPoseTransl)
30
+ {
31
+ setInitialVolumePose (volumeIntialPoseRot,volumeIntialPoseTransl);
32
+ }
33
+
34
+ /* *
35
+ * @brief Constructor for Params
36
+ * Sets the initial pose of the TSDF volume.
37
+ * @param volumeIntialPose 4 by 4 Homogeneous Transform matrix to set the intial pose of TSDF volume
38
+ */
39
+ CV_WRAP Params (Matx44f volumeIntialPose)
40
+ {
41
+ setInitialVolumePose (volumeIntialPose);
42
+ }
43
+
44
+ /* *
45
+ * @brief Set Initial Volume Pose
46
+ * Sets the initial pose of the TSDF volume.
47
+ * @param R rotation matrix
48
+ * @param t translation vector
49
+ */
50
+ CV_WRAP void setInitialVolumePose (Matx33f R, Vec3f t);
51
+
52
+ /* *
53
+ * @brief Set Initial Volume Pose
54
+ * Sets the initial pose of the TSDF volume.
55
+ * @param homogen_tf 4 by 4 Homogeneous Transform matrix to set the intial pose of TSDF volume
56
+ */
57
+ CV_WRAP void setInitialVolumePose (Matx44f homogen_tf);
58
+
59
+ /* *
60
+ * @brief Default parameters
61
+ * A set of parameters which provides better model quality, can be very slow.
62
+ */
23
63
CV_WRAP static Ptr<Params> defaultParams ();
24
64
25
65
/* * @brief Coarse parameters
@@ -32,7 +72,7 @@ struct CV_EXPORTS_W Params
32
72
CV_PROP_RW Size frameSize;
33
73
34
74
/* * @brief camera intrinsics */
35
- CV_PROP Matx33f intr;
75
+ CV_PROP_RW Matx33f intr;
36
76
37
77
/* * @brief pre-scale per 1 meter for input values
38
78
@@ -93,14 +133,14 @@ struct CV_EXPORTS_W Params
93
133
// float gradient_delta_factor;
94
134
95
135
/* * @brief light pose for rendering in meters */
96
- CV_PROP Vec3f lightPose;
136
+ CV_PROP_RW Vec3f lightPose;
97
137
98
138
/* * @brief distance theshold for ICP in meters */
99
139
CV_PROP_RW float icpDistThresh;
100
140
/* * angle threshold for ICP in radians */
101
141
CV_PROP_RW float icpAngleThresh;
102
142
/* * number of ICP iterations for each pyramid level */
103
- CV_PROP std::vector<int > icpIterations;
143
+ CV_PROP_RW std::vector<int > icpIterations;
104
144
105
145
/* * @brief Threshold for depth truncation in meters
106
146
0 commit comments