1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
IplImage* picture = cvLoadImage("moiEtJulienNvg.jpg");
IplImage* contour = cvCreateImage(cvGetSize(picture),IPL_DEPTH_16S,1);
cvNamedWindow("Image a traiter",0);
cvResizeWindow("Image a traiter",600,800);
cvNamedWindow("Contour",0);
cvResizeWindow("Contour",600,800);
if(picture)
cvShowImage("Image a traiter",picture);
cvLaplace(picture,contour,3);//plante la
if(contour)
cvShowImage("Contour",contour);
cvWaitKey(0);
cvDestroyWindow("Image a traiter");
cvDestroyWindow("Contour");
cvReleaseImage(&picture);
cvReleaseImage(&contour); |