我需要帮助将旋转视图中的选定点转换回原始图像中的相应点。例如,如果我在旋转的视图中点击左上角(0,0),它应该对应于原始图像中的(0,1280)。 无论旋转情况如何,解决方案的额外点都可以工作。 Original Image (1920 x 1280) Rotated View (for display on phone)
+----------------------------+ +--
目标:使用旋转矩阵产生旋转; private double[][] rotateX = {{1.00,0.00,0.00},{0.00,Math.cos(theta),Math.sin(-theta)},{0.00,Math.sin(theta),Math.cos(theta)}}; // Rotation matrice for x axis;
问题定义:输出不匹配预期; 预期输出: new