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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • eigen库教程_mkl库

    eigen库教程_mkl库1.Matrix类:定义:Matrix<类型,行,列>eigen库中封装好了一些常用的矩阵,例如:typedefMatrix<float,4,4>Matrix4f;当然我们也可以自己设置,矩阵的行和列可以设置为固定的值也可以设置动态的(Dynamic),小的尺寸用固定的,大的尺寸用动态的,使用固定尺寸可以避免动态内存的开辟。1)初始化…

    2022年10月18日
    3
  • 基于Linux的智能家居的设计(3)[通俗易懂]

    基于Linux的智能家居的设计(3)

    2022年2月6日
    37
  • javascript instanceof_javascript插件

    javascript instanceof_javascript插件连接:http://houliang4285.iteye.com/blog/1585157

    2022年10月14日
    1
  • Linux查找文件名_find命令查找文件夹名

    Linux查找文件名_find命令查找文件夹名linux下面查找文件夹名称find/-namedirName-d

    2025年7月29日
    7
  • 易中天 品三国

    易中天 品三国(一)大江东去观众朋友们大家好,从今天开始我们讲三国。说起三国,我们就会想起著名的赤壁之战,而说起赤壁之战,我们就会想起苏东坡那首著名的《赤壁怀古》——  “大江东去,浪淘尽,千古风流人物。故垒西边,人道是,三国周郎赤壁。乱石崩云,惊涛裂岸,卷起千堆雪。江山如画,一时多少豪杰。  遥想公瑾当年,小乔初嫁了,雄姿英发。羽扇纶巾,谈笑间,墙橹灰飞烟灭。故国神游,多情应笑我,早生华发。

    2022年6月9日
    45
  • redis集群客户端JedisCluster优化 – 管道(pipeline)模式支持

    redis集群客户端JedisCluster优化 – 管道(pipeline)模式支持redis集群客户端JedisCluster优化-管道(pipeline)模式支持Redis在3.0版正式引入了集群这个特性,扩展变得非常简单。然而当你开心的升级到3.0后,却发现有些很好用的功能现在工作不了了,比如我们今天要聊的pipeline功能。我们知道,普通的情况下,redisclient与server之间采用的是请求应答的模式,即:Client:command1

    2022年8月31日
    2

发表回复

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

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