problem with cvGetSize

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

problem with cvGetSize

Raphael Gava
hi, people... Im trying to execute this code following but it show me the error:
"Bad argument (Array should be CvMat or IplImage) in fuction cvGetSize, C:\...\cxarray.cpp(1453)". Can anyone help me?

//const char* filename = argc >= 2 ? argv[1] : "pic1.png";
    IplImage* src = cvLoadImage( "pic1.png", -1 );
    IplImage* dst;
    IplImage* color_dst;
    CvMemStorage* storage = cvCreateMemStorage(0);
    CvSeq* lines = 0;
    int i;
    if( !src )
        return -1;
    dst = cvCreateImage( cvGetSize(src), IPL_DEPTH_8U, 3 );
    color_dst = cvCreateImage( cvGetSize(src), IPL_DEPTH_8U, 3 );
    //dst = cvCreateImage( cvGetSize(src), 8, 1 );
    //color_dst = cvCreateImage( cvGetSize(src), 8, 3 );
    cvCanny( dst, teste, 50, 200, 3 );
    cvCvtColor( dst, color_dst, CV_GRAY2BGR );


      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

[Non-text portions of this message have been removed]