Error using integer wavelet transform
3 次查看(过去 30 天)
显示 更早的评论
I'm interested in decomposing the image using integer wavelet transform.
I have tried the following
liftscheme = liftwave('haar','int2int');
data = imread('image.jpg'); % the image is in unit8
[cA cH cV cD]=lwt2(double(data),liftscheme);
But I'm getting the following error. My MATLAB version is R2022a
Error using parseParameterInputsML
Expected a parameter name.
Error in coder.internal.parseParameterInputs (line 91)
pstruct = parseParameterInputsML({},parms,options,varargin);
Error in lwt2>lwtParser (line 443)
pArg = coder.internal.parseParameterInputs(parms,poptions,varargin{:});
Error in lwt2 (line 73)
[LS,ext,level,wv,isI2I] = lwtParser(lx,varargin{:});
回答(1 个)
Walter Roberson
2022-7-1
[cA, cH, cV, cD] = lwt2(double(data), 'LiftingScheme', liftscheme);
2 个评论
Walter Roberson
2022-7-1
It appears that liftwave returns a struct rather than an object. See the compatibility section for replacement code
https://www.mathworks.com/help/wavelet/ref/liftwave.html
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Multiresolution Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!