用几个可用的点作物感兴趣的区域 [英] Crop the region of interest with few points available

查看:182
本文介绍了用几个可用的点作物感兴趣的区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了凸包和凸包缺陷,发现手中的点如下所示。



>



如上图所示,如何修剪红色区域(Knuckle),如下图所示:



我的目的是检测手中的指关节。



注意:绘制的绿色区域使用绘制轮廓。是否可以使用此区域裁剪红色标记区域(指关节)。如何裁剪这些区域。





更新(26/2/2014):



轮廓点如下。利用下面的信息,可以找到转向节区域。有任何方法可以使用积分。



解决方案

如果你的想法是检测那些红色区域,你可以使用以下简单的想法。 >


  1. 获取边缘图像并移除绿色边界外的边缘。



  2. 在每个垂直直方图中,找到峰值邻域内的值。 (让我们称之为Peak Bins)

  3. 最长的连续序列的峰段应该给出答案。


I have used convex hull and convexity defects and found the points in the hand as shown below.

With the above points information available, how can I crop the region marked in red (Knuckle) as shown in the below image.

My intention is to detect the Knuckles in the hand.

Note: The green region drawn is using "Draw contours". Is it possible to use this region to crop the red marked area ( Knuckle ). How to crop these regions.

Update ( 26/2/2014 ):

I have found contour points as below. With the below information in hand is it possible to find the knuckle region. Is there any ways to find using the points.

解决方案

If your idea is to detect those red areas you can use the following simple idea.

  1. Get edge image and remove the edges outside the green boundary.

  2. Apply Horizontal histogram to get separate the strips.

  3. In each take vertical histogram and locate the bins with values within a neighbourhood of the peak. (Lets call these as Peak Bins)
  4. The longest contiguous sequence of peak bins should give the answer.

这篇关于用几个可用的点作物感兴趣的区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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