首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

opencv里面如何获取轮廓内部的点呢

2013-12-15 
opencv里面怎么获取轮廓内部的点呢?如题,现在有很多个轮廓,我想知道一个具体的点在哪个轮廓里面,要怎么弄

opencv里面怎么获取轮廓内部的点呢?
如题,现在有很多个轮廓,我想知道一个具体的点在哪个轮廓里面,要怎么弄呢?请大神教教我。。。
[解决办法]
PtInRegion
The PtInRegion function determines whether the specified point is inside the specified region. 

BOOL PtInRegion(
  HRGN hrgn,  // handle to region
  int X,      // x-coordinate of point
  int Y       // y-coordinate of point
);
 
Parameters
hrgn 
Handle to the region to be examined. 

Specifies the x-coordinate of the point. 

Specifies the y-coordinate of the point. 
Return Values
If the specified point is in the region, the return value is nonzero.

If the specified point is not in the region, the return value is zero. 

QuickInfo
  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Requires version 1.0 or later.
  Header: Declared in wingdi.h.
  Import Library: Use gdi32.lib.

See Also
Regions Overview, Region Functions, RectInRegion 

 

热点排行