Tag: 图像拼接

拼接2张图片(OpenCV)

我正在尝试使用OpenCV Java API将两个图像拼接在一起。 但是,我得到错误的输出,我无法解决问题。 我使用以下步骤:1。检测function2.提取function3.匹配function。 4.找到单应性5.找到透视变换6.扭曲透视7.’缝合’2个图像,组合成图像。 但在某个地方,我出错了。 我认为这是我梳理2张图片的方式,但我不确定。 我在2张图片之间获得了214个不错的function匹配,但无法拼接它们? public class ImageStitching { static Mat image1; static Mat image2; static FeatureDetector fd; static DescriptorExtractor fe; static DescriptorMatcher fm; public static void initialise(){ fd = FeatureDetector.create(FeatureDetector.BRISK); fe = DescriptorExtractor.create(DescriptorExtractor.SURF); fm = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE); //images image1 = Highgui.imread(“room2.jpg”); image2 = Highgui.imread(“room3.jpg”); //structures for the keypoints from the 2 […]