Last active
May 21, 2016 14:11
-
-
Save waldofe/323e36590ca57837a30cbe163cfc2bca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "opencv2/imgproc/imgproc.hpp" | |
#include "opencv2/highgui/highgui.hpp" | |
using namespace std; | |
using namespace cv; | |
Mat image_media; | |
Mat image; | |
char window_name1[] = "Imagem para ser processada"; | |
char window_name2[] = "Imagem Processada"; | |
int main( int argc, char** argv ) { | |
image = imread( argv[1], 1 ); | |
namedWindow( window_name1, WINDOW_AUTOSIZE ); | |
imshow("Imagem para ser processada",image); | |
image_media = image.clone(); | |
blur(image, image_media, Size(3,3),Point(-1,-1)); | |
namedWindow( window_name2, WINDOW_AUTOSIZE ); | |
imshow("Imagem Processada", image_media); | |
waitKey(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment