comparison util/ksvd utils/col2imstep.m @ 70:c3eca463202d

(none)
author idamnjanovic
date Wed, 16 Mar 2011 14:16:57 +0000
parents
children
comparison
equal deleted inserted replaced
69:5f1f436057ca 70:c3eca463202d
1 %COL2IMSTEP Rearrange matrix columns into blocks.
2 % A = COL2IMSTEP(B,[MM NN],[N1 N2]) rearranges the columns of B into
3 % sliding N1-by-N2 blocks producing the matrix A of size MM-by-NN. B is
4 % usually the result of calling IM2COLSTEP(...) with a stepsize of 1, or
5 % using Matlab's IM2COL(..,'sliding'). Overlapping blocks are summed in A.
6 %
7 % A = COL2IMSTEP(B,[MM NN],[N1 N2],[S1 S2]) arranges the blocks in A with
8 % a step size of (S1,S2) between them. The first block is at A(1:N1,1:N2),
9 % and the rest are at A((1:N1)+i*S1,(1:N2)+j*S2). Overlapping blocks are
10 % summed in A. Note that B is usually the result of calling
11 % IM2COLSTEP(...) with a stepsize of [S1 S2].
12 %
13 % A = IM2COLSTEP(B,[MM NN KK],[N1 N2 N3],[S1 S2 S3]) generates a 3-D
14 % output matrix A. The step size [S1 S2 S3] may be ommitted, and defaults
15 % to [1 1 1].
16 %
17 % See also IM2COLSTEP, IM2COL, COUNTCOVER.
18
19
20 % Ron Rubinstein
21 % Computer Science Department
22 % Technion, Haifa 32000 Israel
23 % ronrubin@cs
24 %
25 % August 2009