Page 1 of 1

Script giving different results

Posted: 2014-04-28T06:42:56-07:00
by shivendra
I am using this script

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"
On one of the input it gave this result-
Input
Image
Output
Image

While on the other one it gave
Input
Image
Output
Image

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

Re: Script giving different results

Posted: 2014-04-28T07:10:32-07:00
by snibgo
"-negate" the input immediately after reading it. Then you get black characters on a white background. If you want white on black, "-negate" again immediately before the final write.