Here is a unix IM command line to do what you suggest and comparisons with PS at rad 3(rad=sigma) and 7 (rad=2*sigma+1 as suggested by GIMP). Results are closer but still not a perfect match.
Code: Select all
thresh=9.8
sigma=3
convert lena3.png \
\( -clone 0 -gaussian-blur 0x$sigma \) \
\( -clone 0 -clone 1 +swap -compose minus -composite \) \
\( -clone 1 -negate \) \
\( -clone 0 -clone 3 +swap -compose plus -composite -negate \) \
-delete 1,3 \
\( -clone 1 -clone 2 -compose plus -composite \) \
-delete 1,2 \
\( -clone 1 -threshold $thresh% -negate \) \
-compose plus -composite lena3_im_us_script2_3gx9p8x1.png
PS r=3, amount=100, thresh=25
PS r=7, amount=100, thresh=25