i have divided an image to blocks using reshape and i had performed some functions on it and i want to reconstruct the image with the changed blocks.can any body plz help me with it.
a=imread()
b=reshape(a,8,8,[])
X=a
for i=1:n
....
end
imwrite(b,X)
this is what i have tried

1 件のコメント

Rik
Rik 2019 年 1 月 15 日
Your code is a bit too vague to tell for sure, but can't you use reshape again to return to your normal image?
You could also consider using the blockproc function instead of that loop.

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

 採用された回答

Jan
Jan 2019 年 1 月 15 日

0 投票

I guess boldly:
b = reshape(b, size(a));

1 件のコメント

joelisa jose
joelisa jose 2019 年 1 月 16 日
thank you

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

その他の回答 (0 件)

タグ

質問済み:

2019 年 1 月 15 日

コメント済み:

2019 年 1 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by