Combining image after diving it into blocks

1 回表示 (過去 30 日間)
Ayesha
Ayesha 2014 年 5 月 15 日
コメント済み: shital shinde 2020 年 2 月 14 日
Hello,
I applied dwt on 500x500 image and split LL which is 254x254 into 16x16 block. Here's the code snippet which explains how I split the image:
imshow(block,[]); % LL block obtained after applying dwt over 500x500 image
newR=16;
newC=16;
r1=[newR*ones(1,wholeBlockRows),rem(rows,newR)];
c1=[newC*ones(1,wholeBlockCols),rem(columns,newC)];
i = 1;
for r=1:size(mat2cell(block,r1,c1);,1)
for c=1:size(mat2cell(block,r1,c1);,2)
split=ca{r,c};
i=i+1;
end
end
Two questions: 1. How could I recombine the 16x16 blocks together to form 254x254 image after this? 2. Excuse my arrogance but is applying idwt2 to the recombined 254x254 image enough to get the 500x500 image back?
  1 件のコメント
shital shinde
shital shinde 2020 年 2 月 14 日
will you please provide me your code of DWT by dividing image

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

採用された回答

Image Analyst
Image Analyst 2014 年 5 月 15 日
To stitch horizontally
wideImage = [image1, image2];
To stitch vertically
tallImage = [image1; image2];

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWavelet Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by