如何使用opencv(c ++)比较2个图像并找到它的大小? [英] How can i compare 2 images and find its size using opencv (c++)?

查看:636
本文介绍了如何使用opencv(c ++)比较2个图像并找到它的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2张图片。我想将图像中的对象与另一张图片进行比较。将第一张图像作为图像中的玩偶(10CM)进行比较。第2张图片是玩具的图像,包括玩偶(10CM)对象。我想在第二张照片中找到玩偶(10CM)。



如果其中一张照片是仿射变换,那么我该如何比较这两张照片。另外我想测量图像中的对象大小。



我尝试过:



我正在使用Visual Studio 2013.在Vc ++中尝试OpenCv代码。在我使用EMGUCV和C#之前。我无法从图像中找到物体旋转角度。所以我在OpenCV中尝试。我是新手。

I Have 2 Images. I want to compare the object in an image with another picture.Consider 1st image as a doll(10CM) in an image. 2nd image is the image of toys including the doll(10CM) object. I Want to find the doll(10CM) in the 2nd pic.

if one pic among them is in affine transform, then how can I compare the 2 images. Also I want to measure the object size in an image.

What I have tried:

I am using Visual studio 2013. Trying OpenCv code in Vc++. Before i used EMGUCV with C#. I can't able to find the object rotation angle from an image. so i am trying in OpenCV. i m new to this.

推荐答案

您正在尝试处理图像处理中最困难的一个主题。正如你所说,你是这个主题的新手。我认为你必须先采取较小的步骤,先熟悉基本的图像处理技术。从这样的项目开始,就像钢琴协奏曲的初学者一样,在开始演奏主要音阶之前,先从钢琴协奏曲开始。
You are trying yourself on one of the most difficult subjects in image processing. And as you say you are new to the subject. I think you will have to take smaller steps and get acquainted to the elementary image processing techniques first. Starting with a project like this is like a beginner in piano playing starting with a piano concerto before even managing to play the major scales.


这篇关于如何使用opencv(c ++)比较2个图像并找到它的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆