简体   繁体   English

哈尔小波变换

[英]haar wavelet transform

I have a function which will calculate haar transformation for an image. 我有一个函数,可以计算图像的哈尔变换。 Now i am passing the pixel values of the image directly to the haar function for computation. 现在,我将图像的像素值直接传递给haar函数进行计算。 Iam not getting the original image back in LL sub band. 我无法在LL子波段中恢复原始图像。 Please help me whats wrong. 请帮我什么不对劲。 I am very sure the harr transform computation is correct. 我非常确定harr转换计算是正确的。 But I am not sure what values to pass. 但是我不确定要传递什么价值。 Please help 请帮忙

if you use RGB image , so you need to split it to 3 channels and get the Haar for each channel(red, green , blue). 如果使用RGB图像 ,则需要将其拆分为3个通道,并获取每个通道的Haar (红色,绿色,蓝色)。

if the image is Gray one , so use it's pixel direct in Haar Function 如果图像是灰度图像,则直接在Haar Function中使用它的像素

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

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