Initial import of triangle_threshold.py function.
Changed datatype output from int to uint8. Also changed how the file is written to disk (Now calls image_tools.write_img).
Changed how the file is written to disk (Now calls image_tools.write_img).