the variable 'low' is being used without being ...
程序员文章站
2022-06-15 14:11:49
...
- IplImage *img_1; //定义一个图像指针,用来存放视频下一帧
- IplImage *img;
- IplImage *nomalizeimage;
- IplImage *clusterimage;
- IplImage *gray=cvCreateImage(cvGetSize(img_1),IPL_DEPTH_8U,1); //初始化gray为单通道无符号8位
- IplImage *bwimage=cvCreateImage(cvGetSize(img_1),IPL_DEPTH_8U,1);
- img_1=cvQueryFrame(capture); //获取读取视频的下一帧,存放img_1中
IplImage *img_1; //定义一个图像指针,用来存放视频下一帧
IplImage *img;
IplImage *nomalizeimage;
IplImage *clusterimage;
IplImage *gray=cvCreateImage(cvGetSize(img_1),IPL_DEPTH_8U,1); //初始化gray为单通道无符号8位
IplImage *bwimage=cvCreateImage(cvGetSize(img_1),IPL_DEPTH_8U,1);
img_1=cvQueryFrame(capture); //获取读取视频的下一帧,存放img_1中
出现这个错误原因就是没初始化就使用或者使用了之后再初始化,就好像上面代码所示img_1使用了再初始化,处理的方法就是把初始化代码img_1=cvQueryFrame(capture)放到前面使用代码中去IplImage *gray=cvCreateImage(cvGetSize(img_1),IPL_DEPTH_8U,1); //初始化gray为单通道无符号8位;修改好代码如下所示
- IplImage *img_1; //定义一个图像指针,用来存放视频下一帧
- IplImage *img;
- img_1=cvQueryFrame(capture); //获取读取视频的下一帧,存放img_1中
- IplImage *nomalizeimage;
- IplImage *clusterimage;
- IplImage *gray=cvCreateImage(cvGetSize(img_1),IPL_DEPTH_8U,1); //初始化gray为单通道无符号8位
- IplImage *bwimage=cvCreateImage(cvGetSize(img_1),IPL_DEPTH_8U,1);
转载于:https://my.oschina.net/u/1187793/blog/146869
推荐阅读
-
the variable 'low' is being used without being ...
-
Android Camera相机 Camera is being used after Camera.release() was called
-
Camera is being used after Camera.release() was called
-
Run-Time Check Failure #3 - The variable 'side' is being used without being defined.
-
Android Camera is being used after Camera.release() was called
-
Error: because it is being used by another process
-
How Memory is being used
-
解决java.lang.RuntimeException: Camera is being used after Camera.release() was called
-
Error: because it is being used by another process
-
PHPMailer出现Called Mail() without being connected错误