blur variable radius
Posted: 2019-05-01T06:36:56-07:00
Many many moons ago in B&W printing we did a little trick with blurring during printing. The paper was exposed partly with a blurring filter, partley without. This gives the effect of dark tones bleeding into the lighter ones. One of many paths I tried and that illustrates the (overdone) result:
magick in.png -negate ( +clone -blur 15x7 ) -compose Lighten -composite -negate out.png
One other path I thought of was a variable blurring radius, or sigma, depending on the density of the current pixel. I have no clue how to acheive that.
To illustrate my line of thought:
magick in.png ( +clone -blur [map density 0-1 to radius 15-0]x7 ) -compose Lighten -composite out.png
TIA,
ingo
(ImageMagick 7.0.8-42 Q16 x64 2019-04-24 win10)
magick in.png -negate ( +clone -blur 15x7 ) -compose Lighten -composite -negate out.png
One other path I thought of was a variable blurring radius, or sigma, depending on the density of the current pixel. I have no clue how to acheive that.
To illustrate my line of thought:
magick in.png ( +clone -blur [map density 0-1 to radius 15-0]x7 ) -compose Lighten -composite out.png
TIA,
ingo
(ImageMagick 7.0.8-42 Q16 x64 2019-04-24 win10)