Simple edge detecting with user's threshold