Aperture control + test script - page 4 - General Discussion and Assistance - CHDK Forum

Aperture control + test script

  • 38 Replies
  • 26781 Views
*

Offline reyalp

  • ******
  • 14125
Re: Aperture control + test script
« Reply #30 on: 15 / October / 2018, 14:00:31 »
Advertisements
Where does the value of 1920 come from?
Arbitrary large value. I wanted to make the minimum at 0 and range syntax expects two values. If you have a lens that goes past f/1024, feel free to adjust it  :haha
Don't forget what the H stands for.

*

Offline c_joerg

  • *****
  • 1251
Re: Aperture control + test script
« Reply #31 on: 12 / November / 2018, 03:18:19 »
It is also very easy to determine with the script at which aperture a lens is the sharpest. In doing so, I simply created shots of a noisy picture. It is then sufficient to sort only the JPG images by size. The largest JPG is then the sharpest picture. I compared that to other methods. That's pretty good. The following plot shows the curves of a 50mm lens on the EOS M3. The first curve is the JPG size. Not sure if the Script could log the JPG size of the image.
More info
https://translate.google.de/translate?sl=de&tl=en&js=y&prev=_t&hl=de&ie=UTF-8&u=https%3A%2F%2Ffotoschule.fotocommunity.de%2Ffoerderliche-blende-welche-blende-ist-meine-schaerfste%2F&edit-text=&act=url

Interestingly, the SX50 goes beyond aperture f8. The Canon Interfacce is only available until f8.
Code: [Select]
range=3.50-11.31 (347-672)

On high apartures the script delivers wrong values as I descript in Reply #27
Code: [Select]
range=6.44--24.-3 (516-1032)
« Last Edit: 12 / November / 2018, 03:20:09 by c_joerg »
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline c_joerg

  • *****
  • 1251
Re: Aperture control + test script
« Reply #32 on: 21 / November / 2018, 04:59:25 »
Maybe still interesting:

I have now not only evaluated the entire image, but also sometimes parts, so 10% of the image area from the middle or on the edge. Again, almost everything is explainable. The edges at the wide angle were always significantly worse than the telephoto.

However, there is an inconsistency with the combination EOS M3 and the EF 50mm f1.8 USM (to a lesser extent also with the EF 24mm f / 2.8 IS USM). If I only look at the center, then the lens reaches a maximum at f2.8, then gets a minimum at f4.5 and then gets a new maximum at f9. At f4.5, the edges are slightly sharper than the center. It makes no difference if I focus again before each shot or just once at the beginning. It is probably a Fokusshift that arises when closing the aperture.

For the 6D and EF 50mm f1.8 USM this does not happen in LiveView. When focusing, the aperture is also set on the 6D. I have never noticed that. I always thought, it is focused with an open aperture. The break in the sharpness in the center is then no longer available. Maybe that's why the S110 does not focus on open aperture.

Presumably there is no way with CHDK to close the aperture when focusing?
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline reyalp

  • ******
  • 14125
Re: Aperture control + test script
« Reply #33 on: 24 / November / 2018, 19:17:49 »
It is also very easy to determine with the script at which aperture a lens is the sharpest. In doing so, I simply created shots of a noisy picture. It is then sufficient to sort only the JPG images by size. The largest JPG is then the sharpest picture. I compared that to other methods. That's pretty good. The following plot shows the curves of a 50mm lens on the EOS M3. The first curve is the JPG size.
Good idea.
Quote
Not sure if the Script could log the JPG size of the image.
You can get the file name:
string.format('%s/IMG_%04d.JPG',get_image_dir(),get_exp_count())
and then get the size with os.stat

Quote
Interestingly, the SX50 goes beyond aperture f8. The Canon Interfacce is only available until f8.
Code: [Select]
range=3.50-11.31 (347-672)
Yes, most powershots work to somewhat higher f numbers than the UI max, and much higher when zoomed.
Quote
On high apartures the script delivers wrong values as I descript in Reply #27
Code: [Select]
range=6.44--24.-3 (516-1032)
This should be fixed in trunk 5126. I don't think any powershots get close f/32 but maybe you could put something on the Ms that does.

Quote
For the 6D and EF 50mm f1.8 USM this does not happen in LiveView. When focusing, the aperture is also set on the 6D. I have never noticed that. I always thought, it is focused with an open aperture. The break in the sharpness in the center is then no longer available. Maybe that's why the S110 does not focus on open aperture.
I wonder if this depends on available light. With good light, then using the same aperture as the shot should be best, but at some point the SNR probably matters more?

Quote
Presumably there is no way with CHDK to close the aperture when focusing?
If setting CHDK overrides doesn't, then probably not. Hooking into the AF process could be useful, but I'm not aware of any work in that area. One thing I'd love is to be able to limit the range of the AF scan, so if you are shooting far away it can just sweep say 100m+ instead of the whole range.
Don't forget what the H stands for.

*

Offline c_joerg

  • *****
  • 1251
Re: Aperture control + test script
« Reply #34 on: 25 / November / 2018, 03:28:45 »
This should be fixed in trunk 5126. I don't think any powershots get close f/32 but maybe you could put something on the Ms that does.
Thanks a lot I've just tested it works really well. Of course there will always be some f-stops on the M's but higher values do not really make sense anymore.
I wonder if this depends on available light.
It's hard to say how far that depends on the available light. The aperture on the S110 is already very small to determine that. It does not work on the real aperture but only fades something off.
It's the same with the 6d. It does not completely go to the selected aperture. It looks like the aperture is only a little bit closed, may be enough to avoid the focus shift. That seems to be so even in low light. In the case of a lot of light, it seems to dazzle much more in the live view and to be easily opened when focused.
With good light, then using the same aperture as the shot should be best, but at some point the SNR probably matters more?
From a certain aperture, the depth of field is probably so big that the camera no longer finds maximum
If setting CHDK overrides doesn't, then probably not.
In the M3, I have a button with which I can control the depth of field. When I press the button, the camera goes to working aperture. What could be behind it? Could I search for a function in the firmware?
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline c_joerg

  • *****
  • 1251
Re: Aperture control + test script
« Reply #35 on: 21 / February / 2020, 14:07:39 »

Looks like my entire lens has 12 unit step (with the exception of the beginning).
I found out that on my EF 100mm 2.8 Macro USM it changed from f16 to 24 levels. May be the difference are to small.


A new video that shows how smoothly the aperture can be changed with CHDK. This time a 1: 1 macro.


M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline c_joerg

  • *****
  • 1251
Re: Aperture control + test script
« Reply #36 on: 12 / March / 2020, 13:31:34 »
 Here is run with M3 + Sigma 24mm F1,4 DG Art.
It looks like also the Sigma Lens changes the aperture in steps of 12 (1/8Ev)
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline c_joerg

  • *****
  • 1251
Re: Aperture control + test script
« Reply #37 on: 12 / March / 2020, 14:08:50 »
Here is a run with M3 + Sigma 24mm F1,4 DG Art from f1.4 until f16 in steps of 12.
I don't see anything unusual here at the opening of f1.4 like I saw it with the EFM32mm.
https://chdk.setepontos.com/index.php?topic=12758.msg142872#msg142872
 
The flicker on this lens is slightly larger.
Overall, however, there is an increase of 1/3EV in the range up to f16.
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline c_joerg

  • *****
  • 1251
Re: Aperture control + test script
« Reply #38 on: 14 / March / 2020, 03:30:34 »
But why does the aperture only change every 12 APEX96 values?
8, 16 or 32 I could understand yes ....


I think I now know why they chose the 1/8EV (12 APEX96 values) setting. I didn't know that Canon DSLR can change the aperture setting from 1/3EV to 1/2EV in the menu. Then the 1/8EV setting is a good compromise. Ok, they could have chosen 1/6EV.
 
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

 

Related Topics


SimplePortal © 2008-2014, SimplePortal