10 2022 档案
摘要:1、运动模糊图像 2、逆滤波结果 3、计算噪信比K值滤波结果 4、调节噪信比K参数,显示不同的维纳滤波结果 clear; clc; close all; f = checkerboard(8); %调用棋盘板图像 %%将图像的数据格式转换为double型 f=im2double(f); %将灰度图像
阅读全文
摘要:/* 开发者:慢蜗牛 开发时间:2020.5.28 程序功能:开发公式Cnm */ #include<stdio.h> long fact_1(int m); long fact_2(int n, int m); long fact_1(int m) //求Cnm公示的分母 { int a = m;
阅读全文
摘要:直接上python代码 class Solution: def isPalindrome(self, x: int) -> bool: if x<0: //负数必不是回文数 return 1==0 sws = [] for i in str(x): //将x反转然后判断是否相等 sws.append
阅读全文
摘要:#include "reg52.h" //此文件中定义了单片机的一些特殊功能寄存器 typedef unsigned int u16; //对数据类型进行声明定义 typedef unsigned char u8; sbit LSA=P2^2; //定义管脚 sbit LSB=P2^3; sbit
阅读全文
摘要:#include "reg52.h" //此文件中定义了单片机的一些特殊功能寄存器 #include<intrins.h> //因为要用到左右移函数,所以加入这个头文件 typedef unsigned int u16; //对数据类型进行声明定义 typedef unsigned char u8;
阅读全文
摘要:利用迭代法对图像进行阈值分割。 clear; clc; % 图像的灰度化处理 JPG=imread('1.jpg'); JPG=rgb2gray(JPG); figure(); imshow(JPG);title('原始图像') % 迭代法阈值分割 T=mean2(JPG); %取均值作为初始阈值
阅读全文
摘要:利用理想低通、高斯低通、巴特沃斯低通滤波器进行滤波 利用理想高通、高斯高通、巴特沃斯高通滤波器进行滤波 clear; clc; % 图像的灰度化处理 JPG=imread('1.jpg'); JPG=rgb2gray(JPG); % 添加2%椒盐噪声 J=imnoise(JPG,'salt & pe
阅读全文