📄 plotf2d.m
字号:
function varargout=PlotF2D(F,TransMet,BlkDist,FontSize)% PlotF2D Plot the image blocks in frame F, F is size NxK
% and N is 4, 16, 64 or 256, TransMet must correspond to N
% BlkSize is then given by N (or TransMet), blocks are square.
% Image is made by takeing a sparse W with some few seperated ones, and
% do the reconstruction process on this W. Each block of this image is
% the the result of only one of the vectors in F.
% Before display these blocks may be seperated by "BlkDist" pixels,
% and blocks corresponding to a certain vector in F may be numbered.
%
% PlotF2D(F,TransMet,BlkDist,FontSize);
% Ir=PlotF2D(F,TransMet,BlkDist,FontSize);
% PlotF2D(eye(64),7,4,8); % plot the 8x8 DCT basis images
%----------------------------------------------------------------------
% arguments:
% F The representation vectors or dictionary, size NxK.
% if F is scalar and have values 1,2 or 3 we use the initial frames
% made by SetF01, SetF02 and SetF03 respectivly.
% TransMet An integer for the decomposition method that will be done.
% Note that this also give the blocksize.
% This is almost like used in Decom2D
% 1- 4 : NxN identity, N=[2,4,8,16]
% 5- 8 : NxN DCT, N=[2,4,8,16]
% 9-12 : 2N*N LOT, N=[2,4,8,16]
% 13-16 : 4N*N ELT, N=[2,4,8,16]% BlkDist Distance between each block (in pixels)
% FontSize >0 : Display numbers below each block using FontSize
% Ir The image that is plotted, (no distance between blocks)
%----------------------------------------------------------------------
%----------------------------------------------------------------------
% Copyright (c) 2000. Karl Skretting. All rights reserved.
% Hogskolen in Stavanger (Stavanger University), Signal Processing Group
% Mail: karl.skretting@tn.his.no Homepage: http://www.ux.his.no/~karlsk/
%
% HISTORY:
% Ver. 1.0 18.08.2000 KS: made function
% Ver. 1.1 29.08.2000 KS: changed input (and added output) arguments
% Ver. 1.2 28.10.2001 KS: changed name to PlotF2D, and some minor changes
% Ver. 1.3 27.11.2002 KS: moved from ..\Frames2D to ..\FrameTools%----------------------------------------------------------------------% Reorder og Decom2D m
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -