OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
楼主: Shiqi Yu

EMCV:可在DSP上运行的OpenCV

[复制链接]
发表于 2009-3-19 10:51:55 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

请问有没有把filter.cpp这个文件转为可用的呢?我下了EMCV,发现里面的filter.cpp是空的,里面没什么东西,不知道是不是我下错了
回复 支持 反对

使用道具 举报

发表于 2009-3-19 23:37:45 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

[quote="SophiaYan":2clozgq0]为什么说EMCV就是C++,EMCV中为何还有类咧,嵌入式系统一般之支持C?

我用的DM642就支持C++, OpenCV其实是用C++写的库, 只是接口是C的而已.[/quote:2clozgq0]

达芬奇只支持C,还得改写
回复 支持 反对

使用道具 举报

发表于 2009-3-20 00:06:12 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

从回帖来看,许多概念你还不太清楚:
1、所谓嵌入式系统一般只支持C,那是扯蛋。
2、不存在说哪一种架构的处理器是否只支持C,对处理器来说,看到的只有二进制目标码,所以只要能够把任何语言的编译器移植到该架构下,那么就能根据该语言生成可以在该架构处理器上运行的目标码。用你的话来说,就是“可以支持这种语言”。
3、所谓这个语言那个语言,当他被编译器转化为目标指令集之后,就都一样了,不要光看着那几个“class”的关键字发愣,那是给人看的,而不是给处理器看的。
4、据我所知,还比较少见到只支持C而不支持C++的处理器,因为这两个东西实质上太接近了,而gnu compiler toolchain又具有很好的跨平台特性,顶多只是不完全支持所有的C++标准罢了。当然,单片机除外。
达芬奇只支持C,还得改写
回复 支持 1 反对 0

使用道具 举报

发表于 2009-3-21 11:19:31 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

您好于老师,EMCV怎么下不了啊?请我发一份给我好吗?论坛里面哪位有也帮帮我,于老师可能很忙
我的邮箱meraker@163.com谢谢
回复 支持 反对

使用道具 举报

发表于 2009-3-21 19:56:23 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

人家于老师在之前的帖子里已经说的很明白了:
Please use a subversion client to check out
而且sf网站上也已经说的很明白了:
Subversion Access

This project\'s SourceForge.net Subversion repository can be checked out through SVN with the following instruction set:
svn co <!-- m --><a class=\"postlink\" href=\"https://emcv.svn.sourceforge.net/svnroot/emcv\">https://emcv.svn.sourceforge.net/svnroot/emcv</a><!-- m --> emcv

为什么大家还都是只想捡现成的呢?就等着以后每次代码更新都重新发布rar了?

具体说下方法吧:
windows用户,安装TortoiseSVN,网上大把下载的,是图形界面的,具体用法网上也很多,自己google,开发软件,不掌握基本的版本控制概念、不掌握至少一种版本控制工具,是不行的。
linux用户,直接安装svn命令,然后执行svn co <!-- m --><a class=\"postlink\" href=\"https://emcv.svn.sourceforge.net/svnroot/emcv\">https://emcv.svn.sourceforge.net/svnroot/emcv</a><!-- m --> emcv,以后如果版本有更新,svn update即可,也可以直接svn help看帮助。
我刚试过,可以下载,需要的自己去下载,不要老等着现成的。
  1. anders@anders-laptop:/work/books/opencv/emcv$ svn co https://emcv.svn.sourceforge.net/svnroot/emcv emcv
  2. A    emcv/trunk
  3. A    emcv/trunk/License
  4. A    emcv/trunk/cxcore
  5. A    emcv/trunk/cxcore/loadsave.cpp
  6. A    emcv/trunk/cxcore/cxtypes.h
  7. A    emcv/trunk/cxcore/cxcopy.cpp
  8. A    emcv/trunk/cxcore/cxtables.cpp
  9. A    emcv/trunk/cxcore/cxouttext.cpp
  10. A    emcv/trunk/cxcore/cxarray.cpp
  11. A    emcv/trunk/cxcore/cxcmp.cpp
  12. A    emcv/trunk/cxcore/cxarithm.cpp
  13. A    emcv/trunk/cxcore/cxerror.cpp
  14. A    emcv/trunk/cxcore/cxalloc.cpp
  15. A    emcv/trunk/cxcore/cxdrawing.cpp
  16. A    emcv/trunk/cxcore/_cxcore.h
  17. A    emcv/trunk/cxcore/cxcore.h
  18. A    emcv/trunk/cxcore/cxerror.h
  19. A    emcv/trunk/cxcore/cxmisc.h
  20. A    emcv/trunk/cxcore/cxdatastructs.cpp
  21. A    emcv/trunk/cvaux
  22. A    emcv/trunk/cvaux/cvmat.hpp
  23. A    emcv/trunk/cvaux/cvvidsurv.hpp
  24. A    emcv/trunk/cvaux/cvaux.h
  25. A    emcv/trunk/cvaux/cvaux.hpp
  26. A    emcv/trunk/cv
  27. A    emcv/trunk/cv/_cvmatrix.h
  28. A    emcv/trunk/cv/cvtypes.h
  29. A    emcv/trunk/cv/cvapprox.cpp
  30. A    emcv/trunk/cv/cvtables.cpp
  31. A    emcv/trunk/cv/cvcontours.cpp
  32. A    emcv/trunk/cv/_cvlist.h
  33. A    emcv/trunk/cv/cvshapedescr.cpp
  34. A    emcv/trunk/cv/_cv.h
  35. A    emcv/trunk/cv/cv.h
  36. A    emcv/trunk/cv/cv.hpp
  37. A    emcv/trunk/cv/cvfilter.cpp
  38. A    emcv/trunk/cv/cvmorph.cpp
  39. A    emcv/trunk/cv/cvpyramids.cpp
  40. A    emcv/trunk/cv/_cvgeom.h
  41. A    emcv/trunk/cv/_cvipp.h
  42. A    emcv/trunk/cv/cvthresh.cpp
  43. A    emcv/trunk/cv/cvutils.cpp
  44. A    emcv/trunk/cv/_cvimgproc.h
  45. 取出版本 5。
复制代码
您好于老师,EMCV怎么下不了啊?请我发一份给我好吗?论坛里面哪位有也帮帮我,于老师可能很忙
我的邮箱meraker@163.com谢谢
[quote=&quot;lukysuper&quot;:2cw8ej6q]于老师,您好。在这个网站http://sf.net/projects/emcv上无法下载emcv的相关东西,可否麻烦您发一份到我的邮箱lukysuper@163.com?非常感谢!
Please use a subversion client to check out[/quote:2cw8ej6q]
回复 支持 1 反对 0

使用道具 举报

发表于 2009-3-23 15:41:07 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

于老师,我用的是瑞泰公司的一款ICETEK-DM642-B的开发板,在把您的头文件和cpp文件包含进他的例程后,在cxmisc.h的第 233行
CvSize  cvGetMatSize(const CvMat* mat)
{
    CvSize size = {mat->width,mat->height};   
    return size;
}出现 这个错误    error: expression must have a constant value
我先申请个CvSize 变量,再给它的成员依次赋值也不对,还是同样的错误,

在cxtypes.h 的第192行   
CV_INLINE  int  cvFloor( double value )
{
        return int(floor(value));
}
出现这个错误 error: expected an expression
其他类似的这样的内联函数也没有报错 不知什么愿意

请于老师指点下

显然CvSize size = {mat->width,mat->height};    ,对应里面mat有的两个成员域是row 和col
回复 支持 反对

使用道具 举报

发表于 2009-4-1 15:17:18 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

1 cxmisc.h的第 233行
CvSize cvGetMatSize(const CvMat* mat)
{
CvSize size = {mat->width,mat->height};
return size;
}出现 这个错误 error: expression must have a constant value

我按上面说的把mat->width,mat->height用 mat->cols,mat->rows;代替了,还是不行?求救
回复 支持 反对

使用道具 举报

发表于 2009-4-1 21:18:07 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

我先做了一个库文件,然后在dm6437上使用,结果出现以下错误,请指教!!!The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
The CIO command cmd:(4) in the CIO buffer at address (0x841d3e00) was not recognized. Please check the device and program memory maps.
penCV ERROR: Bad flag (parameter or structure field) (Unrecognized or unsupported array type)
        in function cvGetMat, cxarray.cpp(654)
Terminating the application...
Assertion failed, (0), file cxerror.cpp, line 352
回复 支持 反对

使用道具 举报

发表于 2009-4-2 09:28:08 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

基本概念都没搞清楚。
  1. CvSize cvGetMatSize(const CvMat* mat)
  2. {
  3.     CvSize size = {mat->width,mat->height};
  4.     return size;
  5. }
复制代码
改成
  1. CvSize cvGetMatSize(const CvMat* mat)
  2. {
  3.     CvSize size;
  4.     size.width = mat->width;
  5.     size.height = mat->height; //当然,这两行怎么写,要看你自己的具体逻辑而定
  6.     return size;
  7. }
复制代码
另外,函数直接返回一个结构体,效率比较低。

你后边那个错误应该与此类似。
回复 支持 反对

使用道具 举报

发表于 2009-4-3 10:55:37 | 显示全部楼层

EMCV:可在DSP上运行的OpenCV

基本概念都没搞清楚。
  1. CvSize cvGetMatSize(const CvMat* mat)
  2. {
  3.     CvSize size = {mat->width,mat->height};
  4.     return size;
  5. }
复制代码
改成
  1. CvSize cvGetMatSize(const CvMat* mat)
  2. {
  3.     CvSize size;
  4.     size.width = mat->width;
  5.     size.height = mat->height; //当然,这两行怎么写,要看你自己的具体逻辑而定
  6.     return size;
  7. }
复制代码
另外,函数直接返回一个结构体,效率比较低。

你后边那个错误应该与此类似。

多谢高手,前面的问题已经解决。后面了个搞不定,望不吝赐教!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-4-19 17:41 , Processed in 0.009864 second(s), 13 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表