PS 滤镜— —水波效果】的更多相关文章

clc; clear all; close all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); I=imread('4.jpg'); I=double(I); Image=I/255; [height, width, depth]=size(Image); wavelength = 20; amplitude = 10; phase = 0; centreX = 0.5; centreY = 0.5; rad…
// 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&quo…
%%%% Water wave %%%% 制作水波效果 clc; clear all; close all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); I=imread('4.jpg'); I=double(I); Image=I; [row, col, channel]=size(Image); A=7; B=2.5; Center_X=(col+1)/2; Center_Y=(row+1)/2; Imag…
本文用 Python 实现 PS 滤镜中的 水波特效 import numpy as np from skimage import img_as_float import matplotlib.pyplot as plt from skimage import io import numpy.matlib file_name2 = 'D:/Visual Effects/PS Algorithm/4.jpg' img=io.imread(file_name2) img = img_as_float…
本文用 Python 实现 PS 的一种滤镜效果,称为万花筒.也是对图像做各种扭曲变换,最后图像呈现的效果就像从万花筒中看到的一样: 图像的效果可以参考之前的博客: http://blog.csdn.net/matrix_space/article/details/46789783 import matplotlib.pyplot as plt from skimage import io from skimage import img_as_float import numpy as np i…
clc; clear all; close all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); I=imread('4.jpg'); I=double(I); Image=I/255; angle = pi/4; centreX = 0.5; centreY = 0.5; radius=200; amount=0.75; [height, width, depth]=size(Image); Image_ne…
clc; clear all; close all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); I=imread('4.jpg'); I=double(I); Image=I/255; xScale = 20; yScale = 20; amount = 1; turbulence =0.25; Image_new=Image; [height, width, depth]=size(Image); Inde…
clc; clear all; close all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); I=imread('4.jpg'); I=double(I); Image=I/255; sz=size(Image); % set the parameters radius = 150; angle = pi/4; angle2=pi/4; sides=10; centerX = 0.5; % set the…
clc; clear all; close all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); I=imread('4.jpg'); Image=double(I)/255; [height, width, depth]=size(Image); rays = 25; radius = 25; amount = 25; % 1-100 color = [1.0, 1.0, 1.0]; % 0-1 random…
clc; clear all; close all; addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm'); I=imread('4.jpg'); I=double(I); Image=I/255; [height, width, depth]=size(Image); a = 200; b = 200; centreX = 0.5; centreY = 0.5; refractionIndex = 1.25; % >1…