art2 matlab,Inverse 2-D Haar wavelet transform

Obtain the 2-D Haar transform of an image limiting the transform to 2 levels.

Load and view the image of a cameraman.

im = imread('cameraman.tif');

imagesc(im)

4d79ff9c83ec7b26af5dc10c07b4f306.png

Obtain the 2-D Haar transform using the default maximum number of levels.

[a,h,v,d] = haart2(im);

Reconstruct the image using the inverse 2-D Haar transform and view the image. Notice the near-perfect reconstruction.

xrec = ihaart2(a,h,v,d);

imagesc(xrec)

05aa410fb8c0435454889167ed7cf02f.png

Reconstruct and view the image using the inverse 2-D Haar transform, limited to level 2. Level 2 corresponds to the fourth scale because scale is defined as 2j, where j is the level.

xrec1 = ihaart2(a,h,v,d,2);

imagesc(xrec1)

dd86ce432aab6865187eb86a0597ed83.png

Using fewer levels returns the average of the original image at level 2.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值