opencv里面怎么获取轮廓内部的点呢?

linjx520074913 2013-12-05 06:07:52
如题,现在有很多个轮廓,我想知道一个具体的点在哪个轮廓里面,要怎么弄呢?请大神教教我。。。
...全文
344 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2013-12-06
  • 打赏
  • 举报
回复
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. X Specifies the x-coordinate of the point. Y 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

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧