草庐IT

NAryMatIterator

全部标签

c++ - 使用 C++ 在 OpenCV 中矩阵中的多维数据

我想在OpenCV(C++)中声明、填充、访问与命名空间cv兼容的多维矩阵。我没有找到关于它们的快速易学示例。你能帮帮我吗? 最佳答案 这是来自NAryMatIterator的一个简短示例文档;它展示了如何在OpenCV中创建、填充和处理多维矩阵:voidcomputeNormalizedColorHist(constMat&image,Mat&hist,intN,doubleminProb){constinthistSize[]={N,N,N};//makesurethatthehistogramhasapropersizeand