#pragma package <opencv>
#endif
+#define CV_NO_BACKWARD_COMPATIBILITY
+
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
// Run the edge detector on grayscale
cvCanny(gray, edge, (float)edge_thresh, (float)edge_thresh*3, 3);
-
+
cvZero( cedge );
// copy edge points
cvCopy( image, cedge, edge );
int main( int argc, char** argv )
{
char* filename = argc == 2 ? argv[1] : (char*)"fruits.jpg";
-
+
if( (image = cvLoadImage( filename, 1)) == 0 )
return -1;
// Create a window
cvNamedWindow(wndname, 1);
- // create a toolbar
+ // create a toolbar
cvCreateTrackbar(tbarname, wndname, &edge_thresh, 100, on_trackbar);
// Show the image