opencv - Refine segmentation mask based on contours of image - Stack Overflow
![opencv - Refine segmentation mask based on contours of image - Stack Overflow](https://i.stack.imgur.com/MVx5L.png)
I have an image for which I have the green border as the segmentation mask's outline. I'm looking to refine this outline based on contours found on the original image, to get a mask like the in 2nd
![](https://www.researchgate.net/profile/Thomas-Dilts/post/How_can_I_summarize_NetCDF_data_based_on_a_shapefile/attachment/616f6655d248c650edac3b23/AS%3A1080785054507009%401634690645498/image/modelbuilder1.png)
2459 questions with answers in PYTHON
![](https://i.stack.imgur.com/mVbBl.png)
opencv - Refine segmentation mask based on contours of image
![](https://miro.medium.com/v2/resize:fit:562/1*z206cuuM8fQUNQk6c48E0g.png)
ROI Segmentation, Contour Detection and Image Thresholding using
![](https://dokumen.pub/img/mathematical-morphology-and-its-applications-to-image-and-signal-processing-12th-intsymp-ismm-2015-9783319187198-9783319187204.jpg)
Mathematical morphology and its applications to image and signal
![](https://machinethink.net/images/coreml-upsampling/Wrong.jpg)
Blog on Machine, Think!
![](https://docs.opencv.org/4.x/water_dt.jpg)
OpenCV: Image Segmentation with Watershed Algorithm
![](https://www.mathworks.com/help/examples/images/win64/SegmentAnImageActiveContoursInImageSegExample_02.png)
Segment Image Using Active Contours in Image Segmenter - MATLAB & Simulink
![](https://pub.mdpi-res.com/sensors/sensors-22-06816/article_deploy/html/images/sensors-22-06816-g008.png?1662710841)
Sensors, Free Full-Text
![](https://0.academia-photos.com/attachment_thumbnails/95911762/mini_magick20221217-1-14g993g.png?1671264604)
PDF) An Approach to Detect Alopecia Areata Hair Disease Using Deep Learning
![](https://i.stack.imgur.com/uDNGP.png)
python - Is it possible to use CV2 to remove internal contours in