细化 (二值)

细化—lhMorpThin细化—lhMorpThin 
所采用的2*1 自定义结构为:
细化—lhMorpThin

 函数:lhMorpThin

说明:形态学细化变换

参数:

src 输入图像,灰度或二值图像

dst 输出图像

sefg 前景结构元素

sebg 背景结构元素,如为空,则默认为前景结构元素sefg的取反

type变换中击中-击不中变换的类型,二值 0 非约束 1 约束 2

定义如下:

#define LH_MORP_TYPE_BINARY                   0

#define LH_MORP_TYPE_UNCONSTRAIN       1

#define LH_MORP_TYPE_CONSTRAIN           2

源码:

void lhMorpThin(const IplImage* src, IplImage* dst, IplConvKernel* sefg, IplConvKernel* sebg =NULL, int type=LH_MORP_TYPE_BINARY)

{

       assert(src != NULL && dst != NULL && src != dst && sefg!= NULL && sefg!=sebg);

       lhMorpHMT(src, dst, sefg, NULL, type);

       cvSub(src, dst, dst);

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
猜你喜欢
  • 2021-09-18
  • 2021-12-11
  • 2021-07-14
  • 2021-12-28
  • 2021-04-15
  • 2022-02-19
相关资源
相似解决方案