powered by
Given a learned dictionary D (m by p) matrix, this function plots all p atoms of D corresponding to p columns. Each column is mapped to a m1 by m2 small pactch.
PlotDic(D, n1 = NULL, n2 = NULL, m1 = NULL, m2 = NULL, title = NULL, color = F, background = "black")
Dictionary of size m by p
(Optional) Number of patches to be displayed in each column and each row. If specified, both n1 and n2 have to be specified.
(Optional) Size of the small patch to be mapped. Default is m1=m2=sqrt(m). If specified, both n1 and n2 have to be specified.
Title of the plot.
(Optional) If TRUE, the plot is generated using tim.colors() option. If FALSE, the plot is generated using gray scale. Default is FALSE.
(Optional) Backgroup color. Default is black.
Plot will be generated.
# NOT RUN { D=matrix(runif(64*100),nrow=64) # PlotDic(D) # }
Run the code above in your browser using DataLab