领域操作
滑动邻域操作函数:nlfilter()
列方向邻域操作函数:colfilt()
分离邻域操作函数:blockproc()
close all;clear all;clc;
I=imread('E:\Matlab_exercise\图片素材\beauty.jpg');
fun=@(block_struct) imrotate(block_struct.data,30);%获取分离块操作的函数句柄
I1=blockproc(I,[64 64],fun);%进行分离块操作
fun=@(block_struct) std2(block_struct.data);%获取分离块操作的函数句柄
I2=blockproc(I,[32 32],fun);