|
#include <stdlib.h>
#include <stdio.h>
#include "_cv.h"
#include "_cxcore.h"
int main()
{
FILE* f_in = NULL;
FILE* f_out = NULL;
long len = 0;
char* buf=NULL;
//声明IplImage指针
IplImage* pImg = NULL;
IplImage* pBinImg = NULL;
if( (pImg = cvLoadImage("C:\\CCStudio_v3.3\\MyProjects\\OpencvTest1\\beauty.bmp", 0)) != 0 )
{
}
return 0;
}
//cmd文件
/*
* Copyright (C) 2003 Texas Instruments Incorporated
* All Rights Reserved
*/
/*
*--
*
*/
-stack 0x9000
-heap 0x9000
MEMORY
{
SDRAM : origin = 0x80000000, len = 0x4000000
SRAM : origin = 0x00000400, len = 0xffffff
}
SECTIONS
{
.text > SRAM
.cinit > SRAM
.const > SRAM
.far > SRAM
.stack > SRAM
.cio > SRAM
.bss > SRAM
.sysmem > SRAM
.off_ram > SDRAM
}
//错误如下
OpenCV ERROR: Insufficient memory (Out of memory)
in function cvAlloc, cxalloc.cpp(60)
Terminating the application...
Assertion failed, (0), file cxerror.cpp, line 352
编译时有警告:
warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported
>> warning: missing DW_AT_name attribute
>> warning: function definitions in CSU declarations are not supported |
|