找回密码
 注册
Simdroid-非首页
查看: 52|回复: 1

关于mwArray的问题

[复制链接]
发表于 2009-3-15 19:11:07 | 显示全部楼层 |阅读模式 来自 澳门
本帖最后由 ljelly 于 2009-3-16 16:45 编辑

小弟最近打算用VS2008和MATLAB R2008a 混合编程的方法来做一款图像处理的小程序,后来查了查论坛里的帖子觉得受益匪浅,就采用了调用MATLAB生成的DLL文件的方法来编程,可是发现不知道怎么将一个.jpg格式的文件读入mwArray的类中,不知各位DX是怎么处理这个问题的?先行谢过啦~:)
 楼主| 发表于 2009-3-15 19:25:15 | 显示全部楼层 来自 澳门
Simdroid开发平台
以下是我的程序
#include <stdafx.h>

#include <iostream>
#include <mclmcr.h>
#include "mclcppclass.h"
#include "libNcutValue.h"
#include "libNcutPartition.h"
#include "libNcutImageSegment.h"
#include "libNcutComputeW.h"
#include "libdemo3.h"
#include "libimread.h"

int _tmain(int argc, _TCHAR* argv[])
{
        /* Initialize the MCR */
        if( !mclInitializeApplication(NULL,0) )
          {
         std::cout << "Could not initialize the application!" << std::endl;
         return -1;
      }

        if(!libNcutComputeWInitialize())
        {
                std::cout<<"Could not initialize the application!"<<std::endl;
                return -1;
        }

    if(!libNcutImageSegmentInitialize())
        {
                std::cout<<"Could not initialize the application!"<<std::endl;
                return -1;
        }

        if(!libNcutPartitionInitialize())
        {
                std::cout<<"Could not initialize the application!"<<std::endl;
                return -1;
        }

        if(!libNcutValueInitialize())
        {
                std::cout<<"Could not initialize the application!"<<std::endl;
                return -1;
        }

       


   return 0;


}
用VS一跑,他老提示我 Cannot open include file: 'mclmcrrt.h': No such file or directory
和 Cannot open include file: 'stdafx.h': No such file or directory 的问题,是怎么回事呢
回复 不支持

使用道具 举报

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

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-7 11:28 , Processed in 0.038445 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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