comparison util/SMALL_showdict.m @ 128:8e660fd14774 ivand_dev

Feature 186
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 13 Jun 2011 14:55:45 +0100
parents 028599837f1d
children
comparison
equal deleted inserted replaced
126:db5a7fe1a404 128:8e660fd14774
1 function x = SMALL_showdict(D,sz,n,m,varargin) 1 function x = SMALL_showdict(D,sz,n,m,varargin)
2 %% SMALL_SHOWDICT Display a dictionary of image patches. 2 %% SMALL_SHOWDICT Display a dictionary of image patches.
3 %% Reimplementation of showdict function from KSVD toolbox with Image 3 % Reimplementation of showdict function from KSVD toolbox with Image
4 %% Processing toolbox dependecies removed 4 % Processing toolbox dependecies removed
5 % 5 %
6 % SMALL_SHOWDICT(D,SZ,N,M) displays the contents of the dictionary D, whos 6 % SMALL_SHOWDICT(D,SZ,N,M) displays the contents of the dictionary D, whos
7 % columns are 2-D image patches (in column-major order). SZ = [SX SY] is 7 % columns are 2-D image patches (in column-major order). SZ = [SX SY] is
8 % the size of the image patches. SHOWDICT displays the atoms on an N x M 8 % the size of the image patches. SHOWDICT displays the atoms on an N x M
9 % grid. If there are more atoms in D then only the first N*M are 9 % grid. If there are more atoms in D then only the first N*M are
22 % figure to [0,1] as one image). Note that in this way, the relative 22 % figure to [0,1] as one image). Note that in this way, the relative
23 % intensities of the atoms are not maintained. 23 % intensities of the atoms are not maintained.
24 % 24 %
25 % X = SMALL_SHOWDICT(...) returns a bitmat of the dictionary image without 25 % X = SMALL_SHOWDICT(...) returns a bitmat of the dictionary image without
26 % displaying the figure. 26 % displaying the figure.
27
28 27
29 % Centre for Digital Music, Queen Mary, University of London. 28 % Centre for Digital Music, Queen Mary, University of London.
30 % This file copyright 2011 Ivan Damnjanovic. 29 % This file copyright 2011 Ivan Damnjanovic.
31 % 30 %
32 % This program is free software; you can redistribute it and/or 31 % This program is free software; you can redistribute it and/or