working on threshold based method for detecting haltere

Should help with finding the margins.