Author Topic: CHDK Spotmeter  (Read 2170 times)

Offline kuku

  • Rookie
  • *
  • Posts: 14
Re: CHDK Spotmeter
« Reply #15 on: 16 / May / 2011, 11:40:23 »
Hi - I know its an old thread but I found nothing about it on the forum,and I think someone can use this fork to get the lightmeter functionality to chdk: http://code.google.com/p/chdk-lm/

Offline towolf

  • Rookie
  • *
  • Posts: 5
Re: CHDK Spotmeter
« Reply #16 on: 06 / January / 2012, 19:35:16 »
The patch that dean0 posted is lost and the link to chdk-lm on GoogleCode gives me permission denied error 403.

Wouldn’t it be possible to make a pure lua light meter script? I mean Lua can draw widgets too, no?

Offline towolf

  • Rookie
  • *
  • Posts: 5
Re: CHDK Spotmeter
« Reply #17 on: 07 / January / 2012, 00:04:05 »
To reply to myself,

with pure Lua scripting you can only make a [admin: avoid swearing please] light meter. Lua doesn’t give you arithmetic functions like log2 since it’s all integer based. So either you display stuff in the awkward APEX96 values and require input parameters in those of you have to resort to crummy lookup tables.

I’ve compared the EV measured values with my analogue Gossen and my digital Sekonic and it matches pretty well. Hence I conclude that it could be done in C code where you can work with decimal numbers, which is necessary since I want to meter outside of the normal range as well.

My pinhole camera has an aperture of f/500 and I'd like to directly meter for this stop and get the proper exposure time, not the other way around. The aperture is fixed obviously. Giving me time in seconds would be sufficient.

Since my Gossen’s scale goes up to f/90 only this would make things easier. I could add a compensation for reciprocity failure as well, since that varies from film to film. But that is usually and exponent to e and hence again requires floating point math.

Here’s an example: http://pinhole.stanford.edu/phcalc3.htm . I would like to implement a subset of that in the camera.


Offline fudgey

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 1690
  • a570is
Re: CHDK Spotmeter
« Reply #18 on: 08 / January / 2012, 15:00:58 »
Here's a copy of the attachment that must have gone missing in one of the forum changes..

Offline pelrun

  • Rookie
  • *
  • Posts: 23
Re: CHDK Spotmeter
« Reply #19 on: 08 / January / 2012, 16:27:24 »
It would not be too hard to implement a fixed-point library for Lua; it's certainly been done a few times before in other contexts.

Offline outslider

  • Sr. Member
  • ****
  • Posts: 365
Re: CHDK Spotmeter
« Reply #20 on: 08 / January / 2012, 17:02:33 »
Walking on Internet I've found someday a CHDK-based project that was designed to work as a light-meter. But I can't find it now... I even don't remember the name of the project. I'll try to find it.

Offline an0n

  • Full Member
  • ***
  • Posts: 152
Re: CHDK Spotmeter
« Reply #21 on: 08 / January / 2012, 20:23:29 »
Walking on Internet I've found someday a CHDK-based project that was designed to work as a light-meter. But I can't find it now... I even don't remember the name of the project. I'll try to find it.


Is this what you were looking for ?
 http://chdk.setepontos.com/index.php?PHPSESSID=7973386aacdc6fb7e1b409702af56bbb&topic=5348.msg51863#msg51863
A720IS.

Offline towolf

  • Rookie
  • *
  • Posts: 5
Re: CHDK Spotmeter
« Reply #22 on: 08 / January / 2012, 20:40:35 »
An0n, I had started from scratch and then discovered the script you linked to and modified it, but the limitation I’ve given above emerged.

I got to the point of having a script that gave me power of two times in seconds, which is not precise enough. Any other solution working with fixed point were either too cryptic to use or would require a pocket calculator to convert to human values. I didn’t want to look at implementing fixed-point math.

Thanks, fudgey, BTW.

Offline outslider

  • Sr. Member
  • ****
  • Posts: 365
Re: CHDK Spotmeter
« Reply #23 on: 08 / January / 2012, 21:08:31 »
Walking on Internet I've found someday a CHDK-based project that was designed to work as a light-meter. But I can't find it now... I even don't remember the name of the project. I'll try to find it.


Is this what you were looking for ?
 http://chdk.setepontos.com/index.php?PHPSESSID=7973386aacdc6fb7e1b409702af56bbb&topic=5348.msg51863#msg51863


No I mean CHDK-fork. Maybe it was the same that Kuku posted above...

CHDK Forum

Re: CHDK Spotmeter
« Reply #23 on: 08 / January / 2012, 21:08:31 »

Offline Microfunguy

  • Developers
  • Guru Member
  • ****
  • Posts: 3027
    • StereoData Maker
Re: CHDK Spotmeter
« Reply #24 on: 08 / January / 2012, 22:01:25 »
Luminance and chroma spotmeter http://stereo.jpn.org/eng/sdm/ubasic.htm#ub11

Offline towolf

  • Rookie
  • *
  • Posts: 5
Re: CHDK Spotmeter
« Reply #25 on: 11 / January / 2012, 07:23:04 »
Luminance and chroma spotmeter http://stereo.jpn.org/eng/sdm/ubasic.htm#ub11


Quote there: The values are read from the live-image buffer and the correlation with the real scene values is not known.

This might have an academic interest, but it’s not useful for photography. The thing is, I can display the measured fractional EV with the OSD, and that looks good. I just need to do some simple math with it and provide some comvenient ways to change metering settings. This is what the OP did in C.

I just need to find the time to look into this stuff, merge it and then do my modifications. I’m sure adding a light meter mode with calculations is much more useful in a camera than playing reversi.
« Last Edit: 11 / January / 2012, 07:25:41 by towolf »

Offline Microfunguy

  • Developers
  • Guru Member
  • ****
  • Posts: 3027
    • StereoData Maker
Re: CHDK Spotmeter
« Reply #26 on: 11 / January / 2012, 08:34:58 »
I’m sure adding a light meter mode with calculations is much more useful in a camera than playing reversi.

That is what I like to hear, it is also my philosophy.

However, there will always be people who like chrome-plated car parts or 'go faster' stripes.

Someone has to provide for them !

Offline fudgey

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 1690
  • a570is
Re: CHDK Spotmeter
« Reply #27 on: 17 / January / 2012, 02:37:06 »
Oh, this is definitely related, right?

https://github.com/pronvit/chdk-lm

Offline towolf

  • Rookie
  • *
  • Posts: 5
Re: CHDK Spotmeter
« Reply #28 on: 17 / January / 2012, 02:42:10 »
Oh, this is definitely related, right?

https://github.com/pronvit/chdk-lm

Yes, that's the github version of the dead Google Code hg repo.
But this is just a an exported CHDK tree with no information and no diffs.

From what I could glean, this works like a an additional OSD overlay, basically a table with settings. But it could be more. Just diffing this with the current trunk gives too many changes.

On Google you can see a .doc file related to this, but it's inaccessible.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal