[caption id="attachment_750" align="alignnone" width="216"] First Image[/caption]
[caption id="attachment_751" align="alignnone" width="217"] Second Image[/caption]
[caption id="attachment_752" align="alignnone" width="215"] Image Difference[/caption]
[sourcecode language="c"]
#include "stdafx.h"
#include<opencv\cv.h>
#include<opencv\cxcore.h>
#include<opencv\highgui.h>
int _tmain(int argc, _TCHAR* argv[])
{
IplImage *first = cvLoadImage("C:\\Users\\first.jpg");
IplImage *second = cvLoadImage("C:\\Users\\second.jpg");
IplImage *subImage;
subImage = cvCloneImage(first);
cvAbsDiff(first,second,subImage);
cvNamedWindow("Original:");
cvShowImage("Original:", first);
cvNamedWindow("Modified:");
cvShowImage("Modified:", second);
cvNamedWindow("Diff:");
cvShowImage("Diff:", subImage);
cvWaitKey(0);
cvDestroyWindow("Original:");
cvReleaseImage(&first);
cvDestroyWindow("Modified:");
cvReleaseImage(&second);
cvDestroyWindow("Diff:");
cvReleaseImage(&subImage);
return 0;
}
[/sourcecode]
Subscribe to:
Post Comments (Atom)
How to enable CORS in Laravel 5
https://www.youtube.com/watch?v=PozYTvmgcVE 1. Add middleware php artisan make:middleware Cors return $next($request) ->header('Acces...
-
< Requirements Java Development Kit (JDK) NetBeans IDE Apache Axis 2 Apache Tomcat Server Main Topics Setup Development Environ...
-
Download Sourcecode [sourcecode language="csharp"] using System; using System.Collections.Generic; using System.Linq; using System...
No comments:
Post a Comment