Focus helper

From ElphelWiki
Revision as of 11:31, 16 December 2009 by Oleg (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


After the DCT transform of a 8x8 block the 64 frequency coefficients are aquired. Each coefficient is squared and multiplied by the value from the table of weights (it can be set) and a single value for a block is the result. For better focus the lower frequencies go with greater weights (more attention to details). Then the sum of the squared (one more time and this 'squaring' weakens 8x8 blocks in the calculation area that have more lower frequency components) values of all the blocks in the focus area is taken and it is the length of Green Horizontal Line.

So, by setting the table of weights the higher/lower frequencies can be filtered.

Controls page

Fig.1 Interface

Each new single Green Horizontal Line is for a single image. As the new lines appear at the bottom the values for the old ones are replaced with their mean value.

Zoom, Show (area of calculation), Mode, Filter and Scale can be set.

Left, Width, Top, Height - calculation area.

Fig.2 Sample 1, Show='combine woi'
Fig.3 Sample 2, Show='focus'