Image edge smoothing with opencv

后端 未结 2 1354
清歌不尽
清歌不尽 2020-12-01 01:47

I am trying to smooth output image edges using opencv framework, I am trying following steps. Steps took from here https://stackoverflow.com/a/17175381/790842



        
2条回答
  •  Happy的楠姐
    2020-12-01 02:29

    I have followed the following steps to smooth the edges of the Foreground I got from GrabCut.

    1. Create a binary image from the mask I got from GrabCut.
    2. Find the contour of the binary image.
    3. Create an Edge Mask by drawing the contour points. It gives the boundary edges of the Foreground image I got from GrabCut.
    4. Then follow the steps define in https://stackoverflow.com/a/17175381/790842

提交回复
热议问题