简体   繁体   English

Haar小波问题

[英]Haar Wavelet Questions

I'm looking at this link: HaarWaveletTransform . 我正在查看此链接: HaarWaveletTransform Given an array of N sample points, it subdivides the array into two arrays of size N/2: 给定一个由N个采样点组成的数组,它将该数组细分为大小为N / 2的两个数组:

Array1: Averages adjacent sample points. Array1:对相邻采样点取平均值。 Array2: Computes a finite difference between sample points. Array2:计算采样点之间的有限差。

You can then apply recursively k many times. 然后,您可以递归地应用k次。 In the end you will get a low resolution averaged image and multiple levels of Array2 which help invert the operation to recover the original data. 最后,您将获得低分辨率的平均图像和多个级别的Array2,这有助于反转操作以恢复原始数据。

After the transform you still have as many data points as you originally had. 转换后,您仍然拥有与原始数据一样多的数据点。 So my question is: 所以我的问题是:

  1. How does this save memory? 这如何节省内存? I thought this was supposed to help with compression? 我以为这应该有助于压缩?

  2. What is the point? 有什么意义? Are some operations easier when you have the down sampled image and multiple levels of Array2? 当您具有向下采样的图像和多个级别的Array2时,某些操作会更容易吗?

  3. How do you get these filtering formulas? 您如何获得这些过滤公式? I thought for discrete wavelet transform you would have to solve some matrix equation to compute the coefficients for the wavelet basis functions. 我认为对于离散小波变换,您将必须解决一些矩阵方程,以计算小波基函数的系数。

Haar basis is a orthogonal basis, that contains not all data about one pixel (this is a canonical basis), but data about localized areas. Haar基础是正交基础,不包含有关一个像素的所有数据(这是规范基础),但是包含有关局部区域的数据。 So original image is a supersposition of all images that obtained after you will find all dot product between original image and haar basises (if you have 8x8 picture you need 64 basis functions) so, by applying analysis formula you will find coefficitents. 因此,原始图像是在原始图像和haar基之间找到所有点积之后获得的所有图像的叠加(如果您具有8x8图像,则需要64个基函数),因此,通过应用分析公式,您会发现系数。 Linear combination of haar basis and this coefficients will give you the original image. Haar基础和此系数的线性组合将为您提供原始图像。 But because of the properties of Haar Basis, when you cut half of this coefficients you do not cut half of your image, you just make that image less detalized. 但是由于Haar Basis的特性,当您削减此系数的一半时,您并未削减图像的一半,您只是在降低图像的清晰度。

as it shown here 如这里所示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM