[英]Marking an interest point in an image using c++
I have a bitmap image like this 我有这样的位图图像
My requirement is to create a GUI to load the image and for changing the contrast and other things on the image and algorithm to mark the particular area in silver colour as shown in the fig using C++ or C#.I am new to image processing and through my search I have found out that I can use the Histogram of the image for finding the required area.These are the steps.
我的要求是创建一个GUI来加载图像并更改图像上的对比度和其他内容,并使用C ++或C#如图所示将算法标记为银色的特定区域。我的搜索发现我可以使用图像的直方图查找所需区域。这些是步骤。
Can someone suggest me how can I proceed from here.Can I use Opencv for this or any other efficient methods are available..? 有人可以建议我如何从这里继续。我可以为此使用Opencv还是可以使用其他任何有效的方法。
NOTE: 注意:
This image have many bright points and the blob algorithm is not successful.
该图像具有许多亮点,并且斑点算法不成功。 Any other suggestions to retrieve the correct coordinates of the rectangle like object.
任何其他建议来检索矩形(如对象)的正确坐标。
Thanks 谢谢
OpenCV should work. OpenCV应该工作。
adaptiveThreshold
converts it to black and white adaptiveThreshold
将其转换为黑白 Eg have a look at the Simple Blob Detector
which lists the basic steps needed. 例如,查看
Simple Blob Detector
,其中列出了所需的基本步骤。 Your silver rectangle certainly qualifies as "simple blob" (no holes or other hard bits) 您的银色矩形肯定符合“简单斑点”(没有孔或其他硬位)的条件
If all of your pictures look like that, it seems to me not complicate to segment the silver area and find its centre. 如果您的所有图片看起来都是这样,那么在我看来,分割银色区域并找到其中心并不复杂。 Basically you will need to apply these algorithms in the sequence below:
基本上,您将需要按以下顺序应用这些算法:
These algorithms are classical image processing, I guess it wouldn't be hard to find then. 这些算法是经典的图像处理,我想届时将不难发现。 In any case, I may have they implemented in C# and I can post here latter in case you think they solve your problem.
无论如何,我可能都用C#实现了它们,如果您认为它们可以解决您的问题,我可以在此处发布后者。
可能是Directshow的一项研究,Microsoft的多媒体框架将帮助您完成任务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.