concave-hull

OpenCV - Concave hull

女生的网名这么多〃 提交于 2019-12-01 20:36:50
I am looking for an OpenCV implementation of a function to find the concave hull of a set of points (as for the convexHull function). Does anyone know of it? Here is an explanation: http://ubicomp.algoritmi.uminho.pt/local/concavehull.html Thank you in advance. You can also use Growing Neural Gas algorithm. There are several implementations in web take a look at ( https://github.com/BelBES/libGNG ) for example. Video of the algorithm is here: http://www.youtube.com/watch?v=fVd4ly8wilY Very interesting java applet here: Also take a look at this site: http://www.demogng.de/ 来源: https:/

Translating concave hull algorithm to c#

旧城冷巷雨未停 提交于 2019-11-30 03:21:42
问题 So I am trying to translate the algorith found here for concave hulls: http://repositorium.sdum.uminho.pt/bitstream/1822/6429/1/ConcaveHull_ACM_MYS.pdf (Page 65) Ive read through the entire thing but I cant figure out how to implement sortByAngle and angle , im not to sure what method I should do inside of them. This is what I have so far: //Main method public static Vertex[] ConcaveHull(Vertex[] points, int k = 3) { if (k < 3) throw new ArgumentException("K is required to be 3 or more", "k")

Estimating an area of an image generated by a set of points (Alpha shapes??)

限于喜欢 提交于 2019-11-29 02:11:55
I have a set of points in an example ASCII file showing a 2D image. I would like to estimate the total area that these points are filling. There are some places inside this plane that are not filled by any point because these regions have been masked out. What I guess might be practical for estimating the area would be applying a concave hull or alpha shapes . I tried this approach to find an appropriate alpha value, and consequently estimate the area. from shapely.ops import cascaded_union, polygonize import shapely.geometry as geometry from scipy.spatial import Delaunay import numpy as np