HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

What are algorithms for computing contours from given edges?

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
edgeswhatarealgorithmscontoursforfromgivencomputing

Problem

Let's say I have a set of edges which makes the contour, however there are too many of them and some are too long. I have to remove edges, and shorten them to make contour. I cannot add new edges!

I am looking at least for the name of the algorithm to further look how this problem is solved.

Here is the example (please don't mind the grid) -- input:

and output in pink (the pink is the real output, the rest is left for comparison -- it should be removed by algorithm I am looking for):

As you can see I have a lot of redundant edges, too long, internal ones.
Note also that this is not the convex hull problem; my shape is not convex.

The question: what are known algorithms for solving this problem?

Solution

This problem is not surprisingly called Concave Hull

You might be also interested in alpha shapes
CONCAVE HULL: A K-NEAREST NEIGHBOURS APPROACH FOR THE COMPUTATION OF THE REGION OCCUPIED BY A SET OF POINTS by Adriano Moreira and Maribel Yasmina Santos

Context

StackExchange Computer Science Q#44865, answer score: 3

Revisions (0)

No revisions yet.