代码搜索:16
找到约 10,000 项符合「16」的源代码
代码结果 10,000
www.eeworm.com/read/469046/6984127
m 16-6.m
I = imread('pearlite.tif');
bw = ~im2bw(I,graythresh(I));
figure, imshow(bw), title('threshold')
se = strel('disk',6);
bw2 = imclose(bw,se);
figure, imshow(bw2), title('closing')
www.eeworm.com/read/469046/6984128
m 16-13.m
BW = imread('text.tif');
L = bwlabel(BW);
stats = regionprops(L,'all');
stats(23)
www.eeworm.com/read/469046/6984129
m 16-1.m
se1 = strel('square',5)
% 5×5的正方形
se2 = strel('line',3,45)
% 直线,长度为3,角度为45度
se3 = strel('disk',5)
% 圆盘,半径为5
se4 = strel('ball',3,5)
% 椭圆体, 半径为3,高度为5
www.eeworm.com/read/469046/6984130
m 16-5.m
I = imread('nodules1.tif');
bw = ~im2bw(I,graythresh(I));
imshow(bw), title('Thresholded Image')
se = strel('disk',5);
bw2 = imopen(bw,se);
figure, imshow(bw2), title('After opening')
www.eeworm.com/read/469046/6984131
m 16-18.m
lut = makelut('sum(x(:)) == 4',2);
BW1 = imread('text.tif');
BW2 = applylut(BW1,lut);
imshow(BW1)
figure, imshow(BW2)
www.eeworm.com/read/469046/6984132
m 16-12.m
BW = imread('circbw.tif');
imshow(BW)
SE = ones(5);
BW2 = imdilate(BW,SE);
%图像膨胀
figure,imshow(BW2)
increase = (bwarea(BW2) - bwarea(BW))/bwarea(BW)
%面积扩大的比率
www.eeworm.com/read/469046/6984133
m 16-3.m
bw = imread('text.tif');
se = strel('line',11,90);
% 创建线形Strel对象
bw2 = imdilate(bw,se);
% 膨胀图像
imshow(bw), title('原图像')
figure, imshow(bw2), title('膨胀图像')
www.eeworm.com/read/469046/6984134
m 16-19.m
I = imread('cameraman.tif');
se = strel('ball',5,5);
% 创建strel结构
I1 = imdilate(I,se);
% 灰度图像的膨胀
subplot(131)
imshow(I), title('Original')
subplot(132)
imshow(I1), title('Dilated')
I2 = imerod
www.eeworm.com/read/469046/6984135
m 16-22.m
I = imread('bonemarr.tif');
regmax = imregionalmax(I);
subplot(121)
imshow(regmax)
title('极大值区域')
regmin = imregionalmin(I);
subplot(122)
imshow(regmin)
title('极小值区域')
www.eeworm.com/read/469046/6984136
m 16-9.m
BW1 = imread('circbw.tif');
BW2 = bwperim(BW1,8);
imshow(BW1)
figure, imshow(BW2)