Trying to reproduce your LOG with zero crossing results under Q16 HDRI:
filt="
-1,-1,-1,
-1,8,-1,
-1,-1,-1
"
sig=5
convert flowers3.jpg -blur 0x$sig \
-evaluate multiply 0.125 -bias 50% -convolve "$filt" \
-solarize 50% -level 0%,50% -contrast-stretch 5%x0% \
-edge 1 flowers3_log_b${sig}_l3.jpg
which leaves it centered about gray. So I just use -black-threshold at about 75%
filt="
-1,-1,-1,
-1,8,-1,
-1,-1,-1
"
sig=5
convert flowers3.jpg -blur 0x$sig \
-evaluate multiply 0.125 -bias 50% -convolve "$filt" \
-solarize 50% -level 0%,50% -contrast-stretch 5%x0% \
-edge 1 -black-threshold 75% flowers3_log_b${sig}_l3_bt75.jpg
Now trying a larger laplacian 5x5
filt="
-4,-1,0,-1,-4,
-1,2,3,2,-1,
0,3,4,3,0,
-1,2,3,2,-1,
-4,-1,0,-1,-4,
"
sig=5
convert flowers3.jpg -blur 0x$sig \
-evaluate multiply 0.125 -bias 50% -convolve "$filt" \
-solarize 50% -level 0%,50% -contrast-stretch 5%x0% \
-edge 1 -black-threshold 75% flowers3_log_b${sig}_l5_bt75.jpg
But not much change.
So going back to the 3x3 laplacian but changing the blurring sigma to 7
filt="
-1,-1,-1,
-1,8,-1,
-1,-1,-1
"
sig=7
convert flowers3.jpg -blur 0x$sig \
-evaluate multiply 0.125 -bias 50% -convolve "$filt" \
-solarize 50% -level 0%,50% -contrast-stretch 5%x0% \
-edge 1 -black-threshold 75% flowers3_log_b${sig}_l3_bt75.jpg
and making it even larger at sigma of 9
filt="
-1,-1,-1,
-1,8,-1,
-1,-1,-1
"
sig=9
convert flowers3.jpg -blur 0x$sig \
-evaluate multiply 0.125 -bias 50% -convolve "$filt" \
-solarize 50% -level 0%,50% -contrast-stretch 5%x0% \
-edge 1 -black-threshold 75% flowers3_log_b${sig}_l3_bt75.jpg
and smaller at sigma of 3
filt="
-1,-1,-1,
-1,8,-1,
-1,-1,-1
"
sig=3
convert flowers3.jpg -blur 0x$sig \
-evaluate multiply 0.125 -bias 50% -convolve "$filt" \
-solarize 50% -level 0%,50% -contrast-stretch 5%x0% \
-edge 1 -black-threshold 75% flowers3_log_b${sig}_l3_bt75.jpg
Interesting reference at
http://www.csee.wvu.edu/~xinl/courses/e ... ection.ppt