This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于DLP6500读取图像并投影显示

您好!我们最近在用DLP6500做一个项目,需要投影显示存储在计算机上的图像;

因为某些原因不能直接用TI提供的软件而是需要自己编写C++程序来实现。以下是写的一个测试程序的一部分:

#include <dlp_sdk.hpp>
#include<iostream>

int main()
{
dlp::ReturnCode ret;
std::string id="DLP6500";
dlp::LCr6500 DLP6500;
std::string im_basepath="D:\\DMD_images\\";
std::vector<std::string> imPath;
int imNum=3;
unsigned long exp=3000000,per=exp;
for(int i=1;i<=imNum;i++)
imPath.push_back(im_basepath+std::to_string(i)+".bmp");
std::vector<dlp::Pattern> patterns;
dlp::Pattern temp_pattern;
for(int i=0;i<imNum;i++)
{
ret=temp_pattern.image_data.Load(imPath.at(i));
if(ret.hasErrors())
{
std::cout << "Image load FAILED: "<< ret.ToString() << std::endl;
std::cout << "Could not find file: " << imPath.at(i) << std::endl;
getchar();
return 0;
}
patterns.push_back(temp_pattern);
}
dlp::Pattern::Sequence sequence;
for(int ipat=0;ipat<patterns.size();ipat++)
{
ret=sequence.Add(patterns.at(ipat));
if(ret.hasErrors())
{
std::cout<<"Patterns loading to sequence failed"<<std::endl;
getchar();
return 0;
}
}

return 0;

}

运行后显示Patterns loading to sequence failed,请问是什么原因?