69,371
社区成员
发帖
与我相关
我的任务
分享
FILE *fp;
IplImage *img = NULL ;
CvPoint pt1 = cvPoint(0,0);
CvPoint pt2 = cvPoint(0,0);
bool is_selecting = false;
//载入文件存储文件
void LoadImage()
{
fp = fopen("filepath.txt","r");
char path[50];
if(fp == NULL)
printf("wrong");
if(fp)
fscanf(fp,"%s",path);
img = cvLoadImage(path,1);
cvShowImage("img",img);
}