Page 1 of 1

Posted: 2004-05-31T19:08:26-07:00
by magick
You can simulate focus blur with ImageMagick 6.0.0 or later with this command:
  • convert rgbrender.jpg \( \( rgbrender.jpg -blur 10x5 \) depthchannel.jpg -compose copyopacity \) -compose over focus-blur.png
Just use parenthesis under Windows, no backslash is necessary.

focal-blur

Posted: 2004-05-31T19:29:39-07:00
by anthony
It would be a lot easier for this case to generate the ball images
seperately, blur them appropriately, then overlay them.

For a simplistic solution, you can extract the parts of the image, based
on the depth, and blur the individual parts appropriately before
overlaying them again.

The basic problems which be at the boundaries of the mask, such as
the two balls on the right. You want the blur to blur into parts which
are the same or lighter in color, BUT you don't want the lighter
depth parts of the image bluring into the darker (foreground) parts.

EG: with a single ball you want the ball to blur into the white
background, but not the white background into the ball (at least not as
much).