I am going through a couple of codes related to dictionary learning by patch extraction and couldnt understand the following line:
Ytraining = Y(:,1:230e3);
Code:
Im = double(imread('temp1.jpg'));Y = getPatches2D( Im , p , []);Y = reshape(Y,[p^2,size(Y,3)]);Y = bsxfun(@minus, Y, mean(Y));Ytraining = Y(:,1:230e3);Ytest = Y(:,230e3+1:233e3);clear Y
Best Answer