clc
clear all
dir = 'image/56.jpg';
img = imread(dir);
imggray = rgb2gray(img);%灰度处理
imggray = imresize(imggray, [256,256]); %图像大小高宽需相等
s = qtdecomp(imggray, 0.2); %四叉树分解,阈值自定
s2 = full(s);
subplot(1,2,1);
imshow(imggray);
subplot(1,2,2);
imshow(s2);
【MATLAB】数字图像处理--四叉树分割图像
于 2022-04-10 16:13:28 首次发布