combining of pixels in matlab

i have split an 256*256 image into 4*4 pixels. Now i want to combine all the 4*4 pixels to form a 256*256 image. I have 16 blocks of 4*4 pixel values. Can anyone please tell me how to do it?? Thanks in advance...

Answers (1)

Stitch them together
stitchHorizontally = [image1, image2];
stitchVertically = [image1; image2];
Put in a loop to stitch them all together.

2 Comments

i have kept all the pixel values in the same variable and it is inside a loop only already.
If they're all already in the same variable then there's nothing to do, right? Unless that variable is a cell array or something.

Sign in to comment.

Categories

Find more on Images in Help Center and File Exchange

Asked:

on 8 Apr 2013

Community Treasure Hunt

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

Start Hunting!