Joining matrices while combining columns
Ältere Kommentare anzeigen
hello...
i have about 1,500 640x480 matrices that need to be joined both horizontally and vertically. while joining them, i need to overlap the border rows and columns creating an average and replacing the original columns with the average.
simple example while looking at a two column and row overlap;
if i have four 6x6 matrices;
A B C D
i need to combine to create an average of each individual number on column 5 of matrix A with column 1 of matrix B. then do the same with column 6 of A and column 2 of B. do the same for C and D.
then you would end up with two new 6x10 matrices;
E F
i also need to join these two with the same operation but now using the rows. in the end, i end up with a single 10x10 matrix.
these are 'photos' that need to be used to created a 'collage' that has an overlap (average) between each single image.
looking for something that lets me pick the number of pixels i overlap to create an average and eventually a single (huge) picture. i have about 12 rows of 125 pictures to be joined.
any ideas?
i can get it to kinda work but don't know matlab enough to know any short cuts and lean programming. i have used loops and concatenating but i am having no luck.
thanks, kiko
2 Kommentare
Jan
am 7 Sep. 2011
@Henrique: I do not like to be contacted by email. The underlying sense of this forum is, that it is public. Pushing mails do not motivate me to give more or better answers.
Btw., I neither did answer to http://www.mathworks.nl/matlabcentral/newsreader/view_thread/311394, nor has this thread been created in 2009.
Please post the code you have created and explain in detail, what "no luck" means.
Henrique
am 8 Sep. 2011
Akzeptierte Antwort
Weitere Antworten (2)
Henrique
am 8 Sep. 2011
0 Stimmen
3 Kommentare
Henrique
am 8 Sep. 2011
Fangjun Jiang
am 8 Sep. 2011
See update.
Fangjun Jiang
am 8 Sep. 2011
Update, use image() instead of pcolor() to show the picture. If you don't have image(), then still use pcolor() but be aware the number of gird is 1 less of the size.
Henrique
am 12 Sep. 2011
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!