annotate util/ksvd utils/col2imstep.m @ 170:68fb71aa5339 danieleb

Added dictionary decorrelation functions and test script for Letters paper.
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Thu, 06 Oct 2011 14:33:41 +0100
parents c3eca463202d
children
rev   line source
idamnjanovic@70 1 %COL2IMSTEP Rearrange matrix columns into blocks.
idamnjanovic@70 2 % A = COL2IMSTEP(B,[MM NN],[N1 N2]) rearranges the columns of B into
idamnjanovic@70 3 % sliding N1-by-N2 blocks producing the matrix A of size MM-by-NN. B is
idamnjanovic@70 4 % usually the result of calling IM2COLSTEP(...) with a stepsize of 1, or
idamnjanovic@70 5 % using Matlab's IM2COL(..,'sliding'). Overlapping blocks are summed in A.
idamnjanovic@70 6 %
idamnjanovic@70 7 % A = COL2IMSTEP(B,[MM NN],[N1 N2],[S1 S2]) arranges the blocks in A with
idamnjanovic@70 8 % a step size of (S1,S2) between them. The first block is at A(1:N1,1:N2),
idamnjanovic@70 9 % and the rest are at A((1:N1)+i*S1,(1:N2)+j*S2). Overlapping blocks are
idamnjanovic@70 10 % summed in A. Note that B is usually the result of calling
idamnjanovic@70 11 % IM2COLSTEP(...) with a stepsize of [S1 S2].
idamnjanovic@70 12 %
idamnjanovic@70 13 % A = IM2COLSTEP(B,[MM NN KK],[N1 N2 N3],[S1 S2 S3]) generates a 3-D
idamnjanovic@70 14 % output matrix A. The step size [S1 S2 S3] may be ommitted, and defaults
idamnjanovic@70 15 % to [1 1 1].
idamnjanovic@70 16 %
idamnjanovic@70 17 % See also IM2COLSTEP, IM2COL, COUNTCOVER.
idamnjanovic@70 18
idamnjanovic@70 19
idamnjanovic@70 20 % Ron Rubinstein
idamnjanovic@70 21 % Computer Science Department
idamnjanovic@70 22 % Technion, Haifa 32000 Israel
idamnjanovic@70 23 % ronrubin@cs
idamnjanovic@70 24 %
idamnjanovic@70 25 % August 2009