2
$\begingroup$

Blend modes (or Mixing modes) in digital image editing are used to determine how two layers are blended into each other. Version 8 has functionality to perform binary and basic alpha blending but nothing for the other standard blend modes (ImageCompose only works with two layers).

So the question is:

How can I extend ImageCompose to work with multiple layers with masks in any the standard modes such as Dissolve, Darken, or Soft Light... etc?

$\endgroup$
5
  • $\begingroup$ It would be helpful if you would include some example operations with full syntax; I don't have those modes under version7. $\endgroup$
    – Mr.Wizard
    Commented Jun 19, 2012 at 18:28
  • $\begingroup$ Those modes don't exist, I guess I was asking for them. $\endgroup$
    – M.R.
    Commented Jul 16, 2012 at 20:41
  • $\begingroup$ Mike, since this one seemed to emphasize multiple layers, and not new blend modes, why don't you post a new question specifically about implementing new blend modes $\endgroup$
    – Mr.Wizard
    Commented Jul 16, 2012 at 20:47
  • $\begingroup$ Will do, so should I delete this one? $\endgroup$
    – M.R.
    Commented Jul 16, 2012 at 20:49
  • $\begingroup$ I don't think you need to; someone may be looking for an answer to this one. Nevertheless it doesn't seem popular so go ahead if you please. $\endgroup$
    – Mr.Wizard
    Commented Jul 16, 2012 at 21:29

2 Answers 2

3
$\begingroup$

Couldn't you simply Fold ImageCompose onto a list of pairs of layers and blend modes?

Version 7 doesn't have those advanced blend modes as far as I recall, but a simple example using Alpha:

img = ExampleData /@ ExampleData["TestImage"][[25 ;; 27]];

Fold[
 ImageCompose,
 img[[1]],
 {
  {img[[2]], 0.5}, {img[[3]], 0.2}
 }
]

Mathematica graphics

$\endgroup$
4
  • $\begingroup$ Right, I guess I'm just missing the implementations of the different types of blending. $\endgroup$
    – M.R.
    Commented Jun 19, 2012 at 21:43
  • $\begingroup$ @Mike perhaps I missed the core of your question. Does version 8 have modes such as "Dissolve, Darken, or Soft Light" in any capacity, or were you asking how to implement these? $\endgroup$
    – Mr.Wizard
    Commented Jun 19, 2012 at 21:46
  • $\begingroup$ That looks very creepy. $\endgroup$
    – s0rce
    Commented Jun 23, 2012 at 17:08
  • $\begingroup$ @s0rce yeah, it does. :^) $\endgroup$
    – Mr.Wizard
    Commented Jun 23, 2012 at 17:57
0
$\begingroup$

Some of the other standard blend modes could also be realized with the help of these:

  • ImageAdd
  • ImageSubtract
  • ImageDifference
  • ImageMultiply
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.