Made some progress.

Basic edge detection now works. Set to work with 500x500 grayscaled raw
images. Produces edge detection with sobel operator. Uses a 3x3 operator
and a 5x5. Also finds basic threshold but that can proabably be
improved. Also can be made far more efficient.