%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This is a demo file
% I is the input image
% NThresholds: The number of thresholds required. It lies between
% 1 and (the difference between the maximum and minimum
% graylevel present in the image)
% This code is for thresholding of gray-scale images of 8-bit depth.
% Color images can also be inputted to this code. But it will be converted
% to gray-scale image by the code before starting the thresholding algorithm
close all
I = imread(‘55067.jpg’);
NThresholds = 3;
if size(I,3)==3
I=rgb2gray(I);
end
for i=1:size(I,3)
cI(:,:,i) = thresholdImage(I(:,:,i),NThresholds);
end
figure,subplot(1,2,1),imshow(I),title(‘Original Image’);
subplot(1,2,2),imshow(cI),title(strcat(‘Thresholded Image
(’,num2str(NThresholds),’ Thresholds)'));
程安排
第一讲
2022.11.15 18:00-19:00
PolarDB-X部署与运维
即将上线,尽情期待
立即学习
第二讲
2022.11.16 18:00-19:00
PolarDB-X数据导入导出
即将上线,尽情期待
第三讲
2022.11.17 18:00-19:00
PolarDB-X进行TP负载测试
即将上线,尽情期待
第四讲
2022.11.18 18:00-19:00
PolarDB-X分区管理
即将上线,尽情期待
第五讲
2022.11.21 18:00-19:00
PolarDB-X的数据TTL过期删除
即将上线,尽情期待
第六讲
2022.11.22 18:00-19:00
PolarDB-X冷热数据归档
即将上线,尽情期待
第七讲
2022.11.23 18:00-19:00
PolarDB-X读写分离与HTAP

技术
下载桌面版
GitHub
百度网盘(提取码:draw)
Gitee
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:766591547
关注微信