Matrix Coding
M=wcodemat(X,[MAX],[mode],[abso])
input double matrix
maximun integer
row-wise ('r' or 'row'), column-wise ('c' or 'col') or matrix coding ('m' or 'mat')
non-zero for absolute value coding, zero for original value coding
coded integer matrix with value ranging from 1 to MAX.
wcodemat is an utility of coding for displaying matrix. With coding scheme to specific colormap, the content matrix could be in pseudo-color.
x=rand(100,100); m=wcodemat(x,64); cmap=jetcolormap(64); y=ind2rgb(m,cmap); // function provided by SIP toolbox imshow(y); // funtion provided by SIP or SIVP toolbox | ![]() | ![]() |