X-Git-Url: http://git.maemo.org/git/?p=opencv;a=blobdiff_plain;f=samples%2Fc%2Fhoughlines.c;fp=samples%2Fc%2Fhoughlines.c;h=5ea8dfb481e6a3c1b8f69764b36f877bca89ffe6;hp=d6081372382e08659b66bf6d4503d0bca144dc27;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hpb=454138ff8a20f6edb9b65a910101403d8b520643 diff --git a/samples/c/houghlines.c b/samples/c/houghlines.c index d608137..5ea8dfb 100644 --- a/samples/c/houghlines.c +++ b/samples/c/houghlines.c @@ -1,3 +1,5 @@ +#define CV_NO_BACKWARD_COMPATIBILITY + /* This is a standalone program. Pass an image name as a first parameter of the program. Switch between standard and probabilistic Hough transform by changing "#if 1" to "#if 0" and back */ #include @@ -16,10 +18,10 @@ int main(int argc, char** argv) if( !src ) return -1; - + dst = cvCreateImage( cvGetSize(src), 8, 1 ); color_dst = cvCreateImage( cvGetSize(src), 8, 3 ); - + cvCanny( src, dst, 50, 200, 3 ); cvCvtColor( dst, color_dst, CV_GRAY2BGR ); #if 0