Focus Stacking with Focus Bar

Started by garry23, May 29, 2017, 06:57:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ironmarshal

After doing a little more reading I'm not sure this is going to work for me. I have a T4i and Tamron lenses....I don't know if the lenses report focus distance, which I believe is a requirement for the script to work.

On another note, I came across a fascinating article on your website about super resolution. You keep inspiring with all kinds of neat ideas.

garry23

@ironmarshal

I use my scripts with a Sigma lens.

The 650D/T4i runs ML, including the experimental Lua fix.

You will know if the Tamron reports focus distance if you can see that being reported in the ML bottom bar.

Cheers

Garry

ironmarshal

Sadly neither the Tamron 17-50 or the 28-75 report distance :( All I see on the bottom bar is the MF/AF designation.

garry23

@ironmarshal

Let's try one more time :-)

The Tamron 17-50 is an AF lens: correct?

The AF functionality works: correct?

You have ML loaded: correct?

With ML loaded what focus distance is reported? 0.0 or some other number?

garry23

Focus by Colours!

I'm pleased to announce an update of my focus bar script, which you can read about and download here: http://photography.grayheron.net/2017/07/focusing-by-colour.html

As usual I welcome feedback.

Cheers

Garry


ironmarshal


garry23


garry23

The latest update provides a refined way to tune the near depth of field when you are focusing between the HFD and Infinity: http://photography.grayheron.net/2017/07/your-choice.html

You can now select what infinity blur criterion you use in the HFD-Infinity focus zone to calculate the near DoF, eg defocus only, 2 x defocus, total blur or 2 x total blur.

The bottom DoF feedback also shows the defocus blur component of the total blur, including as it changes in the HFD-Infinity focusing zone.

garry23

I've had some feedback that the focus bar is too complex.

I hope this post helps those struggling with using this new way of getting optimum focus, especially for landscape photographers: http://photography.grayheron.net/2017/07/for-goodness-sake-garry-kiss.html

garry23

Following in a similar way as the previous post, here is a short piece for those who struggle to understand the advantages of focusing using my focus bar: http://photography.grayheron.net/2017/08/understanding-focus-blurs.html

I hope this helps those who are confused with blur and in particular infinity blur.

garry23


garry23

Another update. This time to check that the focus bar can run, ie lens reports aperture, focus distance and focal length.

Note: you still need to put your sensor pixel size in the script, as well as change frequency if you are shooting with an IR conversion.

https://gist.github.com/pigeonhill/cd1dbe0191ca1264fc0aa07aaafb515d

garry23

Update on Focus Bar

For those that are users of my Focus Bar script, you may be interested in the latest version.

The latest changes are directed at the UI and making the script more 'integrated' with ML.

The first change is that the focus bar will not work if the lens is incompatible with the script. Also, the script switches off the ML DoF reporting, ie all DoF feedback is via the script.

The next change is that the focus bar will not show on start up, ie when the ML console is running, but will start as soon as you start focusing.

Next, when you are focusing beyond the hyperfocal distance, ie when the script shows the various infinity blurs (defocus blur, diffraction blur and total blur), the script shows the near DoF for three blur criteria: using the infinity defocus blur, twice the infinity defocus blur and the DoF based on using the ML set defocus blur, ie accounting for diffraction - this allows you to make the final focus decision based on the best DoF estimates.

Next, if you over focus, ie focus distance is greater than (lens reported) infinity, the script will warn you.

Finally, although I wrote the Focus Bar script for my own use, I freely share it with others. Having said this, I would welcome knowing if anyone, other than me, uses the script ;-)

Updated script can be found here: https://gist.github.com/pigeonhill/cd1dbe0191ca1264fc0aa07aaafb515d

garry23

I've written this post for cathartic reasons and in the hope that others may benefit from my slow progress in getting better at Lua programming.

Ever since I started writing scripts, I've 'suffered' from not being able to dynamically handle the Lua drawing with the Canon drawing.

In my latest version of the Focus Bar (FB) script I've decided to adopt a different approach.

In this version of the script the FB is hidden at start-up.

To expose the FB all you need to do is a greater than 3 sec halfshutter press. To hide the FB simply do another greater than 3 sec halfshutter press.

Thus you can turn the FB display on and off, allowing you to cleanly access the Canon menus, eg MENU and INFO etc.

The latest version of the script is here: https://gist.github.com/pigeonhill/cd1dbe0191ca1264fc0aa07aaafb515d

garry23

***Please note, FB defaults to hidden or 'off' mode. Simply do either a 3 or 6 sec half-shutter press to toggle the two working modes. Also, to toggle stacking mode on or off, move lens to infinity and do a 3sec half-shutter press. Change the script's menu to have the defaults you want.***

For those that use my Focus Bar, here is a tutorial and an update: http://photography.grayheron.net/2017/11/focus-bar-tutorial.html

garry23

Further refinements of my Focus Bar and Toggler scripts, which you can read about here:http://photography.grayheron.net/2017/12/further-refinements.html

The FB screen now shows 'all' the focus details you need for perfect focus control





In this screen shot we see that the last image's DoF was 56cm (near) and 1.52cm (far), ie based on SQRT[CoC^2 - Diff^2].

That the defocus blur, based on the ML set CoC and the diffraction, is 14 microns.

We see the current image is focused at 45cm and has DoFs of 36cm and 60cm (near and far).

We see that the blur at the focus overlap, ie relative to the last image, is 12 microns. The magenta shows the overlap.

The cyan area shows where the blur is less than the sensor limit, ie twice the pixel size.

Finally the number [3] shows that the number of focus brackets to the hyperfocal is three: based on the minimal acceptable defocus overlap. That is it could be more than this.

As usual I welcome feedback.

garry23

A few tweaks to ensure Toggler and Focus Bar work well together.

Download from here (on the right): http://photography.grayheron.net/

garry23

As some think using pictures and others through text & numbers, I've added a data-based focus quality indicator to my Focus Bar script: http://photography.grayheron.net/2017/12/there-are-two-kinds-of-people-in-world.html