【发布时间】:2015-02-06 13:35:44
【问题描述】:
我在残差图像中应用双边滤波器(residel image=image origianle-image with weavlet transform) 错误是
使用 bfilter2 时出错(第 35 行) 输入图像 A 必须是大小为 NxMx1 的双精度矩阵 或闭区间 [0,1] 上的 NxMx3。
我尝试使用以下方法标准化我的数据:
f = rand(256,256)
normf = max(f) - min(f); % this is a vector
normf = repmat(normf, [length(f) 1]); % this makes it a matrix
% of the same size as A
normalizedf = f./normf;
矩阵中的值变为 [0,1] 之间但错误仍然相同 注意:我使用的双边滤波器是 B = bfilter2(A,W,SIGMA) 对灰度或彩色图像 A 执行二维双边滤波。A 应该是大小为 NxMx1 或 NxMx3 的双精度矩阵(即灰度或彩色图像,分别)在闭合区间 [0,1] 中具有归一化值。高斯双边滤波器窗口的一半大小由 W 定义。双边滤波器的标准偏差由 SIGMA 给出,其中空间域标准偏差由 SIGMA(1) 给出,强度域标准偏差由通过 SIGMA(2)。 注意:我的图片尺寸是
【问题讨论】:
标签: image matlab matrix filter