finding the idwt2 of image

1 view (last 30 days)
OLUFEMI SONEYE
OLUFEMI SONEYE on 25 May 2019
Commented: OLUFEMI SONEYE on 26 May 2019
hello, I want to know what is wrong the below code especially line 5 that deals with finding the idwt2 of an image. This code is popping up error. Please, assist. Thank you.
CODE....................
t=0.10;
R = cat(3, Ir_LL, Ir_LL, Ir_LL);
newhost_LLr = R + (t * w_LL);
%newhost_LLr =Ir_LL+(t*w_LL);
r2=idwt2(newhost_LLr,Ir_LH,Ir_HL,Ir_HH,'haar');
figure(2);imshow(uint8(r2));title('Watermarked image of r component');
G = cat(3, Ig_LL, Ig_LL, Ig_LL);
newhost_LLr = G + (t * w_LL);
%newhost_LLg =Ig_LL+(t*w_LL);
g2=idwt2(newhost_LLg,Ig_LH,Ig_HL,Ig_HH,'haar');
figure(2);imshow(uint8(g2));title('Watermarked image of g component');
B = cat(3, Ib_LL, Ib_LL, Ib_LL);
newhost_LLr = B + (t * w_LL);
%newhost_LLb =Ib_LL+(t*w_LL);
b2=idwt2(newhost_LLb,Ib_LH,Ib_HL,Ib_HH,'haar');
figure(2);imshow(uint8(b2));title('Watermarked image of g component');
%imwrite(uint8(rgb2),'images/Watermarked33.jpg');
  3 Comments
Walter Roberson
Walter Roberson on 26 May 2019
What error is popping up?
OLUFEMI SONEYE
OLUFEMI SONEYE on 26 May 2019
Ir_LL is the low frequency part of the R component of RGB color component of an image.

Sign in to comment.

Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!