OpenCV错误:重塑时图像步骤错误

时间:2013-01-22 18:02:11

标签: c++ image opencv reshape

  

可能重复:
  Getting OpenCV Error “Image step is wrong” in Fisherfaces.train() method

我正在尝试运行此示例here

我在Eclipse中运行代码。我正确地构建了项目,但是当我从提示符运行.exe文件时出现此错误:

OpenCV Error: image step is wrong (the matrix is not continuous, thus its number of rows can not be changed) in reshape, file: C:/slave/WinInstallerMegaPack/src/opencv/modules/core/src/matrix.cpp, line 801
terminate called after throwing an instance of 'cv::Exception'
 what(): C:/slave/WinInstallerMegaPack/src/opencv/modules/core/src/matrix.cpp:801:error: (-13) The matrix is not continuous, thus its number of rows can not be changed in function reshape

我该如何解决?我在Windows 7 64位操作系统上使用OpenCV-2.4.3。任何人都可以帮助我吗? 非常感谢你。

0 个答案:

没有答案