I have to get the 8 overlapping neighbouring blocks for each 8x8 block of a 177x144 image. How can i get it
1 次查看(过去 30 天)
显示 更早的评论
I need to create a matrix using the vectorized blocks as columns. This H matrix is needed for compressive video sensing given by azghani as "multihypothesis compressed video sensing".
回答(1 个)
Massimo Zanetti
2016-10-9
Given columns A,B,C etc just put them together
H=[A,B,C]
To do it programmatically, save you columns in a cell and then invoke cell2mat:
%you might do this in a simple for loop
C={A,B,C,..}
%get your matrix
H=cell2mat(C);
3 个评论
Walter Roberson
2016-10-9
Note: in the compatibility section of the R2016b release notes, there is a warning that in future C{:} will only work for vector C .
Guillaume
2016-10-9
Hum, I can't see that. Which section is it under exactly?
That would also make absolutely no sense to me. Just as (:) reshape into one column, {:} should reshape as one comma-separated list.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!