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));

추가 답변 (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