Create DetectLines.m

This is a sort of noise reduction thing but is mainly used to get the line thickness, which is used later on in the pipeline.