Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image 旋转后的图像边界_Image_Image Processing_Graphics_Computer Vision_Julia - Fatal编程技术网

Image 旋转后的图像边界

Image 旋转后的图像边界,image,image-processing,graphics,computer-vision,julia,Image,Image Processing,Graphics,Computer Vision,Julia,我试图在旋转的图像中找到关键点,然后使用fastcorners进行二次采样。我的代码: tfm = Translation((r/2)-1,(c/2)-1) ∘ LinearMap(RotMatrix(-theta)) ∘ Translation(-((r/2)-1),-((c/2)-1)) uR = warp(img1, inv(tfm), indices(img1)) uT = subSample(uR, axes(uF)[1][1], axes(uF)[1][end], t) kpts

我试图在旋转的图像中找到关键点,然后使用fastcorners进行二次采样。我的代码:

tfm = Translation((r/2)-1,(c/2)-1) ∘ LinearMap(RotMatrix(-theta)) ∘ Translation(-((r/2)-1),-((c/2)-1))
uR = warp(img1, inv(tfm), indices(img1))
uT = subSample(uR, axes(uF)[1][1], axes(uF)[1][end], t) 
kpts = Keypoints(fastcorners(uT, 12, 0.5))
垂直方向的二次采样。所以合成的图像不再是一个 矩形而不是平行四边形

现在,我想移除旋转和二次采样图像边界上的关键点(例如,与扭曲图像边界的d距离,平行四边形)。 你们能给我一些建议吗?kpts存储畸变图像中关键点的笛卡尔坐标。
谢谢

对于每个关键点,使用逆变换(包括逆子采样)对其进行变换,然后检查它们是否位于原始图像的边界上。

使用上述公式从特征点的坐标找到扭曲图像的每个角点的距离。然后通过上采样,然后执行反向旋转,找到原始图像中关键点的坐标