【发布时间】:2012-03-18 08:02:22
【问题描述】:
这是我试图写入文件的代码。filtergaborodd 和 filtergaboreven 都是 IplImage* 对象,我正在将它们的内容写入文本文件。
for(int i=0;i<filtergaborodd->height;i++)
{
for(int j=0;j<filtergaborodd->width;j++)
{
fprintf(fidf,"%.5f\t",(float)((filtergaborodd->imageData)[i*filtergaborodd->widthStep+j]));
fprintf(fidf,"%.5f\t",(float)((filtergaboreven->imageData)[i*filtergaboreven->widthStep+j]));
cout<<i<<j<<endl;
}
}
但是当我尝试运行它时,我收到以下错误:opencv 中函数 cvCreateMatHeader 中的非正宽度或高度。
我无法理解此错误的原因。有人可以帮帮我吗? 谢谢
【问题讨论】:
标签: c image-processing ubuntu opencv