seisplot icon indicating copy to clipboard operation
seisplot copied to clipboard

Affine transformation

Open kwinkunks opened this issue 7 years ago • 2 comments

Rotate timeslices to correct orientation.

https://matplotlib.org/2.0.0/examples/api/demo_affine_image.html

kwinkunks avatar Nov 09 '18 11:11 kwinkunks

Question since you are looking at affine transformations: are you just looking at an option for on-the-fly plotting of a rotated time-slice or actually transforming and storing the slice? For the former the Matplotlib example will do well. For the latter, I'd again use warping in scikit-image. For completeness: there is the generic Scipy function scipy.ndimage.interpolation.affine_transform but last time I checked it had issues see here. I figured out my own workaround, can discuss, but it is a bit of a headache.

mycarta avatar Nov 09 '18 16:11 mycarta

Since we would presumably have the seismic traces already (i.e., we have the correct data, just in inline-xline coords), I think this is just for plotting.

kwinkunks avatar Nov 09 '18 16:11 kwinkunks