I have a 2D Numpy array of the following form (up to 5000 rows):
[ 247.68512 182.67136]
[ 248.71936 182.67136]
[ 249.74336 182.67136]
[ 253.85984 269.1072 ]
[ 254.89408 269.1072 ]
[ 255.91808 269.1072 ]
[ 249.74336 182.67136]
[ 250.7776 182.67136]
[ 251.8016 182.67136]
...
Where column 0 corresponds to x, and column 1 to y.
When plotted the data should resemble a blob shape.
How can I reduce this data to just have the edge or contour around the blob?
I have looked at some of the skimage edge detection functions but I think there is a pure numpy solution out there.
Any help? If edge detection is the way to go what's the best tool?
Thanks
--- Edit ---- The data is also unsorted, but I can sort around the orgin of the blob with some existing code I have. Not sure if that helps.
--- Edit 2 --- Stumbled upon this beautiful solution by K.D.
I think this should work perfectly for this application. Will try this.


