码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Matlab 中值滤波原理分析



    1 Median Filtering 中值滤波


    The function medfilt1 implements one-dimensional median filtering, a nonlinear technique that applies a sliding window to a sequence.

    medfilt1是中值滤波的一维实现,是一种对序列进行滑动窗口处理类的非线性技术。

    The median filter replaces the center value in the window with the median value of all the points within the window [5].

    在窗口内,中值滤波将中心点数值用所有点的中值来替代。

    In computing this median, medfilt1 assumes zeros beyond the input points.

    计算中值时,medfilt1假设输入点以外都是0.

    When the number of elements n in the window is even, medfilt1 sorts the numbers, then takes the average of the n/2 and n/2 + 1 elements.

    当序列的窗口内点数n为偶数个时,medfilt1首先对点号进行排序,然后取n/2和n/2+1个元素的平均。

    Two simple examples with fourth- and third-order median filters are

    下面给出四阶和三阶中值滤波的例子
    medfilt1([4 3 5 2 8 9 1],4)
    ans =
        1.500 3.500 3.500 4.000 6.500 5.000 4.500

    首先看四阶的,序列为[4 3 5 2 8 9 1]

    i=1时,窗口=[0 0 4 3] 第n/2个=0 第n/2+1个=3 均值为1.5

    i=2时,窗口=[0 4 3 5] 第n/2个=3 第n/2+1个=4 均值为3.5

    i=3时,窗口=[4 3 5 2] 第n/2个=3 第n/2+1个=4 均值为3.5

    i=4时,窗口=[3 5 2 8] 第n/2个=3 第n/2+1个=5 均值为4

    medfilt1([4 3 5 2 8 9 1],3)
    ans =
         3     4     3     5     8     8     1

    接下来看三阶的,序列为[4 3 5 2 8 9 1]

    当i=1时,窗口=[0 4 3]中值为3

    <
  • 相关阅读:
    我的用户留言案例哪位懂的能帮我看一下
    模仿Android微信小程序,实现小程序独立任务视图的效果
    【废话文学】各种概念混搭
    Day1:数据结构&算法之顺序表
    无代码开发关联报表入门教程
    mybatis和mybatiplus中Error attempting to get column ‘xx‘ from result set
    Pycharm的安装和使用
    Spring源码系列-框架中的设计模式
    Django笔记二十五之数据库函数之日期函数
    力扣刷题day49|647回文子串、516最长回文子序列
  • 原文地址:https://blog.csdn.net/zjjsd195/article/details/126728260
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号