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$
  • $\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 Jun 19 '12 at 18:28
  • $\begingroup$ Those modes don't exist, I guess I was asking for them. $\endgroup$ – M.R. Jul 16 '12 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 Jul 16 '12 at 20:47
  • $\begingroup$ Will do, so should I delete this one? $\endgroup$ – M.R. Jul 16 '12 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 Jul 16 '12 at 21:29
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

| improve this answer | |
$\endgroup$
  • $\begingroup$ Right, I guess I'm just missing the implementations of the different types of blending. $\endgroup$ – M.R. Jun 19 '12 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 Jun 19 '12 at 21:46
  • $\begingroup$ That looks very creepy. $\endgroup$ – s0rce Jun 23 '12 at 17:08
  • $\begingroup$ @s0rce yeah, it does. :^) $\endgroup$ – Mr.Wizard Jun 23 '12 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
| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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