write a simply edge determine alg..not very useful for natural picture.