matlab中wavedec2,2-D wavelet decomposition

matlab中wavedec2,2-D wavelet decompositionThisexampleshowsthestructureofwavedec2outputmatrices.Loadanddisplayanimage.loadwomanimagesc(X)colormap(map)Savethecurrentdiscretewavelettransformextensionmode.origMode=dwtmode(‘s…

大家好,又见面了,我是你们的朋友全栈君。

This example shows the structure of wavedec2 output matrices.

Load and display an image.

load woman

imagesc(X)

colormap(map)

c109d7b0bb6dd927a2834578d9e62792.png

Save the current discrete wavelet transform extension mode.

origMode = dwtmode(‘status’,’nodisplay’);

Change to periodic boundary handling. The dwtmode function displays a message indicating that the DWT extension mode is changing.

dwtmode(‘per’)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! WARNING: Change DWT Extension Mode !

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

*****************************************

** DWT Extension Mode: Periodization **

*****************************************

Perform a level 3 decomposition of the image using the db1 (Haar) wavelet.

[c,s] = wavedec2(X,3,’db1′);

Return the number of elements in the image X and coefficient vector c. Confirm the number of elements in each are equal.

numel(X)

ans = 65536

numel(c)

ans = 65536

Display the bookkeeping matrix s. The first row displays the dimensions of the coarse scale approximation of the image. The last row displays the dimensions of the original image. The intermediate rows display the dimensions of the detail coefficients at the three levels of the decomposition, proceeding from coarse to fine scale.

s

s = 5×2

32 32

32 32

64 64

128 128

256 256

Reset discrete wavelet transform extension mode to its original mode.

dwtmode(origMode,’nodisplay’)

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/163770.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • linux0.11_linux常用命令

    linux0.11_linux常用命令前言所有的UnixLike系统都会内建vi文书编辑器,其他的文书编辑器则不一定会存在。但是目前我们使用比较多的是vim编辑器。vim具有程序编辑的能力,可以主动的以字体颜色辨别语法的

    2022年7月28日
    4
  • C#截屏

    本实例代码实现了WinForm截屏保存为图片,亲测可行。界面截图:下载:http://hovertree.com/h/bjaf/scjyuanma.htm以下代码可以实际运行,在项目HoverTree

    2021年12月27日
    62
  • react 创建新页面_如何新建react项目「建议收藏」

    在开发React项目前最关键的当然是项目的创建,现在的前端工程化使得前端项目的创建也变得越来越复杂,今天我们介绍的是浏览器中直接引入的方式搭建react项目。如何新建react项目前文中,我们介绍过了2种react项目的搭建方式,分别是webpack的方式搭建和create-react-app脚手架的方式搭建感兴趣的同学可以点击下方链接,进行学习。webpack的方式搭建项目:怎样搭建rea…

    2022年4月14日
    138
  • 沃舍尔算法求传递闭包_离散数学传递闭包

    沃舍尔算法求传递闭包_离散数学传递闭包给定 n 个变量和 m 个不等式。其中 n 小于等于 26,变量分别用前 n 的大写英文字母表示。不等式之间具有传递性,即若 A>B 且 B>C,则 A>C。请从前往后遍历每对关系,每次遍历时判断:如果能够确定全部关系且无矛盾,则结束循环,输出确定的次序;如果发生矛盾,则结束循环,输出有矛盾;如果循环结束时没有发生上述两种情况,则输出无定解。输入格式输入包含多组测试数据。每组测试数据,第一行包含两个整数 n 和 m。接下来 m 行,每行包含一个不等式,不等式全部为小于关系

    2022年8月10日
    12
  • HTML、CSS、JavaScript学习总结

    HTML、CSS、JavaScript学习总结学习总结HTML网站开发的主要原则是:– 用标签元素HTML描述网页的内容结构;– 用CSS描述网页的排版布局;– 用JavaScript描述网页的事件处理,即鼠标或键盘在网页元素上的动作后的程序HTML(Hyper Text Mark-up Language 超文本标记语言)的缩写,是最基础的网页语言 。 Html是通过标签来定义的语言,代码都是由标签所组成 。Htm

    2022年5月16日
    34
  • html refresh原理,HTML meta refresh 刷新与跳转(重定向)页面

    html refresh原理,HTML meta refresh 刷新与跳转(重定向)页面下面为各位整理了一些HTMLmetarefresh刷新与跳转(重定向)页面的例子吧,后面本站长自己也补充了一些js页面刷新与跳转例子吧。refresh属性值–刷新与跳转(重定向)页面refresh用于刷新与跳转(重定向)页面refresh出现在http-equiv属性中,使用content属性表示刷新或跳转的开始时间与跳转的网址refresh示例5秒之后刷新本页面:5秒之后转到梦之都首…

    2022年7月18日
    20

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号