How to combine blocks of image into single image?

조회 수: 5 (최근 30일)
Anushka
Anushka 2015년 5월 30일
댓글: shital shinde 2020년 2월 14일
I have divided an image of size 256*256 into blocks of size 32*32 and changed the pixel values.Now I want to join this blocks with changed pixel value into one image.
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 5월 30일
How did you store them?
Jan
Jan 2015년 5월 30일
What is the connection between the question and the tags "coder" and "compiler"?

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

답변 (1개)

Image Analyst
Image Analyst 2015년 5월 30일
Just use indexing to assign them, or else stitch them together:
wideImage1 = [image1, image2, image3, ..... image32];
tallImage = [wideImage1; wideImage2, ..... wideImage32];
I don't know what form your individual images are stored in so I can't do more without guessing.
  댓글 수: 4
Image Analyst
Image Analyst 2018년 1월 28일
Please don't say you have a hundred thousand separately named variables!
shital shinde
shital shinde 2020년 2월 14일
any body please tell me or give the code that show how to divide image into multiple blocks and then merge them to get original image.
thank you

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

Community Treasure Hunt

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

Start Hunting!

Translated by