How can I convert this to the dimensions (Q, 2, 2) so that the length/first dimension represents the number of matched_keypoints?