BuildNetworkfromIdxs.m 398 B

1234567891011121314151617181920
  1. function [ WXj ] = BuildNetworkfromIdxs( Xj, GenMat)
  2. %BUILDNETWORK Summary of this function goes here
  3. % Detailed explanation goes here
  4. mm = size(Xj,1);
  5. nn = size(Xj,2);
  6. kk = size(GenMat,1);
  7. WXj = zeros(mm*kk);
  8. for ii=1:nn
  9. x=reshape(GenMat(:,Xj(:,ii)),kk*mm,1);
  10. WXj=max(WXj,x*x');
  11. end
  12. WXj=uint8(WXj);
  13. % imshow(1-WXj,[0 1])
  14. end