Joining matrices while combining columns
古いコメントを表示
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 件のコメント
Jan
2011 年 9 月 7 日
@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
2011 年 9 月 8 日
採用された回答
その他の回答 (2 件)
Henrique
2011 年 9 月 8 日
0 投票
3 件のコメント
Henrique
2011 年 9 月 8 日
Fangjun Jiang
2011 年 9 月 8 日
See update.
Fangjun Jiang
2011 年 9 月 8 日
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
2011 年 9 月 12 日
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!