Skip to content

imfuse: Finding good parameters: fly on yellow background #10

@mviereck

Description

@mviereck

Here I show the progress of finding a good parameter set for a stack provided by @holgerd001. Much thanks for the stack!

quick result with enfuse

First try: Generating an enfuse result

imfuse --background=enfuse

imfuse bg=enfuse 6e8354

I've marked and numerated some points of interest:
POI

  • (1) A hair behind the eye appears in front of it
  • (2) Dark areas of the eyes appear a bit too bright
  • (3) The leg in background looks well
  • (4) Between leg and eye the bokeh is somewhat wrong: yellow instead of leg
  • (5) Yet another blurry bokeh area

Try a mask: --dog, --log or --wavelet

Good mask options for macro stacks in general are --log, --dog and --wavelet. Now I use --dog.

imfuse --dog

imfuse dog=s0 3-s0 48 b8a0e0
Visible artefacts:

  • (1) hair in front of eye
  • (2) eyes darker than with enfuse, but with some noise
  • (3) noise in the leg / bad bokeh

fix hair in front of eye: --less --close

Fix the hair in the eye (1) with --less --close

imfuse --dog --less --close

imfuse dog=s0 3-s0 48-close2x2_less60 341de2

  • (1) hair is behind eye, well done
  • (2) less noise in darke area of eyes
  • (3) bad noisy bokeh at the leg

low contrast area detection: --threshold=50

Now its up to look for the bokeh.
Low contrast areas that might cause artefacts are below 50% contrast.
To get an idea of the location of low contrast areas I use --threshold=50

imfuse --dog --threshold=50 --background=red

imfuse dog=s0 3-s0 48_threshold50_bg=red ae1be7

blur bokeh with --finalblur

Option --finalblur, currently with default --finalblur=w50,s2, blurs the bokeh.

imfuse --dog --less --close --finalblur

imfuse dog=s0 3-s0 48-close2x2_less60_finalblur=w50-s2 11f708
Overall a good result, but the leg (3) looks somewhat incomplete

A high blur sigma improves the leg (3) / bokeh appearance, but causes light artefacts in the eyes (2):

imfuse --dog --less --close --finalblur=w50,s5

imfuse dog=s0 3-s0 48-close2x2_less60_finalblur=w50-s5 1963c2

Reducing the percent value of finalblur helps, we have luck that the black area in the eyes (2) has a bit more contrast than the leg (3):

imfuse --dog --less --close --finalblur=w47,s5

imfuse dog=s0 3-s0 48-close2x2_less60_finalblur=w47-s5 c0be55

I'd say this is a good result.

light balance with --fakehdr

As a final tweak some light balance with --fakehdr:

imfuse --dog --less --close --finalblur=w47,s5 --fakehdr=40

imfuse dog=s0 3-s0 48-close2x2_hdr40_less60_finalblur=w47-s5 5d39f4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions