mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Fixed 23-bit build with some GCC versions.
This commit is contained in:
parent
96a8e6d76c
commit
b083d36d68
@ -410,8 +410,9 @@ void Octree::getPointCloudByOctree(OutputArray restorePointCloud, OutputArray re
|
|||||||
double resolution = p->resolution;
|
double resolution = p->resolution;
|
||||||
std::vector<Point3f> outPts, outColors;
|
std::vector<Point3f> outPts, outColors;
|
||||||
|
|
||||||
std::stack<std::tuple<Ptr<OctreeNode>, size_t, size_t, size_t>> toCheck;
|
typedef std::tuple<Ptr<OctreeNode>, size_t, size_t, size_t> stack_element;
|
||||||
toCheck.push({root, 0, 0, 0});
|
std::stack<stack_element> toCheck;
|
||||||
|
toCheck.push(stack_element(root, 0, 0, 0));
|
||||||
while (!toCheck.empty())
|
while (!toCheck.empty())
|
||||||
{
|
{
|
||||||
auto top = toCheck.top();
|
auto top = toCheck.top();
|
||||||
@ -456,7 +457,7 @@ void Octree::getPointCloudByOctree(OutputArray restorePointCloud, OutputArray re
|
|||||||
x_copy = (x_copy << 1) | x_offSet;
|
x_copy = (x_copy << 1) | x_offSet;
|
||||||
y_copy = (y_copy << 1) | y_offSet;
|
y_copy = (y_copy << 1) | y_offSet;
|
||||||
z_copy = (z_copy << 1) | z_offSet;
|
z_copy = (z_copy << 1) | z_offSet;
|
||||||
toCheck.push({node->children[i], x_copy, y_copy, z_copy});
|
toCheck.push(stack_element(node->children[i], x_copy, y_copy, z_copy));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user