matlab图像处理常见函数及用法详解 —— 整理于2022.12.2 ,23.05—— clc;clear; %% 图片读取 RGB = imread('1.jpg'); % 图片读取 imshow(RGB) % 原图 %% 灰度 A = rgb2gray(RGB); %灰度 figure();subplot(121);imshow(A) %% 二值化 B = im2bw(RGB); % 二值化 subplot(122);imshow(B) %% 滤波器 h = [