c++ - Mat D =(Mat_<double>(3,3)<< 1,0,1,1,1,1,1,1,0);

标签 c++ opencv computer-vision

能否在OpenCV中描述如下代码

    Mat D =(Mat_<double>(3,3)<< 1,0,1,1,1,1,1,1,0);

我不明白的是什么

           Mat_<double>(3,3)

会做吗?

最佳答案

Mat 是一个 3x3 矩阵,包含 double 类型的值。

Google 泛型并查找 C++ 中模板的使用

关于c++ - Mat D =(Mat_<double>(3,3)<< 1,0,1,1,1,1,1,1,0);,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29150840/

相关文章:

c++ - 将一系列 h264 帧写入多个文件

python - 协作 mask 的实现?

c++ - Carbide C++ 2.0 中的构建问题

c++ - 如何检测终端中的unicode字符串宽度?

opencv - 使用 OpenCV 复制 Gimp 的颜色->反转操作

python - 如何使用 Python 找到 Wally?

tensorflow - Tensorflow 中非矩形图像上的 conv2d

python - 安装 LabelImg Windows

c++ - clang with -Weverything 标志没有捕获 vector 中不存在的元素

c# - 如何在 EmguCV 中将 Bgr 像素转换为 Hsv 像素?