Author Topic: Internal histogram processing  (Read 595 times)

Offline fma

  • Rookie
  • *
  • Posts: 25
    • Papywizard
Internal histogram processing
« on: 12 / November / 2009, 18:50:35 »
  • Publish
  • Does the scripting language allow the user to analyse the histogram?

    One thing I would love to do is to take a picture, analyse the histogram, and take additional pictures if needed, as long as all the dynamic is not recorded, changing the exposure bias between shots...

    If the histogram array could be read, it is very easy to do (I already made such analyse in python, in less than 50 lines).

    Offline reyalp

    • Guru Member
    • ******
    • Posts: 4826
    Re: Internal histogram processing
    « Reply #1 on: 13 / November / 2009, 04:09:14 »
  • Publish
  • You might want to look at shot_histo_enable and get_histo_range. The source for these is in core/shot_histogram.c in CHDK source if you want to see how they work.

    These operate on the raw buffer of the preceding shot, not the live histogram.
    Don't forget what the H stands for.

    Offline fma

    • Rookie
    • *
    • Posts: 25
      • Papywizard
    Re: Internal histogram processing
    « Reply #2 on: 13 / November / 2009, 11:57:58 »
  • Publish
  • I only need the histo of the previous shot, to analyse it and decide how to shoot the next one. So, that's perfect!

    Thanks,

     


    SimplePortal 2.3.3 © 2008-2010, SimplePortal