#!/bin/bash
:'
Ok, so finding the right brighness-contrast ratio for clean edge detection 
is a pain in the butt, and I dont want a huge number of output files to weed through
So i made this script to walk though, using eye of gnome to monitor the output as it changes
If you wanted, you could create test.svg and open your image viewer before hand. 

edge arg is line width drawn on edges, 2.5 here.
'

#convert input.jpg -brightness-contrast 20x50 -edge 1 output.jpg
out="test.svg"
for i in `ls *.png`
	do
	for j in {10..90..10}
		do
		for k in {10..90..10}
			do
			convert $i -brightness-contrast $jx$k -edge 2.5 $out
			echo $j x $k
			sleep 1
			
			done
		done
	done