Error using integer wavelet transform

2 ビュー (過去 30 日間)
Noor Fatima
Noor Fatima 2022 年 7 月 1 日
コメント済み: Walter Roberson 2022 年 7 月 1 日
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{:});
  2 件のコメント
KSSV
KSSV 2022 年 7 月 1 日
Attach your image.
Noor Fatima
Noor Fatima 2022 年 7 月 1 日
@KSSV Attached

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 7 月 1 日
[cA, cH, cV, cD] = lwt2(double(data), 'LiftingScheme', liftscheme);
  2 件のコメント
Noor Fatima
Noor Fatima 2022 年 7 月 1 日
@Walter Roberson thank you for your respose but geeting the following error
Error using lwt2>lwtParser
Invalid data type. 'LiftingScheme' value must be a liftingScheme object.
Error in lwt2 (line 73)
[LS,ext,level,wv,isI2I] = lwtParser(lx,varargin{:});
Walter Roberson
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 ExchangeDiscrete Multiresolution Analysis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by