Error using integer wavelet transform

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
Walter Roberson 2022년 7월 1일

0 개 추천

[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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Lifting에 대해 자세히 알아보기

질문:

2022년 7월 1일

댓글:

2022년 7월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by