matlab - how to rearrange each block into a column vector? -


this question has answer here:

example: have image,it's size 512x512pixel,then have splited 8x8 blocks.now have 64x64 blocks.now how rearrange each block 8x8 column vector dimension 64x4096pixel without inbuilt function "im2col".please me out. thanks.

x=rand(512,512); xi=mat2cell(x,8*ones(1,64),8*ones(1,64)); xii=cellfun(@(x)reshape(x,1,64),xi,'uniformoutput',false); y=cell2mat(xii); 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -