Author Topic: Focus Stacking with Focus Bar  (Read 5150 times)

ironmarshal

  • New to the forum
  • *
  • Posts: 8
Re: Focus Stacking with Focus Bar
« Reply #25 on: July 06, 2017, 04:05:24 AM »
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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #26 on: July 06, 2017, 07:44:05 AM »
@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

  • New to the forum
  • *
  • Posts: 8
Re: Focus Stacking with Focus Bar
« Reply #27 on: July 11, 2017, 03:02:53 AM »
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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #28 on: July 11, 2017, 07:28:10 AM »
@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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #29 on: July 14, 2017, 10:47:12 AM »
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

garry23

  • Hero Member
  • *****
  • Posts: 1370

ironmarshal

  • New to the forum
  • *
  • Posts: 8
Re: Focus Stacking with Focus Bar
« Reply #31 on: July 14, 2017, 08:41:37 PM »
Distance says 0.0

garry23

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #32 on: July 14, 2017, 09:01:38 PM »
@ironmarshal

 :( :(

Pity.


garry23

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #33 on: July 20, 2017, 10:18:38 PM »
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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #34 on: July 31, 2017, 09:56:03 PM »
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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #35 on: August 05, 2017, 01:25:38 PM »
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

  • Hero Member
  • *****
  • Posts: 1370
(UPDATE) Focus Stacking with Focus Bar
« Reply #36 on: September 30, 2017, 11:00:44 AM »
I've tidied up my focus bar script, including a few options, algorithms and code.

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

garry23

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #37 on: October 10, 2017, 08:37:17 PM »
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

  • Hero Member
  • *****
  • Posts: 1370
Focus Stacking with Focus Bar: Update
« Reply #38 on: October 26, 2017, 03:56:37 PM »
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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #39 on: November 01, 2017, 11:05:31 AM »
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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #40 on: November 24, 2017, 11:14:12 PM »
***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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #41 on: December 09, 2017, 05:09:59 PM »
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

  • Hero Member
  • *****
  • Posts: 1370
Re: Focus Stacking with Focus Bar
« Reply #42 on: December 11, 2017, 04:14:43 PM »
A few tweaks to ensure Toggler and Focus Bar work well together.

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