mviereck / microscopy-tools

Tools for microscopic captures and focus stackshots (beta)
GNU General Public License v2.0
25 stars 1 forks source link

imfuse: possible --background #11

Open mviereck opened 3 years ago

mviereck commented 3 years ago

imfuse provides a lot of possible backgrounds. From imfuse --help:

 --background BG      Specify a background to paint on. Default: mean
                      BG can be an image name or one out of:
                        enfuse
                        saturation
                        magick -list color
                        magick -list evaluate (compare --evaluate)
                        magick -list compose  (compare --compose)
                      Well to combine with --soft. Useable with --threshold.
                      Some recommendations: enfuse saturation mean max min
                      colorize colorize2 pinlight pinlight2
                      Interesting: interpolate overlay pegtoplight reflect2

Only some of them are really useable as background images. Others are interesting on themselves. Some are totally useless. The script demo-imfuse-backgrounds generates a set of interesting results.

@holgerd001 Would you like to test this?

holgerd001 commented 3 years ago

Would you like to test this? It's still under progress.

mviereck commented 3 years ago

I've adjusted demo-imfuse-backgrounds to show interesting results only. Also did some fixes in imfuse related to this.

mviereck commented 3 years ago

These backgrounds preserve background color at the best:

enfuse
saturation
max
mean
min
colorize
colorize2
pinlight
pinlight2

For black or white backgrounds some more compose modes are of interest.

imfuse --background=enfuse imfuse bg=enfuse 6e8354

imfuse --background=saturation imfuse bg=saturation 1fe6a2

imfuse --background=max imfuse bg=max c1e816

imfuse --background=mean imfuse bg=mean 16ce28

imfuse --background=min imfuse bg=min e81997

imfuse --background=colorize imfuse bg=colorize 22d14c

imfuse --background=colorize2 imfuse bg=colorize2 68a4a0

imfuse --background=pinlight imfuse bg=pinlight 89011e

imfuse --background=pinlight2 imfuse bg=pinlight2 39422a

holgerd001 commented 3 years ago

I've adjusted demo-imfuse-backgrounds to show interesting results only. Also did some fixes in imfuse related to this.

I run demo-imfuse-backgrounds a second time, but I couldn't see a difference. Imfuse is still v0.6.6.5-beta.

mviereck commented 3 years ago

I run demo-imfuse-backgrounds a second time, but I couldn't see a difference.

It won't overwrite already existing results. Changes should be visible for difference (previously transparent) and for multiply and freeze (previously black) where I found a bug.

Imfuse is still v0.6.6.5-beta.

Sometimes I forget to increase the version number, sorry.