1234567891011121314151617181920 |
- function [ WXj ] = BuildNetworkfromIdxs( Xj, GenMat)
- %BUILDNETWORK Summary of this function goes here
- % Detailed explanation goes here
- mm = size(Xj,1);
- nn = size(Xj,2);
- kk = size(GenMat,1);
-
- WXj = zeros(mm*kk);
-
- for ii=1:nn
- x=reshape(GenMat(:,Xj(:,ii)),kk*mm,1);
- WXj=max(WXj,x*x');
- end
-
- WXj=uint8(WXj);
- % imshow(1-WXj,[0 1])
- end
|