@@ -111,7 +111,7 @@ depthType bilinearDepth(const Depth& m, cv::Point2f pt)
111
111
112
112
void integrateVolumeUnit (
113
113
float truncDist, float voxelSize, int maxWeight,
114
- cv::Matx44f _pose, int volResolution, Vec4i volStrides,
114
+ cv::Matx44f _pose, Point3i volResolution, Vec4i volStrides,
115
115
InputArray _depth, float depthFactor, const cv::Matx44f& cameraPose,
116
116
const cv::kinfu::Intr& intrinsics, InputArray _pixNorms, InputArray _volume)
117
117
{
@@ -122,7 +122,7 @@ void integrateVolumeUnit(
122
122
cv::Affine3f vpose (_pose);
123
123
Depth depth = _depth.getMat ();
124
124
125
- Range integrateRange (0 , volResolution);
125
+ Range integrateRange (0 , volResolution. x );
126
126
127
127
Mat volume = _volume.getMat ();
128
128
Mat pixNorms = _pixNorms.getMat ();
@@ -147,7 +147,7 @@ void integrateVolumeUnit(
147
147
for (int x = range.start ; x < range.end ; x++)
148
148
{
149
149
TsdfVoxel* volDataX = volDataStart + x * volStrides[0 ];
150
- for (int y = 0 ; y < volResolution; y++)
150
+ for (int y = 0 ; y < volResolution. y ; y++)
151
151
{
152
152
TsdfVoxel* volDataY = volDataX + y * volStrides[1 ];
153
153
// optimization of camSpace transformation (vector addition instead of matmul at each z)
@@ -161,7 +161,7 @@ void integrateVolumeUnit(
161
161
if (zStepPt.z > 0 )
162
162
{
163
163
startZ = baseZ;
164
- endZ = volResolution;
164
+ endZ = volResolution. z ;
165
165
}
166
166
else
167
167
{
@@ -174,7 +174,7 @@ void integrateVolumeUnit(
174
174
if (basePt.z > 0 )
175
175
{
176
176
startZ = 0 ;
177
- endZ = volResolution;
177
+ endZ = volResolution. z ;
178
178
}
179
179
else
180
180
{
@@ -183,7 +183,7 @@ void integrateVolumeUnit(
183
183
}
184
184
}
185
185
startZ = max (0 , startZ);
186
- endZ = min (int (volResolution), endZ);
186
+ endZ = min (int (volResolution. z ), endZ);
187
187
for (int z = startZ; z < endZ; z++)
188
188
{
189
189
// optimization of the following:
@@ -281,7 +281,7 @@ void integrateVolumeUnit(
281
281
for (int x = range.start ; x < range.end ; x++)
282
282
{
283
283
TsdfVoxel* volDataX = volDataStart + x * volStrides[0 ];
284
- for (int y = 0 ; y < volResolution; y++)
284
+ for (int y = 0 ; y < volResolution. y ; y++)
285
285
{
286
286
TsdfVoxel* volDataY = volDataX + y * volStrides[1 ];
287
287
// optimization of camSpace transformation (vector addition instead of matmul at each z)
@@ -299,7 +299,7 @@ void integrateVolumeUnit(
299
299
if (zStep.z > 0 )
300
300
{
301
301
startZ = baseZ;
302
- endZ = volResolution;
302
+ endZ = volResolution. z ;
303
303
}
304
304
else
305
305
{
@@ -312,7 +312,7 @@ void integrateVolumeUnit(
312
312
if (basePt.z > 0 )
313
313
{
314
314
startZ = 0 ;
315
- endZ = volResolution;
315
+ endZ = volResolution. z ;
316
316
}
317
317
else
318
318
{
@@ -321,7 +321,7 @@ void integrateVolumeUnit(
321
321
}
322
322
}
323
323
startZ = max (0 , startZ);
324
- endZ = min (int (volResolution), endZ);
324
+ endZ = min (int (volResolution. z ), endZ);
325
325
326
326
for (int z = startZ; z < endZ; z++)
327
327
{
0 commit comments