Skip to content

Instantly share code, notes, and snippets.

@waldofe
Last active May 21, 2016 14:11
Show Gist options
  • Save waldofe/323e36590ca57837a30cbe163cfc2bca to your computer and use it in GitHub Desktop.
Save waldofe/323e36590ca57837a30cbe163cfc2bca to your computer and use it in GitHub Desktop.
#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