
I try -morphology, but i'm very newbie in this command of imagemagick

Sorry if english is not right

Code: Select all
convert img1.jpg -write MPR:source -morphology close "2x15: \
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, \
0,1,1,1,1,1,1,1,1,1,1,1,1,1,0" \
-morphology erode square MPR:source -compose Lighten -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-morphology erode square MPR:source -composite \
-sigmoidal-contrast 50,80% \
img2.jpg;