I used to commute via the South Shore Railroad to Chicago, and had about 50 minutes each way with my laptop. Most days, I'd be processing photos. Some are aligned in a focal plane, some are aligned other ways. Here's an old gallery on Flickr.[2]
I got into this after seeing a demo of Marc Levoy's work at Stanford, where the demo showed a number of subjects in a virtual focal plane, then a subject behind a hedge, focused THROUGH the shrubbery.... which seemed like magic.[3,4] I didn't have the funds for a 128 camera array, but what I did have was time... so I improvised.
Stand in a spot, with your DSLR or smartphone.... look at a non-moving subject.... take a cluster of pictures within about a dinner plate size area
Then take all those photos, and using Hugin[1], align selected points in the scene that will be your virtual focal plane, across all the photo pairs
Use Hugin to transform all those images into the same virtual focal plane
Use a small python script to average the photos into a single image
If you like, you can chose different points to get a different focal plane from the same set of images.
[1] https://hugin.sourceforge.io/
[2] https://flickr.com/photos/---mike---/albums/7215771858512354...
[3] https://graphics.stanford.edu/projects/array/
[4] https://graphics.stanford.edu/projects/array/videos/crowd0-s...