points1 = CORR.d.corr(:,:,1);
points2 = CORR.d.corr(:,:,2);
coresp = CORR.d.corr(:,:,3);

q1 = points1(coresp(:,1),:);
q2 = points2(coresp(:,2),:);

Q1 = [q1(:,1) q2(:,1)]';
Q2 = [q1(:,2) q2(:,2)]';