网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

python中如何获得小波变换的低频图像

时间:2024-10-16 13:12:56

1、读取灰度图:import cv2from pywt import dwt2, idwt2img = cv2.imread('稆糨孝汶;0.png',0)m,n=img.shape图像是512*512 dps的。

python中如何获得小波变换的低频图像

2、对img进行haar小波变换:p,(q,r,s)=d嘛术铹砾wt2(img,'haar')显示小波变换之后,p对应的图像:import 荏鱿胫协numpy as npcv2.imwrite('02.png',np.uint8(p))

python中如何获得小波变换的低频图像

3、q对应的图像:

python中如何获得小波变换的低频图像

4、r对应的图像:

python中如何获得小波变换的低频图像

5、s对应的图像:

python中如何获得小波变换的低频图像

6、换个例子:

python中如何获得小波变换的低频图像python中如何获得小波变换的低频图像

7、上面的灰度图,经过haar小波变换之后的低频信息是p:

python中如何获得小波变换的低频图像
© 2025 阿力知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com