Code: Select all
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
Input

Output

While on the other one it gave
Input

Output

What should I do different to clean up the green board image like the whiteboard one?