opencv--radial Blur

Source: Internet
Author: User

Reference Source:

Learning OpenCV: Filter Series (5)-Radial blur: Zoom & Rotate

Define head function#ifndef ps_algorithm_h_included#define ps_algorithm_h_included#include <iostream># Include <string> #include "cv.h" #include "highgui.h" #include "cxmat.hpp" #include "cxcore.hpp" #include "math.h" Using namespace Std;using namespace Cv;void show_image (mat&, const string &); #endif//ps_algorithm_h_included/* This program would generateradition Blur effect*/#include "ps_algorithm.h" #include <time.h>using namespace std;    Using namespace Cv;int Main () {string Img_name ("4.jpg");    Mat img_in;    Img_in=imread (Img_name);    Show_image (img_in, img_name);    Mat img_out (Img_in.size (), CV_32FC3);    Img_in.convertto (Img_out, CV_32FC3);    int width=img_in.cols;    int height=img_in.rows;    float R;    float angle;    Point Center (WIDTH/2, HEIGHT/2);    float T1, T2, T3;    int new_x, new_y;    int num=20;            for (int y=0, y
Original



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

opencv--radial Blur

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.