摘要: 利用Sobel、Roberts、Prewitt、Canny、log和拉普拉斯算子进行边缘提取。 clear; clc; % 图像的灰度化处理 JPG=imread('1.jpg'); JPG=rgb2gray(JPG); I=im2double(JPG); % Sobel算子边缘检测 %BW=edg 阅读全文
posted @ 2023-05-19 08:40 放氮气的蜗牛 阅读(38) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void main() { int n, s=0; scanf_s("%d", &n); for (n; n > 0; n--) s += (1 + n) * n / 2; printf("%d", s); } 阅读全文
posted @ 2023-05-19 00:05 放氮气的蜗牛 阅读(48) 评论(0) 推荐(0) 编辑