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.
카테고리
도움말 센터 및 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!