Ask Your Question

tynguyen.tech's profile - activity

2013-08-09 03:00:09 -0600 commented answer Plz Help! Can not debug grogram

Thanks, but above code apparently did not work due to some issues such as: img -&gt

2013-08-09 02:58:43 -0600 commented answer Plz Help! Can not debug grogram

Thank you, Mathieu. I did like you and it worked though i had to changed the whole code into C++ API.

2013-08-09 02:26:19 -0600 commented question Plz Help! Can not debug grogram

No word can say my appreciation to you, pros. Could you please give me some advice about learning OPENCV with this new C++ API ( such as book, or tutorial for the beginner? - the tutorial on docs.Opencv seems to be too hard to catch up with). Recently, i have been learning "OPENCV- computer vision with the OPENCv libarary" by Gary Bradski & Adrian Kaebler which relies on C-API.

2013-08-05 13:32:45 -0600 commented question Plz Help! Can not debug grogram

Thank you. However, i have not gotten the picture. What do you mean by "NEWER C++ STYLE API" ? It is for example new version of Visual Studio or other environment such as Eclipse, right?

2013-08-05 13:25:03 -0600 received badge  Editor (source)
2013-08-05 13:19:38 -0600 commented answer Plz Help! Can not debug grogram

Thanks. I've tried as your instruction but i has not worked yet. When i tried to debug, it is CANNY edge detection function that program gets stuck. I've edited my question in which a screenshot that illustrates the issue when debugging is inserted. Pls help me crack it. Many thanks.

2013-08-05 03:58:12 -0600 asked a question Plz Help! Can not debug grogram

Dear pros, i'm the beginner in studying OPENCV. I got stuck in this beginning program, it could not debugged by OPENCV2.4.5.

Pls help me to figure it out. Many thanks.

#include <highgui.h>
#include <stdio.h>
#include <cv.h>
#include <assert.h>

IplImage* doPyrDown(
IplImage* in,
int filter 
)
{
assert(in->width%2 == 0 && in->height%2 == 0);
IplImage * out = cvCreateImage(
    cvGetSize(in),
    IPL_DEPTH_8U,
    3
);
cvPyrDown( in, out);
return(out);
}


 void main() {

    int  filter =  IPL_GAUSSIAN_5x5;
    IplImage* in = cvLoadImage("F:\\chandung.png");
    cvNamedWindow( "Example-in");
    cvNamedWindow( "Example-out");  
IplImage* out  = doPyrDown(in, filter);
cvShowImage( "Example-in", in);
cvShowImage( "Example-out", out);
cvReleaseImage( &out);
cvWaitKey( 0);
cvDestroyWindow( "Example-in");
cvDestroyWindow( "Example-out");

}


When i run it, this error exists: image description


When i debugged it, errors exists while executing CANNY edge detection function. Following is the screenshot that illustrates the issue:

image description