[sourcecode language="cpp"]
#include "stdafx.h"
#include<opencv\cv.h>
#include<opencv\cxcore.h>
#include<opencv\highgui.h>
int _tmain(int argc, _TCHAR* argv[])
{
IplImage *src = cvLoadImage("C:\\Users\\opencv3\\img\\opencv.png",1);
IplImage *dest = cvCreateImage(cvSize(src->width,src->height),8,1);
cvNamedWindow("Original:",1);
cvShowImage("Original:",src);
cvCvtColor(src,dest,CV_RGB2GRAY);//Change from RGB to GrayScale
cvNamedWindow("Gray:",1);
cvShowImage("Gray:",dest);
cvWaitKey(0);
cvDestroyWindow("Original:");
cvReleaseImage(&src);
cvDestroyWindow("Gray:");
cvReleaseImage(&dest);
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