PS 图像特效-非线性滤波器

利用非线性滤波器,使图像的色彩凝块,形成一种近似融化的特效。


clc;
clear all;
addpath('E:PhotoShop AlgortihmImage ProcessingPS Algorithm');
Image=imread('4.jpg');
Image=double(Image);
size_info=size(Image);  
height=size_info(1);  
width=size_info(2);  
N=3;
Image_out=Image;

for i=1+N:height-N  
    for j=1+N:width-N
             Image_out(i,j,:)=min(min(Image(i-N:i+N,j-N:j+N,:)));
    end  
end  
imshow(Image_out/255);  


 原图


 效果图


原文地址:https://www.cnblogs.com/mtcnn/p/9412686.html