How to combine blocks of image into single image?

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 comentarios

How did you store them?
Jan
Jan el 30 de Mayo de 2015
What is the connection between the question and the tags "coder" and "compiler"?

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 30 de Mayo de 2015
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 comentarios

Can you please do the same by using loops ? I have more than 100000 blocks, so it is impossible to write like this. Thank you.
What form are your blocks stored in at the moment?
Image Analyst
Image Analyst el 28 de En. de 2018
Please don't say you have a hundred thousand separately named variables!
shital shinde
shital shinde el 14 de Feb. de 2020
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

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Functions en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Mayo de 2015

Comentada:

el 14 de Feb. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by