-
Notifications
You must be signed in to change notification settings - Fork 41
Create a polygon of the real data extents of for 3D surveys #27
Comments
This is a possible way with scikit-image, using a time slice:
Comments:
|
I think the computation would be easier with a bit of trace-by-trace processing. Then we can get rid of the zero-crossings. This should work, even for 8-bit data... https://github.com/agile-geoscience/seisplot/blob/master/Polygon_around_data_area.ipynb |
There are algorithms to compute the convex hull of a set of points. |
@djchild: seismic surveys are concave, have you manage to make the convex hull work with them? I'd be curious, I have been looking for something like that for some time. The best I could do myself was with the workflow I describe above. |
Good point. It has been over a decade since I worked on that and I don't Your suggestion of using Delaunay Triangulation is interesting. There might be some helpful buzzwords here On Thu, Jul 14, 2016 at 7:30 AM, Matteo notifications@github.com wrote:
|
I improved the contouring method — extracting the contours as Still an orthogonal grid, but it's all just coordinates. It would be easy to test the Delauney hack from here too, but it looks a bit imprecise to me, and I wonder how it would adapt to holes. |
I just noticed that Mahotas has had some updates and some improved documentation. There is are a few functions to draw polygons on images. One of them computes the convex hull using the Graham Scan https://en.wikipedia.org/wiki/Graham_scan ...See, http://mahotas.readthedocs.io/en/latest/polygon.html Requires looping over all traces to get a arrays of all the x and y values for each 'live' trace, but then, I suppose it can be discarded once the polygon is created. |
So cool that the Wikipedia link has pseudocode. But, do we NOT want concavities in this case? |
@mycarta, yes I think you're right. |
Does this help?
https://medium.com/@agafonkin/a-dive-into-spatial-search-algorithms-ebd0c5e39d2a
He builds the convex hull first and then adjusts it.
…On Thu, Jan 5, 2017 at 2:18 PM, Evan Bianco ***@***.***> wrote:
@mycarta <https://github.com/mycarta>, yes I think you're right.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA5j33Uphhq7IWntEQ36xOAgp3Hho0NEks5rPV4zgaJpZM4JIYPT>
.
|
Concaveman looks cool. I'll be checking this out. Thanks @djchild! |
Awesome article!
As for Concaveman, I think the problem with a hull is that it won't support
holes in the survey.
…On Sat, Apr 29, 2017, 12:23 Evan Bianco ***@***.***> wrote:
Concaveman looks cool. I'll be checking this out. Thanks @djchild
<https://github.com/djchild>!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABnS1J9mqR8iZSf--olz0-03jPKlF5xUks5r01X2gaJpZM4JIYPT>
.
|
Related (perhaps it is a new feature?), transform the time slices into proper orientation relative to a given coordinate system. An example in matplotlib is here, https://matplotlib.org/2.0.0/examples/api/demo_affine_image.html |
If the amplitude value for the background (null traces, holes) is known, I would go back again to suggest a scikit-image workflow. Let's say the value is zero; then a logical cutoff can be applied. Something like:
after which you should have 1s for live data and 0s elsewhere, including holes. Then you should get a |
@kwinkunks my bad, it did look like from your last comment that the holes were still a problem, but re-reading again I realize it is about Concaveman |
Don't need to show a timeslice on the basemap necessarily, but it would be cool to plot a polygon enclosing the actual data extents relative to the inline and crossline rectangular range.
The text was updated successfully, but these errors were encountered: