Refactored code. Created Front end. Added OR and AND threshold methods
Added function for finding pixel center but does not work (maybe too much noise)